From ffaeadffdd2796cfc5193b01af9f198ad3adb365 Mon Sep 17 00:00:00 2001 From: Silphendio Date: Thu, 22 Aug 2024 19:45:06 +0200 Subject: [PATCH] fix play/pause button icon it now shouws the pause icon when a video is running --- scenes/menu.gd | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scenes/menu.gd b/scenes/menu.gd index 51a773d..7bbed8c 100644 --- a/scenes/menu.gd +++ b/scenes/menu.gd @@ -34,6 +34,8 @@ func set_playstate(p): else: start_button.icon = _play_icon +func _ready(): + video_node.playback_state_changed.connect(set_playstate) func update_progress_bar(pos: float, duration: float): _progress = pos