@ -1,6 +1,8 @@
[gd_scene load_steps=2 format=3 uid="uid://cl5d768roh8ir"]
[gd_scene load_steps=4 format=3 uid="uid://cl5d768roh8ir"]
[ext_resource type="Script" path="res://Systems/UI/Menu System/Scripts/battle_menu.gd" id="1_fije1"]
[ext_resource type="Texture2D" uid="uid://dqf1p1mfki3vc" path="res://assets/art/ui/bar_under.png" id="2_ayq4q"]
[ext_resource type="Texture2D" uid="uid://bnp5t7o26kb0c" path="res://assets/art/ui/bar_over.png" id="3_s7h0n"]
[node name="battle_menu" type="Control"]
layout_mode = 3
@ -13,43 +15,114 @@ script = ExtResource("1_fije1")
[node name="Panel" type="Panel" parent="."]
layout_mode = 1
anchors_preset = 8
offset_right = 190.0
offset_bottom = 408.0
[node name="InfoPanel" type="Panel" parent="Panel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -100.0
offset_top = -86.0
offset_right = 70.0
offset_bottom = 145.0
offset_left = -85.0
offset_right = 85.0
offset_bottom = 148.0
grow_horizontal = 2
grow_vertical = 2
[node name="ATB" type="TextureProgressBar" parent="Panel/InfoPanel"]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -85.0
offset_top = -29.0
offset_right = 185.0
offset_bottom = 21.0
grow_horizontal = 2
grow_vertical = 0
scale = Vector2(0.63, 0.403)
value = 50.0
texture_under = ExtResource("2_ayq4q")
texture_progress = ExtResource("3_s7h0n")
texture_progress_offset = Vector2(16, 8)
[node name="Name" type="Label" parent="Panel/InfoPanel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -52.5
offset_right = 52.5
offset_bottom = 26.0
grow_horizontal = 2
text = "Fighter Name
"
[node name="HP" type="Label" parent="Panel/InfoPanel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -71.5
offset_top = 26.0
offset_right = 71.5
offset_bottom = 52.0
grow_horizontal = 2
text = "CurrentHP/MaxHP
"
[node name="MentalStamina" type="Label" parent="Panel/InfoPanel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -71.5
offset_top = 52.0
offset_right = 71.5
offset_bottom = 78.0
grow_horizontal = 2
text = "Current/Max
"
[node name="PhysicalStamina" type="Label" parent="Panel/InfoPanel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -71.5
offset_top = 78.0
offset_right = 71.5
offset_bottom = 104.0
grow_horizontal = 2
text = "Current/Max
"
[node name="Label" type="Label" parent="Panel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -60.0
offset_top = 16.0
offset_right = 53.0
offset_bottom = 45.0
offset_left = -5 6.0
offset_top = 159 .0
offset_right = 57 .0
offset_bottom = 188 .0
grow_horizontal = 2
text = "Battle Menu"
horizontal_alignment = 1
[node name="Panel" type="Panel" parent="Panel"]
[node name="Menu Panel" type="Panel" parent="Panel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -72.0
offset_top = 45.0
offset_top = 190 .0
offset_right = 75.0
offset_bottom = 228.0
offset_bottom = 373 .0
grow_horizontal = 2
[node name="Attack" type="Button" parent="Panel/Panel"]
[node name="Attack" type="Button" parent="Panel/Menu Panel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
@ -62,7 +135,7 @@ grow_horizontal = 2
text = "Attack
"
[node name="Tech" type="Button" parent="Panel/Panel"]
[node name="Tech" type="Button" parent="Panel/Menu Panel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
@ -74,7 +147,7 @@ offset_bottom = 72.0
grow_horizontal = 2
text = "Tech"
[node name="Defend" type="Button" parent="Panel/Panel"]
[node name="Defend" type="Button" parent="Panel/Menu Panel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
@ -86,7 +159,7 @@ offset_bottom = 107.0
grow_horizontal = 2
text = "Defend"
[node name="Item" type="Button" parent="Panel/Panel"]
[node name="Item" type="Button" parent="Panel/Menu Panel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
@ -98,7 +171,7 @@ offset_bottom = 142.0
grow_horizontal = 2
text = "Item"
[node name="Rest" type="Button" parent="Panel/Panel"]
[node name="Rest" type="Button" parent="Panel/Menu Panel"]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
@ -110,8 +183,35 @@ offset_bottom = 177.0
grow_horizontal = 2
text = "Rest"
[connection signal="pressed" from="Panel/Panel/Attack" to="." method="_on_attack_pressed"]
[connection signal="pressed" from="Panel/Panel/Tech" to="." method="_on_tech_pressed"]
[connection signal="pressed" from="Panel/Panel/Defend" to="." method="_on_defend_pressed"]
[connection signal="pressed" from="Panel/Panel/Item" to="." method="_on_item_pressed"]
[connection signal="pressed" from="Panel/Panel/Rest" to="." method="_on_item_pressed"]
[node name="ActionPanel" type="Panel" parent="Panel"]
layout_mode = 1
anchors_preset = 12
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_top = -33.0
grow_horizontal = 2
grow_vertical = 0
[node name="ActionState" type="Label" parent="Panel/ActionPanel"]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -85.0
offset_top = -13.0
offset_right = 85.0
offset_bottom = 13.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 10
horizontal_alignment = 1
vertical_alignment = 1
[connection signal="pressed" from="Panel/MenuPanel/Attack" to="." method="_on_attack_pressed"]
[connection signal="pressed" from="Panel/MenuPanel/Tech" to="." method="_on_tech_pressed"]
[connection signal="pressed" from="Panel/MenuPanel/Defend" to="." method="_on_defend_pressed"]
[connection signal="pressed" from="Panel/MenuPanel/Item" to="." method="_on_item_pressed"]
[connection signal="pressed" from="Panel/MenuPanel/Rest" to="." method="_on_item_pressed"]