-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.tscn
88 lines (73 loc) · 2.48 KB
/
main.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
[gd_scene load_steps=9 format=3 uid="uid://h6w42ryoa8w0"]
[ext_resource type="Script" path="res://scene_1.gd" id="1_7khu4"]
[ext_resource type="Script" path="res://main.gd" id="1_l1jke"]
[ext_resource type="Texture2D" uid="uid://cq2l7jiobdwjm" path="res://icon.png" id="2_5bryo"]
[ext_resource type="Script" path="res://scene_2.gd" id="2_shta8"]
[sub_resource type="Gradient" id="Gradient_s8y2g"]
colors = PackedColorArray(0, 0.556863, 0, 1, 1, 0.254902, 1, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_wtqrr"]
gradient = SubResource("Gradient_s8y2g")
fill_from = Vector2(0.454128, 0)
fill_to = Vector2(1, 1)
[sub_resource type="Gradient" id="Gradient_piy4y"]
[sub_resource type="GradientTexture2D" id="GradientTexture2D_hayl4"]
gradient = SubResource("Gradient_piy4y")
fill_to = Vector2(1, 1)
[node name="Main" type="Node2D"]
script = ExtResource("1_l1jke")
[node name="Scene2" type="CanvasLayer" parent="."]
script = ExtResource("2_shta8")
[node name="TextureRect" type="TextureRect" parent="Scene2"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = SubResource("GradientTexture2D_wtqrr")
[node name="Icon" type="Sprite2D" parent="Scene2"]
position = Vector2(570, 307)
scale = Vector2(2, 2)
texture = ExtResource("2_5bryo")
[node name="Button" type="Button" parent="Scene2"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -24.5
offset_top = 163.0
offset_right = 24.5
offset_bottom = 194.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 32
text = "STOP"
[node name="Scene1" type="CanvasLayer" parent="."]
script = ExtResource("1_7khu4")
[node name="TextureRect" type="TextureRect" parent="Scene1"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = SubResource("GradientTexture2D_hayl4")
[node name="Icon" type="Sprite2D" parent="Scene1"]
position = Vector2(570, 307)
scale = Vector2(2, 2)
texture = ExtResource("2_5bryo")
[node name="Label" type="Label" parent="Scene1"]
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -47.5
offset_top = 207.0
offset_right = 47.5
offset_bottom = 230.0
grow_horizontal = 2
grow_vertical = 2
theme_override_colors/font_shadow_color = Color(0, 0, 0, 1)
theme_override_font_sizes/font_size = 32
text = "PRESS A KEY"
[connection signal="pressed" from="Scene2/Button" to="Scene2" method="_on_button_pressed"]