add gamestate, doc and fix

This commit is contained in:
2026-04-16 11:01:04 +02:00
parent dc0bf0ba37
commit e02bd1819f
29 changed files with 466 additions and 71 deletions

View File

@@ -1,7 +1,7 @@
extends Node3D
@onready var radio: Radio = $Radio
@onready var radio: Radio = $%Radio
@onready var button_pause_resume: Button = $%Button_Pause_Resume
func _on_button_play_pressed() -> void:
if !radio.playing:
@@ -10,10 +10,12 @@ func _on_button_play_pressed() -> void:
func _on_button_pause_pressed() -> void:
radio.toggle_pause()
if !button_pause_resume:
button_pause_resume = $%Button_Pause_Resume
if radio.stream_paused:
$Control/MarginContainer/VBoxContainer/Button_Pause_Resume.text = "Resume"
button_pause_resume.text = "Resume"
else:
$Control/MarginContainer/VBoxContainer/Button_Pause_Resume.text = "Pause"
button_pause_resume.text = "Pause"
func _on_button_stop_pressed() -> void: