From b6413251a866c76538869b84ed1c9b9852f7c507 Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Fri, 22 Dec 2023 23:01:51 -0500 Subject: Apply type hints to menu scripts --- game/src/Game/GlobalClass/Localisation.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'game/src/Game/GlobalClass') diff --git a/game/src/Game/GlobalClass/Localisation.gd b/game/src/Game/GlobalClass/Localisation.gd index 946dc50..78afb69 100644 --- a/game/src/Game/GlobalClass/Localisation.gd +++ b/game/src/Game/GlobalClass/Localisation.gd @@ -23,12 +23,12 @@ static func load_localisation(dir_path : String) -> void: # REQUIREMENTS # * SS-57 # * FS-17 -static func initialize(): +static func initialize() -> void: var localisation_dir_path : String = ProjectSettings.get_setting("internationalization/locale/localisation_path", "") if localisation_dir_path.is_empty(): push_error("internationalization/locale/localisation_path setting is empty!") else: Localisation.load_localisation(localisation_dir_path) -static func tr_number(num) -> String: +static func tr_number(num : Variant) -> String: return TextServerManager.get_primary_interface().format_number(str(num)) -- cgit v1.2.3-56-ga3b1