fix(video player): hide inventory when playing videos, closes #72
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user