104 lines
3.0 KiB
Plaintext
104 lines
3.0 KiB
Plaintext
[gd_scene load_steps=7 format=2]
|
|
|
|
[ext_resource path="res://ui/normal_font.tres" type="DynamicFont" id=1]
|
|
[ext_resource path="res://ui/coin.png" type="Texture" id=2]
|
|
[ext_resource path="res://ui/Hud.gd" type="Script" id=3]
|
|
[ext_resource path="res://ui/Scheduler.tscn" type="PackedScene" id=4]
|
|
[ext_resource path="res://ui/hp.png" type="Texture" id=5]
|
|
[ext_resource path="res://ui/normal_theme.tres" type="Theme" id=6]
|
|
|
|
[node name="Hud" type="Node2D"]
|
|
z_index = 50
|
|
script = ExtResource( 3 )
|
|
__meta__ = {
|
|
"_editor_description_": "wrapper Node2D for z-index override"
|
|
}
|
|
|
|
[node name="HudInner" type="Control" parent="."]
|
|
margin_right = 40.0
|
|
margin_bottom = 40.0
|
|
|
|
[node name="Panel" type="Panel" parent="HudInner"]
|
|
margin_left = 1280.0
|
|
margin_top = 712.0
|
|
margin_right = 1600.0
|
|
margin_bottom = 904.0
|
|
|
|
[node name="LabelCoin" type="Label" parent="HudInner/Panel"]
|
|
margin_left = 50.0
|
|
margin_top = 24.0
|
|
margin_right = 90.0
|
|
margin_bottom = 51.0
|
|
rect_pivot_offset = Vector2( 6, 23 )
|
|
custom_fonts/font = ExtResource( 1 )
|
|
text = "0"
|
|
|
|
[node name="LabelCoinNeed" type="Label" parent="HudInner/Panel"]
|
|
margin_left = 21.0
|
|
margin_top = 53.0
|
|
margin_right = 61.0
|
|
margin_bottom = 80.0
|
|
rect_pivot_offset = Vector2( 6, 23 )
|
|
custom_fonts/font = ExtResource( 1 )
|
|
text = "need: 0"
|
|
|
|
[node name="Coin" type="Sprite" parent="HudInner/Panel"]
|
|
position = Vector2( 31, 37 )
|
|
texture = ExtResource( 2 )
|
|
|
|
[node name="Scheduler" parent="HudInner/Panel" instance=ExtResource( 4 )]
|
|
margin_left = 120.0
|
|
margin_top = 8.0
|
|
margin_right = -8.0
|
|
margin_bottom = -88.0
|
|
|
|
[node name="HpBar" type="Node2D" parent="HudInner/Panel"]
|
|
position = Vector2( 31, 106 )
|
|
|
|
[node name="Sprite" type="Sprite" parent="HudInner/Panel/HpBar"]
|
|
texture = ExtResource( 5 )
|
|
|
|
[node name="Sprite2" type="Sprite" parent="HudInner/Panel/HpBar"]
|
|
position = Vector2( 22, 0 )
|
|
texture = ExtResource( 5 )
|
|
|
|
[node name="Sprite3" type="Sprite" parent="HudInner/Panel/HpBar"]
|
|
position = Vector2( 44, 0 )
|
|
texture = ExtResource( 5 )
|
|
|
|
[node name="GameOverDialogue" type="Panel" parent="HudInner"]
|
|
pause_mode = 2
|
|
visible = false
|
|
margin_left = 544.0
|
|
margin_top = 360.0
|
|
margin_right = 1064.0
|
|
margin_bottom = 496.0
|
|
theme = ExtResource( 6 )
|
|
|
|
[node name="SlugSorrowLabel" type="Label" parent="HudInner/GameOverDialogue"]
|
|
margin_left = 8.0
|
|
margin_top = 8.0
|
|
margin_right = 349.0
|
|
margin_bottom = 40.0
|
|
theme = ExtResource( 6 )
|
|
text = "Those pesky slugs may have gotten the better of you."
|
|
|
|
[node name="NoTimeLabel" type="Label" parent="HudInner/GameOverDialogue"]
|
|
margin_left = 8.0
|
|
margin_top = 40.0
|
|
margin_right = 349.0
|
|
margin_bottom = 72.0
|
|
theme = ExtResource( 6 )
|
|
text = "Out of time."
|
|
|
|
[node name="TryAgainButton" type="Button" parent="HudInner/GameOverDialogue"]
|
|
margin_left = 208.0
|
|
margin_top = 96.0
|
|
margin_right = 306.0
|
|
margin_bottom = 129.0
|
|
theme = ExtResource( 6 )
|
|
text = "Try again"
|
|
|
|
[connection signal="ran_out_of_time" from="HudInner/Panel/Scheduler" to="." method="_on_Scheduler_ran_out_of_time"]
|
|
[connection signal="pressed" from="HudInner/GameOverDialogue/TryAgainButton" to="." method="_on_TryAgainButton_pressed"]
|