-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgui.tscn
109 lines (92 loc) · 3.44 KB
/
gui.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
[gd_scene load_steps=11 format=3 uid="uid://bajxyvngdtd7s"]
[ext_resource type="Script" path="res://Scripts/GameManager.cs" id="1_iujce"]
[ext_resource type="FontFile" uid="uid://lnxopsval0er" path="res://Art/Fonts/DTM-Mono.otf" id="2_ap257"]
[ext_resource type="Texture2D" uid="uid://b0r74g51clhvx" path="res://Art/UI/screenWithBottomBar.png" id="4_pwqoe"]
[ext_resource type="Texture2D" uid="uid://dvx8e7bx6nchh" path="res://Art/UI/Icons/logo.png" id="5_g00xp"]
[ext_resource type="Texture2D" uid="uid://crpg31l4p6m8q" path="res://Art/UI/NineSliceSprites/button1.png" id="5_mshk0"]
[ext_resource type="Script" path="res://rick_scripts/GameButton.cs" id="6_fpvfm"]
[ext_resource type="Texture2D" uid="uid://bjkysq2vbc2h0" path="res://Art/UI/NineSliceSprites/button1Push.png" id="6_rim43"]
[sub_resource type="Theme" id="Theme_hmkie"]
default_font = ExtResource("2_ap257")
[sub_resource type="Theme" id="Theme_kulfn"]
default_font = ExtResource("2_ap257")
Label/colors/font_color = Color(0, 0, 0, 1)
Label/font_sizes/font_size = 12
[sub_resource type="RectangleShape2D" id="RectangleShape2D_6p2u7"]
size = Vector2(55.5, 23.5)
[node name="GUI" type="Control"]
layout_mode = 3
anchors_preset = 0
offset_right = 40.0
offset_bottom = 40.0
scale = Vector2(2, 2)
script = ExtResource("1_iujce")
[node name="ProgressBar" type="ProgressBar" parent="."]
visible = false
layout_mode = 0
offset_left = 17.0
offset_top = 24.0
offset_right = 1136.0
offset_bottom = 68.0
theme = SubResource("Theme_hmkie")
[node name="TextureProgressBar" type="TextureProgressBar" parent="."]
layout_mode = 0
offset_left = 75.0
offset_top = 294.0
offset_right = 529.0
offset_bottom = 324.0
nine_patch_stretch = true
stretch_margin_left = 3
stretch_margin_top = 3
stretch_margin_right = 3
stretch_margin_bottom = 27
[node name="TimerLabel" type="Label" parent="."]
layout_mode = 0
offset_left = 524.0
offset_top = 298.0
offset_right = 565.0
offset_bottom = 321.0
theme = SubResource("Theme_kulfn")
text = "99:99"
horizontal_alignment = 2
vertical_alignment = 1
[node name="Timer" type="Timer" parent="."]
wait_time = 600.0
one_shot = true
[node name="Background" type="Sprite2D" parent="."]
z_index = -100
position = Vector2(288, 162)
texture = ExtResource("4_pwqoe")
[node name="Area2D" type="Area2D" parent="Background"]
script = ExtResource("6_fpvfm")
buttonType = 2
[node name="CollisionShape2D" type="CollisionShape2D" parent="Background/Area2D"]
position = Vector2(-257.75, 147.25)
shape = SubResource("RectangleShape2D_6p2u7")
[node name="TextureButton" type="TextureButton" parent="Background/Area2D"]
offset_left = -285.0
offset_top = 136.0
offset_right = -231.0
offset_bottom = 158.0
texture_normal = ExtResource("5_mshk0")
texture_pressed = ExtResource("6_rim43")
texture_disabled = ExtResource("6_rim43")
[node name="ProgressLabel" type="Label" parent="Background/Area2D/TextureButton"]
layout_mode = 0
offset_left = 16.5
offset_top = -0.5
offset_right = 53.5
offset_bottom = 22.5
theme = SubResource("Theme_kulfn")
text = "Quit"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Sprite2D" type="Sprite2D" parent="Background/Area2D/TextureButton"]
position = Vector2(10, 10)
scale = Vector2(0.5, 0.5)
texture = ExtResource("5_g00xp")
[node name="TimeBG" type="Sprite2D" parent="Background"]
position = Vector2(257, 147.5)
texture = ExtResource("6_rim43")
[connection signal="timeout" from="Timer" to="." method="_on_timer_timeout"]
[connection signal="OnClick" from="Background/Area2D" to="." method="WinGame"]