aboutsummaryrefslogtreecommitdiff
path: root/game/src/MainMenu/ReleaseInfoBox.gd
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-06-03 20:37:10 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-06-03 20:37:10 +0200
commitcef940108fe15752c3ef66f43f5169403fa2f71d (patch)
treefe4de5a05830e3bddeae78f74f729503b7cee1e9 /game/src/MainMenu/ReleaseInfoBox.gd
parent73e29d02e48739aba5ca5db1b9575c67e795400f (diff)
Reorganize the file structure of the files in `game/src`
Diffstat (limited to 'game/src/MainMenu/ReleaseInfoBox.gd')
-rw-r--r--game/src/MainMenu/ReleaseInfoBox.gd41
1 files changed, 0 insertions, 41 deletions
diff --git a/game/src/MainMenu/ReleaseInfoBox.gd b/game/src/MainMenu/ReleaseInfoBox.gd
deleted file mode 100644
index e363162..0000000
--- a/game/src/MainMenu/ReleaseInfoBox.gd
+++ /dev/null
@@ -1,41 +0,0 @@
-extends HBoxContainer
-
-@export
-var _version_label : Button
-
-@export
-var _commit_label : Button
-
-@export
-var _checksum_label : Button
-
-var _checksum : String = "????"
-
-# REQUIREMENTS:
-# * UIFUN-97
-func _ready():
- _version_label.text = _GIT_INFO_.release_name
- _version_label.tooltip_text = _GIT_INFO_.tag
- _commit_label.text = _GIT_INFO_.short_hash
- _commit_label.tooltip_text = _GIT_INFO_.commit_hash
- # UI-111
- _checksum = Checksum.get_checksum_text()
- _update_checksum_label_text()
-
-func _notification(what : int):
- match what:
- NOTIFICATION_TRANSLATION_CHANGED:
- _update_checksum_label_text()
-
-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():
- DisplayServer.clipboard_set(_GIT_INFO_.tag)
-
-func _on_commit_label_pressed():
- DisplayServer.clipboard_set(_GIT_INFO_.commit_hash)
-
-func _on_checksum_label_pressed():
- DisplayServer.clipboard_set(_checksum)