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 --- .../src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/src/Game/GameSession/ProvinceOverviewPanel') diff --git a/game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd b/game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd index bad093d..758c24b 100644 --- a/game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd +++ b/game/src/Game/GameSession/ProvinceOverviewPanel/ProvinceOverviewPanel.gd @@ -107,7 +107,7 @@ func _update_info() -> void: _life_rating_bar.value = _province_info.get(GameSingleton.get_province_info_life_rating_key(), 0) _life_rating_bar.tooltip_text = tr("LIFE_RATING_TOOLTIP").format({ - "life_rating": Events.Localisation.tr_number(_life_rating_bar.value) + "life_rating": Localisation.tr_number(_life_rating_bar.value) }) _rgo_name_label.text = _province_info.get(GameSingleton.get_province_info_rgo_key(), -- cgit v1.2.3-56-ga3b1