-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhud.tscn
134 lines (121 loc) · 3.49 KB
/
hud.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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[gd_scene load_steps=4 format=3 uid="uid://4ej8qga1tafm"]
[ext_resource type="Script" path="res://hud.gd" id="1_vhgnj"]
[ext_resource type="Texture2D" uid="uid://c02vx6rm1obgc" path="res://assets/images/title_placeholder.png" id="2_3i05j"]
[ext_resource type="Texture2D" uid="uid://blih32lnwqwcu" path="res://assets/images/cog.png" id="3_e4fbb"]
[node name="StartMenu" type="CanvasLayer"]
script = ExtResource("1_vhgnj")
[node name="StartButton" type="Button" parent="."]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -23.0
offset_top = -70.0
offset_right = 23.0
offset_bottom = -39.0
grow_horizontal = 2
grow_vertical = 0
text = "Start"
[node name="PlayerCount" type="HBoxContainer" parent="."]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -40.0
offset_top = -45.0
offset_right = 40.0
offset_bottom = -5.0
grow_horizontal = 2
grow_vertical = 0
theme_override_constants/separation = 0
alignment = 1
[node name="Button1" type="Button" parent="PlayerCount"]
custom_minimum_size = Vector2(20, 20)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
text = "1"
[node name="Button2" type="Button" parent="PlayerCount"]
custom_minimum_size = Vector2(20, 20)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
text = "2"
[node name="Button3" type="Button" parent="PlayerCount"]
custom_minimum_size = Vector2(20, 20)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
text = "3"
[node name="Button4" type="Button" parent="PlayerCount"]
custom_minimum_size = Vector2(20, 20)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
text = "4"
[node name="Label" type="Label" parent="."]
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -130.0
offset_top = -35.0
offset_right = -45.0
offset_bottom = -12.0
grow_horizontal = 2
grow_vertical = 0
text = "Players:"
horizontal_alignment = 2
[node name="TextureRect" type="TextureRect" parent="."]
texture_filter = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -185.0
offset_top = -265.0
offset_right = 189.0
offset_bottom = -78.0
grow_horizontal = 2
grow_vertical = 0
texture = ExtResource("2_3i05j")
stretch_mode = 3
[node name="Settings" type="Button" parent="."]
texture_filter = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = 169.0
offset_top = -265.0
offset_right = 219.0
offset_bottom = -225.0
grow_horizontal = 2
grow_vertical = 0
icon = ExtResource("3_e4fbb")
flat = true
icon_alignment = 1
expand_icon = true
[node name="Placeholder" type="Label" parent="."]
visible = false
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -172.0
offset_top = -97.0
offset_right = -66.0
offset_bottom = -80.0
text = "(Placeholder Logo)"
[connection signal="pressed" from="StartButton" to="." method="_on_start_button_pressed"]
[connection signal="pressed" from="PlayerCount/Button1" to="." method="_set_player_count" binds= [1]]
[connection signal="pressed" from="PlayerCount/Button2" to="." method="_set_player_count" binds= [2]]
[connection signal="pressed" from="PlayerCount/Button3" to="." method="_set_player_count" binds= [3]]
[connection signal="pressed" from="PlayerCount/Button4" to="." method="_set_player_count" binds= [4]]
[connection signal="pressed" from="Settings" to="." method="_on_settings_pressed"]