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/Menu/MainMenu/ReleaseInfoBox.gd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'game/src/Game/Menu/MainMenu/ReleaseInfoBox.gd') diff --git a/game/src/Game/Menu/MainMenu/ReleaseInfoBox.gd b/game/src/Game/Menu/MainMenu/ReleaseInfoBox.gd index f401919..c52503c 100644 --- a/game/src/Game/Menu/MainMenu/ReleaseInfoBox.gd +++ b/game/src/Game/Menu/MainMenu/ReleaseInfoBox.gd @@ -14,7 +14,7 @@ var _checksum : String = "????" # REQUIREMENTS: # * SS-104, SS-105, SS-106, SS-107 # * UIFUN-97, UIFUN-297, UIFUN-299 -func _ready(): +func _ready() -> void: _version_label.text = _GIT_INFO_.release_name _version_label.tooltip_text = _GIT_INFO_.tag _commit_label.text = _GIT_INFO_.short_hash @@ -23,7 +23,7 @@ func _ready(): _checksum = Checksum.get_checksum_text() _update_checksum_label_text() -func _notification(what : int): +func _notification(what : int) -> void: match what: NOTIFICATION_TRANSLATION_CHANGED: _update_checksum_label_text() @@ -32,11 +32,11 @@ func _update_checksum_label_text() -> void: _checksum_label.tooltip_text = tr("MAINMENU_CHECKSUM").format({ "checksum": _checksum }) _checksum_label.text = "(%s)" % _checksum.substr(0, 4) -func _on_version_label_pressed(): +func _on_version_label_pressed() -> void: DisplayServer.clipboard_set(_GIT_INFO_.tag) -func _on_commit_label_pressed(): +func _on_commit_label_pressed() -> void: DisplayServer.clipboard_set(_GIT_INFO_.commit_hash) -func _on_checksum_label_pressed(): +func _on_checksum_label_pressed() -> void: DisplayServer.clipboard_set(_checksum) -- cgit v1.2.3-56-ga3b1