aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/GameSpeedPanel.tscn
diff options
context:
space:
mode:
author ClarkeCode <33846391+ClarkeCode@users.noreply.github.com>2023-04-18 21:05:41 +0200
committer GitHub <noreply@github.com>2023-04-18 21:05:41 +0200
commitae06fbce51f91b15aeed8ede7973f4ec24d05ff0 (patch)
tree9a49865bb6e6bc56c26a291de9c48d483225ac17 /game/src/GameSession/GameSpeedPanel.tscn
parentea077c8a7c78477bd247c7fbd21de13bcf2285e9 (diff)
parent0ead900c96f1f40028d53b0e4b9c2d93312a6621 (diff)
Merge pull request #91 from OpenVic2Project/minor-map-ui
Minor map UI
Diffstat (limited to 'game/src/GameSession/GameSpeedPanel.tscn')
-rw-r--r--game/src/GameSession/GameSpeedPanel.tscn38
1 files changed, 38 insertions, 0 deletions
diff --git a/game/src/GameSession/GameSpeedPanel.tscn b/game/src/GameSession/GameSpeedPanel.tscn
new file mode 100644
index 0000000..bfb869c
--- /dev/null
+++ b/game/src/GameSession/GameSpeedPanel.tscn
@@ -0,0 +1,38 @@
+[gd_scene load_steps=2 format=3 uid="uid://dd8k3p7r3huwc"]
+
+[ext_resource type="Script" path="res://src/GameSession/GameSpeedPanel.gd" id="1_pfs8t"]
+
+[node name="GameSpeedPanel" type="PanelContainer" node_paths=PackedStringArray("_longform_date_button", "_play_pause_display_button", "_decrease_speed_button", "_increase_speed_button")]
+script = ExtResource("1_pfs8t")
+_longform_date_button = NodePath("HBoxContainer/LongformDateButton")
+_play_pause_display_button = NodePath("HBoxContainer/PlayPauseDisplayButton")
+_decrease_speed_button = NodePath("HBoxContainer/DecreaseSpeedButton")
+_increase_speed_button = NodePath("HBoxContainer/IncreaseSpeedButton")
+
+[node name="HBoxContainer" type="HBoxContainer" parent="."]
+layout_mode = 2
+
+[node name="LongformDateButton" type="Button" parent="HBoxContainer"]
+custom_minimum_size = Vector2(200, 0)
+layout_mode = 2
+text = "LONGFORM DATE"
+
+[node name="PlayPauseDisplayButton" type="Button" parent="HBoxContainer"]
+custom_minimum_size = Vector2(30, 0)
+layout_mode = 2
+text = "⏸"
+
+[node name="DecreaseSpeedButton" type="Button" parent="HBoxContainer"]
+custom_minimum_size = Vector2(30, 0)
+layout_mode = 2
+text = "➖"
+
+[node name="IncreaseSpeedButton" type="Button" parent="HBoxContainer"]
+custom_minimum_size = Vector2(30, 0)
+layout_mode = 2
+text = "➕"
+
+[connection signal="pressed" from="HBoxContainer/LongformDateButton" to="." method="_on_longform_date_label_pressed"]
+[connection signal="pressed" from="HBoxContainer/PlayPauseDisplayButton" to="." method="_on_play_pause_display_button_pressed"]
+[connection signal="pressed" from="HBoxContainer/DecreaseSpeedButton" to="." method="_on_decrease_speed_button_pressed"]
+[connection signal="pressed" from="HBoxContainer/IncreaseSpeedButton" to="." method="_on_increase_speed_button_pressed"]