Basic game template addon
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
@tool
|
||||
extends ConfirmationDialog
|
||||
|
||||
const MAIN_SCENE_UPDATE_TEXT = "Would you like to update the project's main scene?\n\nCurrent:\n%s\n\nNew:\n%s\n"
|
||||
|
||||
func set_main_scene_text(new_scene_path):
|
||||
var current_scene_path : String = ProjectSettings.get_setting("application/run/main_scene", "")
|
||||
dialog_text = MAIN_SCENE_UPDATE_TEXT % [current_scene_path, new_scene_path]
|
||||
Reference in New Issue
Block a user