update audio player

This commit is contained in:
2026-07-02 22:49:26 +02:00
parent 498115107e
commit f63c9fa141
4 changed files with 99 additions and 41 deletions

View File

@@ -13,6 +13,7 @@ extends Control
@onready var decrease_volume_button: Button = $%DecreaseVolumeButton
@onready var left_wheel: TextureRect = $%LeftWheel
@onready var right_wheel: TextureRect = $%RightWheel
@onready var background: TextureRect = $%Background
func _ready() -> void:
prev_track_button.pressed.connect(_on_prev_track_button_pressed)
@@ -49,11 +50,11 @@ func _on_radio_track_changed(track_name: String) -> void:
track_label.text = track_name
func _play_button_tween() -> void:
TweenFX.stop_all(self)
scale = Vector2.ONE
rotation = 0.0
modulate.a = 1.0
TweenFX.press_rotate(self)
TweenFX.stop_all(background)
background.scale = Vector2.ONE
background.rotation = 0.0
background.modulate.a = 1.0
TweenFX.press_rotate(background)
func _on_prev_track_button_pressed() -> void:
if radio: