update audio player
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user