Files
Embodiment/GUI/HUD.tscn

183 lines
5.3 KiB
Plaintext

[gd_scene load_steps=12 format=2]
[ext_resource path="res://GUI/HUD.gd" type="Script" id=1]
[ext_resource path="res://Sprites/HUD/Health_Bar_Under.png" type="Texture" id=2]
[ext_resource path="res://Sprites/HUD/Health_Bar_Progress.png" type="Texture" id=3]
[ext_resource path="res://Sprites/HUD/Health_Bar_Over.png" type="Texture" id=4]
[ext_resource path="res://Sprites/Items/Staff.png" type="Texture" id=5]
[ext_resource path="res://Sprites/Items/Sword.png" type="Texture" id=6]
[ext_resource path="res://Sprites/HUD/HUD_Weapon_Slot.png" type="Texture" id=7]
[ext_resource path="res://Sprites/Items/Bow.png" type="Texture" id=8]
[ext_resource path="res://Sprites/Items/Javelin.png" type="Texture" id=9]
[ext_resource path="res://Fonts/TheLittleBonjour.ttf" type="DynamicFontData" id=10]
[sub_resource type="DynamicFont" id=1]
size = 40
font_data = ExtResource( 10 )
[node name="HUD" type="CanvasLayer"]
script = ExtResource( 1 )
[node name="Health Bar" type="TextureProgress" parent="."]
margin_left = 1.0
margin_top = 1.0
margin_right = 105.0
margin_bottom = 19.0
rect_min_size = Vector2( 104, 18 )
rect_scale = Vector2( 0.75, 0.75 )
texture_under = ExtResource( 2 )
texture_over = ExtResource( 4 )
texture_progress = ExtResource( 3 )
tint_progress = Color( 0.431373, 1, 0.737255, 1 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Currency" type="Label" parent="."]
margin_left = 218.0
margin_top = 2.0
margin_right = 618.0
margin_bottom = 52.0
rect_min_size = Vector2( 400, 50 )
rect_scale = Vector2( 0.25, 0.25 )
custom_fonts/font = SubResource( 1 )
align = 2
valign = 1
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Add Currency" type="Button" parent="."]
visible = false
margin_left = 300.0
margin_top = 20.0
margin_right = 320.0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Equipped Weapon" type="CenterContainer" parent="."]
margin_left = 275.0
margin_top = 135.0
margin_right = 315.0
margin_bottom = 175.0
rect_min_size = Vector2( 40, 40 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Slot Background" type="TextureRect" parent="Equipped Weapon"]
margin_right = 40.0
margin_bottom = 40.0
texture = ExtResource( 7 )
[node name="Weapon" type="TextureButton" parent="Equipped Weapon"]
margin_left = 7.0
margin_top = 7.0
margin_right = 32.0
margin_bottom = 32.0
rect_min_size = Vector2( 25, 25 )
texture_normal = ExtResource( 6 )
expand = true
[node name="Weapon Selection" type="HBoxContainer" parent="."]
visible = false
margin_left = 230.0
margin_top = 135.0
margin_right = 270.0
margin_bottom = 175.0
grow_horizontal = 0
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Bow" type="CenterContainer" parent="Weapon Selection"]
margin_right = 40.0
margin_bottom = 40.0
rect_min_size = Vector2( 40, 40 )
[node name="Slot Background" type="TextureRect" parent="Weapon Selection/Bow"]
margin_right = 40.0
margin_bottom = 40.0
texture = ExtResource( 7 )
[node name="Weapon" type="TextureButton" parent="Weapon Selection/Bow"]
margin_left = 7.0
margin_top = 7.0
margin_right = 32.0
margin_bottom = 32.0
rect_min_size = Vector2( 25, 25 )
texture_normal = ExtResource( 8 )
expand = true
[node name="Javelin" type="CenterContainer" parent="Weapon Selection"]
margin_left = 44.0
margin_right = 84.0
margin_bottom = 40.0
rect_min_size = Vector2( 40, 40 )
[node name="Slot Background" type="TextureRect" parent="Weapon Selection/Javelin"]
margin_right = 40.0
margin_bottom = 40.0
texture = ExtResource( 7 )
[node name="Weapon" type="TextureButton" parent="Weapon Selection/Javelin"]
margin_left = 7.0
margin_top = 7.0
margin_right = 32.0
margin_bottom = 32.0
rect_min_size = Vector2( 25, 25 )
texture_normal = ExtResource( 9 )
expand = true
[node name="Staff" type="CenterContainer" parent="Weapon Selection"]
margin_left = 88.0
margin_right = 128.0
margin_bottom = 40.0
rect_min_size = Vector2( 40, 40 )
[node name="Slot Background" type="TextureRect" parent="Weapon Selection/Staff"]
margin_right = 40.0
margin_bottom = 40.0
texture = ExtResource( 7 )
[node name="Weapon" type="TextureButton" parent="Weapon Selection/Staff"]
margin_left = 7.0
margin_top = 7.0
margin_right = 32.0
margin_bottom = 32.0
rect_min_size = Vector2( 25, 25 )
texture_normal = ExtResource( 5 )
expand = true
[node name="Sword" type="CenterContainer" parent="Weapon Selection"]
visible = false
margin_left = 132.0
margin_right = 172.0
margin_bottom = 40.0
rect_min_size = Vector2( 40, 40 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Slot Background" type="TextureRect" parent="Weapon Selection/Sword"]
margin_right = 40.0
margin_bottom = 40.0
texture = ExtResource( 7 )
[node name="Weapon" type="TextureButton" parent="Weapon Selection/Sword"]
margin_left = 7.0
margin_top = 7.0
margin_right = 32.0
margin_bottom = 32.0
rect_min_size = Vector2( 25, 25 )
texture_normal = ExtResource( 6 )
expand = true
[connection signal="pressed" from="Add Currency" to="." method="_on_Add_Currency_pressed"]
[connection signal="pressed" from="Equipped Weapon/Weapon" to="." method="_on_weapon_slot_pressed"]
[connection signal="pressed" from="Weapon Selection/Bow/Weapon" to="." method="_on_select_bow_pressed"]
[connection signal="pressed" from="Weapon Selection/Javelin/Weapon" to="." method="_on_select_javelin_pressed"]
[connection signal="pressed" from="Weapon Selection/Staff/Weapon" to="." method="_on_select_staff_pressed"]
[connection signal="pressed" from="Weapon Selection/Sword/Weapon" to="." method="_on_select_sword_pressed"]