aboutsummaryrefslogtreecommitdiff
path: root/game/src/Game/GlobalClass/Localisation.gd
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-12-23 05:01:51 +0100
committer George L. Albany <Megacake1234@gmail.com>2023-12-24 04:52:36 +0100
commitb6413251a866c76538869b84ed1c9b9852f7c507 (patch)
tree1b99c935438692bb2ebadeac412b990c82089b65 /game/src/Game/GlobalClass/Localisation.gd
parent50b0b935b0bf0724f40b5140aca85d1830a8b1b3 (diff)
Apply type hints to menu scripts
Diffstat (limited to 'game/src/Game/GlobalClass/Localisation.gd')
-rw-r--r--game/src/Game/GlobalClass/Localisation.gd4
1 files changed, 2 insertions, 2 deletions
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))