Re-organize HUD scene to remove redundant control node

This commit is contained in:
Haze Weathers 2023-02-01 21:26:30 -05:00
parent 2caeb7f2ee
commit bfab439995
5 changed files with 76 additions and 44 deletions

View file

@ -9,118 +9,114 @@
[sub_resource type="ShaderMaterial" id=2]
[node name="CanvasLayer" type="CanvasLayer"]
[node name="HUD" type="CanvasLayer"]
layer = 100
[node name="HUD" type="Control" parent="."]
margin_top = 1.0
margin_bottom = 1.0
script = ExtResource( 6 )
bonus_color = Color( 0.478431, 1, 0.47451, 1 )
[node name="Back" type="Sprite" parent="HUD"]
position = Vector2( 128, 95 )
[node name="Back" type="Sprite" parent="."]
position = Vector2( 128, 96 )
texture = ExtResource( 3 )
[node name="GoldCounter" type="Label" parent="HUD"]
[node name="GoldCounter" type="Label" parent="."]
margin_left = 12.0
margin_top = -2.0
margin_top = -1.0
margin_right = 52.0
margin_bottom = 18.0
margin_bottom = 19.0
theme = ExtResource( 10 )
text = "00
"
[node name="ShardCounter" type="Label" parent="HUD"]
[node name="ShardCounter" type="Label" parent="."]
margin_left = 41.0
margin_top = -2.0
margin_top = -1.0
margin_right = 81.0
margin_bottom = 18.0
margin_bottom = 19.0
theme = ExtResource( 10 )
text = "0"
[node name="RedStar" type="Sprite" parent="HUD"]
[node name="RedStar" type="Sprite" parent="."]
visible = false
material = SubResource( 1 )
position = Vector2( 83, 5 )
position = Vector2( 83, 6 )
texture = ExtResource( 1 )
region_enabled = true
region_rect = Rect2( 0, 0, 8, 8 )
[node name="YellowStar" type="Sprite" parent="HUD"]
[node name="YellowStar" type="Sprite" parent="."]
visible = false
material = SubResource( 2 )
position = Vector2( 93, 5 )
position = Vector2( 93, 6 )
texture = ExtResource( 1 )
region_enabled = true
region_rect = Rect2( 8, 0, 8, 8 )
[node name="GreenStar" type="Sprite" parent="HUD"]
[node name="GreenStar" type="Sprite" parent="."]
visible = false
position = Vector2( 103, 5 )
position = Vector2( 103, 6 )
texture = ExtResource( 1 )
region_enabled = true
region_rect = Rect2( 16, 0, 8, 8 )
[node name="BlueStar" type="Sprite" parent="HUD"]
[node name="BlueStar" type="Sprite" parent="."]
visible = false
position = Vector2( 113, 5 )
position = Vector2( 113, 6 )
texture = ExtResource( 1 )
region_enabled = true
region_rect = Rect2( 24, 0, 8, 8 )
[node name="MagentaStar" type="Sprite" parent="HUD"]
[node name="MagentaStar" type="Sprite" parent="."]
visible = false
position = Vector2( 123, 5 )
position = Vector2( 123, 6 )
texture = ExtResource( 1 )
region_enabled = true
region_rect = Rect2( 32, 0, 8, 8 )
[node name="ScoreText" type="Label" parent="HUD"]
[node name="ScoreText" type="Label" parent="."]
margin_left = 137.0
margin_top = -2.0
margin_top = -1.0
margin_right = 221.0
margin_bottom = 18.0
margin_bottom = 19.0
theme = ExtResource( 10 )
text = "SCORE:"
[node name="ScoreCounter" type="Label" parent="HUD"]
[node name="ScoreCounter" type="Label" parent="."]
margin_left = 179.0
margin_top = -2.0
margin_top = -1.0
margin_right = 263.0
margin_bottom = 18.0
margin_bottom = 19.0
theme = ExtResource( 10 )
text = "00000"
[node name="HighCounter" type="Label" parent="HUD"]
[node name="HighCounter" type="Label" parent="."]
visible = false
margin_left = 178.0
margin_top = 178.0
margin_top = 179.0
margin_right = 262.0
margin_bottom = 198.0
margin_bottom = 199.0
theme = ExtResource( 10 )
text = "High:000000"
[node name="LivesCounter" type="Label" parent="HUD"]
[node name="LivesCounter" type="Label" parent="."]
margin_left = 240.0
margin_top = -2.0
margin_top = -1.0
margin_right = 324.0
margin_bottom = 18.0
margin_bottom = 19.0
theme = ExtResource( 10 )
text = "2"
[node name="ArrowCounter" type="Label" parent="HUD"]
[node name="ArrowCounter" type="Label" parent="."]
margin_left = 61.0
margin_top = -2.0
margin_top = -1.0
margin_right = 145.0
margin_bottom = 18.0
margin_bottom = 19.0
theme = ExtResource( 10 )
text = "0"
[node name="TimeCounter" type="Label" parent="HUD"]
[node name="TimeCounter" type="Label" parent="."]
margin_left = 1.0
margin_top = 178.0
margin_top = 179.0
margin_right = 57.0
margin_bottom = 198.0
margin_bottom = 199.0
theme = ExtResource( 10 )
text = "0:00:00"