ld52_olive_harvest/ui/Hud.tscn

82 lines
2.2 KiB
Plaintext

[gd_scene load_steps=6 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]
[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
custom_fonts/font = ExtResource( 1 )
text = "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, 69 )
[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
margin_left = 544.0
margin_top = 360.0
margin_right = 901.0
margin_bottom = 480.0
[node name="SlugSorrowLabel" type="Label" parent="HudInner/GameOverDialogue"]
margin_left = 8.0
margin_top = 8.0
margin_right = 349.0
margin_bottom = 84.0
text = "Those pesky slugs may have gotten the better of you.
Try again?"
[node name="TryAgainButton" type="Button" parent="HudInner/GameOverDialogue"]
margin_left = 136.0
margin_top = 96.0
margin_right = 204.0
margin_bottom = 116.0
text = "Try again"
[connection signal="pressed" from="HudInner/GameOverDialogue/TryAgainButton" to="." method="_on_TryAgainButton_pressed"]