aboutsummaryrefslogtreecommitdiff
path: root/game/src/GameSession/GameSpeedPanel.gd
diff options
context:
space:
mode:
author Spartan322 <Megacake1234@gmail.com>2023-06-03 20:37:10 +0200
committer Spartan322 <Megacake1234@gmail.com>2023-06-03 20:37:10 +0200
commitcef940108fe15752c3ef66f43f5169403fa2f71d (patch)
treefe4de5a05830e3bddeae78f74f729503b7cee1e9 /game/src/GameSession/GameSpeedPanel.gd
parent73e29d02e48739aba5ca5db1b9575c67e795400f (diff)
Reorganize the file structure of the files in `game/src`
Diffstat (limited to 'game/src/GameSession/GameSpeedPanel.gd')
-rw-r--r--game/src/GameSession/GameSpeedPanel.gd37
1 files changed, 0 insertions, 37 deletions
diff --git a/game/src/GameSession/GameSpeedPanel.gd b/game/src/GameSession/GameSpeedPanel.gd
deleted file mode 100644
index 80708b1..0000000
--- a/game/src/GameSession/GameSpeedPanel.gd
+++ /dev/null
@@ -1,37 +0,0 @@
-extends PanelContainer
-
-#UI-74 UI-75 UI-76 UI-77
-
-@export var _longform_date_button : Button
-@export var _play_pause_display_button : Button
-@export var _decrease_speed_button : Button
-@export var _increase_speed_button : Button
-
-func _ready():
- GameSingleton.state_updated.connect(_update_buttons)
- _update_buttons()
-
-func _update_buttons():
- _play_pause_display_button.text = "⏸ " if GameSingleton.is_paused() else "▶"
-
- _increase_speed_button.disabled = not GameSingleton.can_increase_speed()
- _decrease_speed_button.disabled = not GameSingleton.can_decrease_speed()
-
- _longform_date_button.text = GameSingleton.get_longform_date()
-
-
-func _on_decrease_speed_button_pressed():
- GameSingleton.decrease_speed()
- _update_buttons()
-
-func _on_increase_speed_button_pressed():
- GameSingleton.increase_speed()
- _update_buttons()
-
-func _on_play_pause_display_button_pressed():
- GameSingleton.toggle_paused()
- _update_buttons()
-
-func _on_longform_date_label_pressed():
- GameSingleton.toggle_paused()
- _update_buttons()