From 86bee7b44c7cc7adaef8cdf441667a99223dd98a Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Thu, 6 Jul 2023 16:28:55 -0400 Subject: Add GameLoader Autoload to handle global loading data Remove GameDebug, Localization, and ShaderManager from Events.gd Renamed OptionsSingleton class_name to OptionsEventsObject Add Events.Loader to handle Loader events (which are global signals) Make GameDebug singleton with static functions and property Make Localization functions static Move ShaderManager variable to GameLoader Move Events._define_filepaths_dict to GameLoader.define_filepaths_dict Move game initialization from LoadingScreen.gd and Events.gd to GameStart.gd Attach GameStart.gd to GameStart.tscn root Make LoadingScreen generalized and so it is reusable Remove class_name from LoaderingScreen.gd --- game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.gd') diff --git a/game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.gd b/game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.gd index 028b3df..c3beaf6 100644 --- a/game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.gd +++ b/game/src/Game/Menu/OptionMenu/MonitorDisplaySelector.gd @@ -15,7 +15,7 @@ func _notification(what : int): func _update_monitor_options_text() -> void: for index in get_item_count(): - set_item_text(index, tr("OPTIONS_VIDEO_MONITOR").format({ "index": Events.Localisation.tr_number(index + 1) })) + set_item_text(index, tr("OPTIONS_VIDEO_MONITOR").format({ "index": Localisation.tr_number(index + 1) })) func _on_option_selected(index : int, by_user : bool) -> void: if _valid_index(index): -- cgit v1.2.3-56-ga3b1