aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-rw-r--r--client/global.gd5
-rw-r--r--client/menu/about.gd19
-rw-r--r--client/menu/about.tscn6
3 files changed, 28 insertions, 2 deletions
diff --git a/client/global.gd b/client/global.gd
index 2a2e8048..135d504a 100644
--- a/client/global.gd
+++ b/client/global.gd
@@ -19,13 +19,14 @@
class_name G
extends Node
+const VERSION := "2.3.3"
+const DISTRIBUTION := "unknown"
+
signal using_joypad_change(using: bool)
signal using_touch_change(using: bool)
@warning_ignore("UNUSED_SIGNAL")
signal hand_count_change(count: bool)
-const VERSION := "2.3.3"
-
var default_profile := {
"username": "",
"character_style": {
diff --git a/client/menu/about.gd b/client/menu/about.gd
index 339931e7..a38aafe5 100644
--- a/client/menu/about.gd
+++ b/client/menu/about.gd
@@ -129,12 +129,31 @@ func legal_text() -> String:
text += "\n\n[code]%s[/code]" % Engine.get_license_text()
return text
+func version_text() -> String:
+ var text := "[center][b]Hurry Curry![/b]\n\n"
+ OS.get_version()
+ text += "[table=2]"
+ var row = "[cell][right]%s[/right][/cell][cell][left]%s[/left][/cell]"
+ text += row % [tr("c.version.game"), Global.VERSION]
+ text += row % [tr("c.version.protocol"), "%s.%s" % [Multiplayer.VERSION_MAJOR, Multiplayer.VERSION_MINOR]]
+ text += row % [tr("c.version.godot"), Engine.get_version_info().string]
+ text += row % [tr("c.version.os"), OS.get_name()]
+ text += row % [tr("c.version.arch"), Engine.get_architecture_name()]
+ text += row % [tr("c.version.distribution"), Global.DISTRIBUTION]
+
+ text += "[/table]"
+ text += "[/center]"
+ return text
+
func _on_credits_pressed() -> void:
submenu("res://menu/credits.tscn", credits_text())
func _on_legal_pressed() -> void:
submenu("res://menu/credits.tscn", legal_text())
+func _on_version_pressed() -> void:
+ submenu("res://menu/credits.tscn", version_text())
+
func _on_back_pressed() -> void:
exit()
diff --git a/client/menu/about.tscn b/client/menu/about.tscn
index 3e80d63b..f809d443 100644
--- a/client/menu/about.tscn
+++ b/client/menu/about.tscn
@@ -58,6 +58,11 @@ layout_mode = 2
text = "c.menu.about.credits"
alignment = 0
+[node name="version" type="Button" parent="side/margin/options/first"]
+layout_mode = 2
+text = "c.menu.about.version"
+alignment = 0
+
[node name="legal" type="Button" parent="side/margin/options/first"]
layout_mode = 2
text = "c.menu.about.legal"
@@ -79,6 +84,7 @@ text = "c.menu.back"
alignment = 0
[connection signal="pressed" from="side/margin/options/first/credits" to="." method="_on_credits_pressed"]
+[connection signal="pressed" from="side/margin/options/first/version" to="." method="_on_version_pressed"]
[connection signal="pressed" from="side/margin/options/first/legal" to="." method="_on_legal_pressed"]
[connection signal="pressed" from="side/margin/options/first/source" to="." method="_on_source_pressed"]
[connection signal="pressed" from="side/margin/options/first2/back" to="." method="_on_back_pressed"]