aboutsummaryrefslogtreecommitdiff
path: root/game/src/MainMenu/ReleaseInfoBox.tscn
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-03-26 15:22:03 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-03-29 02:53:28 +0200
commit793a8939c4f721844c276a3d49293c23c902c8d3 (patch)
tree9d333d26e18e0ad29979170edc031f60866e40cd /game/src/MainMenu/ReleaseInfoBox.tscn
parentcb5858b80c6dc9918b8366a433ca78a5d4adebed (diff)
Add automated git release info retrieval on export
Makes debug easier to see and handle Add commit hash label to MainMenu Add click-copyable tag, commit hash, and checksum to main menu Rename VersionChecksumBox to ReleaseInfoBox Move ReleaseInfoBox to separate scene and script Add GIT_INFO.gd for generic project running Add openvic2-plugin addon for handling export plugin Replaces GIT_INFO.gd on export Setup build workflow to retrieve commit hash, tag, and release
Diffstat (limited to 'game/src/MainMenu/ReleaseInfoBox.tscn')
-rw-r--r--game/src/MainMenu/ReleaseInfoBox.tscn38
1 files changed, 38 insertions, 0 deletions
diff --git a/game/src/MainMenu/ReleaseInfoBox.tscn b/game/src/MainMenu/ReleaseInfoBox.tscn
new file mode 100644
index 0000000..d15ae31
--- /dev/null
+++ b/game/src/MainMenu/ReleaseInfoBox.tscn
@@ -0,0 +1,38 @@
+[gd_scene load_steps=2 format=3 uid="uid://cen7wkmn6og66"]
+
+[ext_resource type="Script" path="res://src/MainMenu/ReleaseInfoBox.gd" id="1_y2djw"]
+
+[node name="ReleaseInfoBox" type="HBoxContainer" node_paths=PackedStringArray("_version_label", "_commit_label", "_checksum_label")]
+editor_description = "UI-31"
+script = ExtResource("1_y2djw")
+_version_label = NodePath("VersionLabel")
+_commit_label = NodePath("CommitLabel")
+_checksum_label = NodePath("ChecksumLabel")
+
+[node name="VersionLabel" type="Button" parent="."]
+layout_mode = 2
+tooltip_text = "OpenVic2 v0.01 \"Primum Mobile\""
+theme_type_variation = &"VersionLabel"
+text = "v0.01"
+flat = true
+alignment = 0
+
+[node name="CommitLabel" type="Button" parent="."]
+layout_mode = 2
+theme_type_variation = &"CommitLabel"
+text = "ffffffff"
+flat = true
+alignment = 0
+
+[node name="ChecksumLabel" type="Button" parent="."]
+editor_description = "UI-111"
+layout_mode = 2
+tooltip_text = "Checksum 00000000"
+theme_type_variation = &"ChecksumLabel"
+text = "(0000)"
+flat = true
+alignment = 0
+
+[connection signal="pressed" from="VersionLabel" to="." method="_on_version_label_pressed"]
+[connection signal="pressed" from="CommitLabel" to="." method="_on_commit_label_pressed"]
+[connection signal="pressed" from="ChecksumLabel" to="." method="_on_checksum_label_pressed"]