diff options
author | Spartan322 <Megacake1234@gmail.com> | 2023-03-26 15:22:03 +0200 |
---|---|---|
committer | Spartan322 <Megacake1234@gmail.com> | 2023-03-29 02:53:28 +0200 |
commit | 793a8939c4f721844c276a3d49293c23c902c8d3 (patch) | |
tree | 9d333d26e18e0ad29979170edc031f60866e40cd /game/theme | |
parent | cb5858b80c6dc9918b8366a433ca78a5d4adebed (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/theme')
-rw-r--r-- | game/theme/main_menu.tres | 65 |
1 files changed, 63 insertions, 2 deletions
diff --git a/game/theme/main_menu.tres b/game/theme/main_menu.tres index 9093252..24c5552 100644 --- a/game/theme/main_menu.tres +++ b/game/theme/main_menu.tres @@ -1,4 +1,4 @@ -[gd_resource type="Theme" load_steps=17 format=3 uid="uid://qoi3oec48jp0"] +[gd_resource type="Theme" load_steps=32 format=3 uid="uid://qoi3oec48jp0"] [ext_resource type="Script" path="res://src/Utility/StyleBoxCombinedTexture.gd" id="1_axke7"] [ext_resource type="Script" path="res://src/Utility/TextureSetting.gd" id="2_7bwl2"] @@ -61,6 +61,26 @@ content_margin_bottom = -1.0 script = ExtResource("1_axke7") texture_settings = Array[ExtResource("2_7bwl2")]([SubResource("Resource_hxpog"), SubResource("Resource_c0k5l")]) +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_8sqd6"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_xf6qr"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1w6b1"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_7j42t"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3fk2j"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_3jrfj"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1qwxu"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_myxhv"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_kmfi1"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_1qcrh"] + [sub_resource type="StyleBoxTexture" id="StyleBoxTexture_dd2b8"] content_margin_left = 20.0 content_margin_top = 10.0 @@ -110,6 +130,16 @@ script = ExtResource("7_qo00e") style_box = SubResource("StyleBoxTexture_l2rw3") sound = ExtResource("8_etuft") +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_xdtca"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_o5r8v"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_aan0b"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_4j6j5"] + +[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_spejd"] + [resource] BackgroundPanel/base_type = &"PanelContainer" BackgroundPanel/styles/panel = SubResource("StyleBox_odacv") @@ -117,8 +147,28 @@ BottomMargin/base_type = &"MarginContainer" BottomMargin/constants/margin_bottom = 10 BottomMargin/constants/margin_left = 50 BottomMargin/constants/margin_right = 50 -ChecksumLabel/base_type = &"Label" +ChecksumLabel/base_type = &"Button" ChecksumLabel/colors/font_color = Color(0.247059, 0.392157, 1, 1) +ChecksumLabel/colors/font_hover_pressed_color = Color(0.247059, 0.392157, 1, 1) +ChecksumLabel/colors/font_pressed_color = Color(0.247059, 0.392157, 1, 1) +ChecksumLabel/constants/h_separation = 0 +ChecksumLabel/constants/outline_size = 0 +ChecksumLabel/styles/disabled = SubResource("StyleBoxEmpty_8sqd6") +ChecksumLabel/styles/focus = SubResource("StyleBoxEmpty_xf6qr") +ChecksumLabel/styles/hover = SubResource("StyleBoxEmpty_1w6b1") +ChecksumLabel/styles/normal = SubResource("StyleBoxEmpty_7j42t") +ChecksumLabel/styles/pressed = SubResource("StyleBoxEmpty_3fk2j") +CommitLabel/base_type = &"Button" +CommitLabel/colors/font_hover_color = Color(0.360784, 0.360784, 0.360784, 1) +CommitLabel/colors/font_hover_pressed_color = Color(0.215686, 0.215686, 0.215686, 1) +CommitLabel/colors/font_pressed_color = Color(0.215686, 0.215686, 0.215686, 1) +CommitLabel/constants/h_separation = 0 +CommitLabel/constants/outline_size = 0 +CommitLabel/styles/disabled = SubResource("StyleBoxEmpty_3jrfj") +CommitLabel/styles/focus = SubResource("StyleBoxEmpty_1qwxu") +CommitLabel/styles/hover = SubResource("StyleBoxEmpty_myxhv") +CommitLabel/styles/normal = SubResource("StyleBoxEmpty_kmfi1") +CommitLabel/styles/pressed = SubResource("StyleBoxEmpty_1qcrh") TitleButton/base_type = &"Button" TitleButton/colors/font_color = Color(0.87451, 0.87451, 0.87451, 1) TitleButton/colors/font_disabled_color = Color(0.875, 0.875, 0.875, 0.5) @@ -141,3 +191,14 @@ TitleButton/styles/normal = ExtResource("6_dx0aj") TitleButton/styles/pressed = SubResource("StyleBox_uuspe") TitleLabel/base_type = &"Label" TitleLabel/font_sizes/font_size = 90 +VersionLabel/base_type = &"Button" +VersionLabel/colors/font_hover_color = Color(0.360784, 0.360784, 0.360784, 1) +VersionLabel/colors/font_hover_pressed_color = Color(0.215686, 0.215686, 0.215686, 1) +VersionLabel/colors/font_pressed_color = Color(0.215686, 0.215686, 0.215686, 1) +VersionLabel/constants/h_separation = 0 +VersionLabel/constants/outline_size = 0 +VersionLabel/styles/disabled = SubResource("StyleBoxEmpty_xdtca") +VersionLabel/styles/focus = SubResource("StyleBoxEmpty_o5r8v") +VersionLabel/styles/hover = SubResource("StyleBoxEmpty_aan0b") +VersionLabel/styles/normal = SubResource("StyleBoxEmpty_4j6j5") +VersionLabel/styles/pressed = SubResource("StyleBoxEmpty_spejd") |