Skip to content

Commit

Permalink
fix play/pause button icon
Browse files Browse the repository at this point in the history
it now shouws the pause icon when a video is running
  • Loading branch information
silphendio committed Aug 22, 2024
1 parent 1e22b85 commit ffaeadf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scenes/menu.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ffaeadf

Please sign in to comment.