-
Notifications
You must be signed in to change notification settings - Fork 0
/
Video1.tscn
62 lines (48 loc) · 1.47 KB
/
Video1.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[gd_scene load_steps=4 format=2]
[ext_resource path="res://vid1.webm" type="VideoStream" id=1]
[ext_resource path="res://Resources/Menus/Back.png" type="Texture" id=2]
[sub_resource type="GDScript" id=1]
script/source = "extends Control
# Declare member variables here. Examples:
# var a = 2
# var b = \"text\"
# Called when the node enters the scene tree for the first time.
func _ready():
if OS.get_name()==\"HTML5\":
OS.set_window_maximized(true)
# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
# pass
func _on_VideoPlayer_finished():
get_tree().change_scene(\"res://Video2.tscn\")
func _on_TextureButton_pressed():
get_tree().change_scene(\"res://Video2.tscn\")
"
[node name="Control" type="Control"]
anchor_right = 1.0
anchor_bottom = 1.0
script = SubResource( 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="VideoPlayer" type="VideoPlayer" parent="."]
anchor_right = 1.0
anchor_bottom = 1.0
stream = ExtResource( 1 )
autoplay = true
buffering_msec = 1000
bus = "Music"
__meta__ = {
"_edit_use_anchors_": false
}
[node name="TextureButton" type="TextureButton" parent="."]
margin_left = 1667.19
margin_top = 914.021
margin_right = 1707.19
margin_bottom = 954.021
texture_normal = ExtResource( 2 )
__meta__ = {
"_edit_use_anchors_": false
}
[connection signal="finished" from="VideoPlayer" to="." method="_on_VideoPlayer_finished"]
[connection signal="pressed" from="TextureButton" to="." method="_on_TextureButton_pressed"]