23 lines
469 B
GDScript
23 lines
469 B
GDScript
extends TabContainer
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
pass # Replace with function body.
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
func _process(delta):
|
|
pass
|
|
|
|
|
|
func _on_tab_changed(tab):
|
|
if tab == 7:
|
|
$Panel8/VideoStreamPlayer.play()
|
|
else:
|
|
$Panel8/VideoStreamPlayer.stop()
|
|
|
|
|
|
func _on_video_stream_player_finished():
|
|
$Panel8/VideoStreamPlayer.play()
|