Files
GGJ26/addons/maaacks_game_template/installer/main_scene_confirmation_dialog.gd
minimata 44f251ed66
All checks were successful
Create tag and build when new code gets to main / BumpTag (push) Successful in 6s
Create tag and build when new code gets to main / Export (push) Successful in 1m1s
Basic game template addon
2026-01-30 19:45:56 +01:00

9 lines
365 B
GDScript

@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]