diff options
Diffstat (limited to 'client/menu')
-rw-r--r-- | client/menu/about.gd | 19 | ||||
-rw-r--r-- | client/menu/about.tscn | 6 |
2 files changed, 25 insertions, 0 deletions
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"] |