diff options
author | Hop311 <Hop3114@gmail.com> | 2023-12-11 12:08:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-11 12:08:55 +0100 |
commit | 0b3a162d3db840996c3d89e65dfe9270faebffe5 (patch) | |
tree | b22d464dbf8e0e2569b9be5aa130e4def2e51207 /game/src/Game/GameSession/GameSpeedPanel.gd | |
parent | a6952efba078e49d6555b0586230986a2cb7ed40 (diff) | |
parent | fd375bdb35d8a7b2ac9cf3dd02cdb0f197451a0b (diff) |
Merge pull request #169 from OpenVicProject/guinode
Big UI commit - GUINode, MaskedFlag, PieChart, etc
Diffstat (limited to 'game/src/Game/GameSession/GameSpeedPanel.gd')
-rw-r--r-- | game/src/Game/GameSession/GameSpeedPanel.gd | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/game/src/Game/GameSession/GameSpeedPanel.gd b/game/src/Game/GameSession/GameSpeedPanel.gd deleted file mode 100644 index 6a4b4de..0000000 --- a/game/src/Game/GameSession/GameSpeedPanel.gd +++ /dev/null @@ -1,43 +0,0 @@ -extends PanelContainer - -# REQUIREMENTS: -# * SS-37, SS-38, SS-39 - -@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() - -# REQUIREMENTS: -# * UIFUN-73 -func _on_decrease_speed_button_pressed(): - GameSingleton.decrease_speed() - _update_buttons() - -# REQUIREMENTS: -# * UIFUN-72 -func _on_increase_speed_button_pressed(): - GameSingleton.increase_speed() - _update_buttons() - -# REQUIREMENTS: -# * UIFUN-71 -func _on_play_pause_display_button_pressed(): - GameSingleton.toggle_paused() - _update_buttons() - -func _on_longform_date_label_pressed(): - GameSingleton.toggle_paused() - _update_buttons() |