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 ): if( day == 8 and month ==2 ):
escoria.globals_manager.set_global('zorionak_eneko', true) 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(): func _enter_tree():
@@ -493,6 +496,7 @@ func get_video_player() -> Node:
return $CanvasLayer/video_player return $CanvasLayer/video_player
func play_video(video_file: String) -> void: func play_video(video_file: String) -> void:
hide_ui()
$CanvasLayer/video_player.visible = true $CanvasLayer/video_player.visible = true
$CanvasLayer/video_player.play(video_file) $CanvasLayer/video_player.play(video_file)

View File

@@ -1,3 +1,3 @@
:action3 :action3
say player "'Solo el pueblo salva al pueblo'" say player "'Solo el pueblo salva al pueblo'"
say player "Ha valido la pena correr el riesgo de que Eneko me pillara." say player "Que pegatina más guapa, ha valido la pena correr el riesgo."