fuzzyworld

godot-shooter / asteroids / files / scenes / HUD.tscn

Branch asteroids · default branch · all branches

HUD.tscn

3.6 KB · history · blame

1[gd_scene load_steps=5 format=2]
2
3[ext_resource path="res://themes/Theme.tres" type="Theme" id=1]
4[ext_resource path="res://scenes/HUD.gd" type="Script" id=2]
5
6[sub_resource type="Animation" id=2]
7resource_name = "message fade in"
8tracks/0/type = "value"
9tracks/0/path = NodePath("CanvasLayer/MessageLabel:modulate")
10tracks/0/interp = 1
11tracks/0/loop_wrap = true
12tracks/0/imported = false
13tracks/0/enabled = true
14tracks/0/keys = {
15"times": PoolRealArray( 0, 1 ),
16"transitions": PoolRealArray( 1, 5.65685 ),
17"update": 0,
18"values": [ Color( 1, 1, 1, 0 ), Color( 1, 1, 1, 1 ) ]
19}
20tracks/1/type = "value"
21tracks/1/path = NodePath("CanvasLayer/MessageLabel:text")
22tracks/1/interp = 1
23tracks/1/loop_wrap = true
24tracks/1/imported = false
25tracks/1/enabled = true
26tracks/1/keys = {
27"times": PoolRealArray( 0 ),
28"transitions": PoolRealArray( 1 ),
29"update": 1,
30"values": [ "Tap to move???" ]
31}
32
33[sub_resource type="Animation" id=1]
34resource_name = "message fade out"
35length = 2.0
36tracks/0/type = "value"
37tracks/0/path = NodePath("CanvasLayer/MessageLabel:modulate")
38tracks/0/interp = 1
39tracks/0/loop_wrap = true
40tracks/0/imported = false
41tracks/0/enabled = true
42tracks/0/keys = {
43"times": PoolRealArray( 0, 2 ),
44"transitions": PoolRealArray( 1, 5.65685 ),
45"update": 0,
46"values": [ Color( 1, 1, 1, 1 ), Color( 1, 1, 1, 0 ) ]
47}
48
49[node name="HUD" type="Control"]
50anchor_right = 1.0
51anchor_bottom = 1.0
52margin_left = 10.0
53margin_top = 10.0
54margin_right = -10.0
55margin_bottom = -10.0
56theme = ExtResource( 1 )
57script = ExtResource( 2 )
58
59[node name="MarginContainer2" type="MarginContainer" parent="."]
60anchor_right = 1.0
61
62[node name="HBoxContainer" type="HBoxContainer" parent="MarginContainer2"]
63margin_right = 480.0
64margin_bottom = 37.0
65
66[node name="ScoreText" type="Label" parent="MarginContainer2/HBoxContainer"]
67margin_right = 128.0
68margin_bottom = 37.0
69text = "Score: "
70
71[node name="Score" type="Label" parent="MarginContainer2/HBoxContainer"]
72margin_left = 136.0
73margin_right = 198.0
74margin_bottom = 37.0
75text = "100"
76uppercase = true
77
78[node name="Weapon" type="Label" parent="MarginContainer2/HBoxContainer"]
79margin_left = 312.0
80margin_right = 427.0
81margin_bottom = 37.0
82size_flags_horizontal = 10
83size_flags_vertical = 1
84text = "Laser:"
85align = 2
86valign = 2
87
88[node name="Ammo" type="Label" parent="MarginContainer2/HBoxContainer"]
89margin_left = 435.0
90margin_right = 480.0
91margin_bottom = 37.0
92text = "inf"
93
94[node name="MarginContainer" type="MarginContainer" parent="."]
95anchor_top = 1.0
96anchor_right = 1.0
97anchor_bottom = 1.0
98margin_top = -50.0
99
100[node name="HBoxContainer2" type="HBoxContainer" parent="MarginContainer"]
101margin_right = 480.0
102margin_bottom = 50.0
103
104[node name="PauseButton" type="Button" parent="MarginContainer/HBoxContainer2"]
105margin_right = 42.0
106margin_bottom = 50.0
107mouse_default_cursor_shape = 2
108text = "="
109icon_align = 1
110
111[node name="Objective" type="Label" parent="MarginContainer/HBoxContainer2"]
112margin_left = 410.0
113margin_right = 480.0
114margin_bottom = 50.0
115size_flags_horizontal = 10
116size_flags_vertical = 1
117text = "0/5"
118align = 2
119valign = 2
120
121[node name="CanvasLayer" type="CanvasLayer" parent="."]
122
123[node name="MessageLabel" type="Label" parent="CanvasLayer"]
124modulate = Color( 1, 1, 1, 0 )
125anchor_left = 0.1
126anchor_top = 0.6
127anchor_right = 0.8
128anchor_bottom = 0.8
129margin_right = 40.0
130margin_bottom = 14.0
131theme = ExtResource( 1 )
132text = "Tap to move???"
133align = 1
134valign = 1
135autowrap = true
136
137[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
138"anims/message fade in" = SubResource( 2 )
139"anims/message fade out" = SubResource( 1 )
140
141[connection signal="pressed" from="MarginContainer/HBoxContainer2/PauseButton" to="." method="_on_PauseButton_pressed"]