fix(video player): hide inventory when playing videos, closes #72

This commit is contained in:
2024-10-29 22:15:53 +01:00
parent 267d7fd569
commit 1241cf9c09
2 changed files with 5 additions and 1 deletions

View File

@@ -102,6 +102,9 @@ func _ready():
if( day == 8 and month ==2 ):
escoria.globals_manager.set_global('zorionak_eneko', true)
# Show inventory when video player finishes playing a video (inventory is hidden when a video starts)
get_video_player().connect("finished", self, "show_ui")
func _enter_tree():
@@ -493,6 +496,7 @@ func get_video_player() -> Node:
return $CanvasLayer/video_player
func play_video(video_file: String) -> void:
hide_ui()
$CanvasLayer/video_player.visible = true
$CanvasLayer/video_player.play(video_file)