437 lines
14 KiB
Plaintext
437 lines
14 KiB
Plaintext
[gd_scene load_steps=17 format=3 uid="uid://0h3dpe6fuhe8"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/combat_ui_scene.gd" id="1_p88l5"]
|
|
[ext_resource type="Script" path="res://scripts/Player.gd" id="3_w71a3"]
|
|
[ext_resource type="Theme" uid="uid://clhh3c3gxotjg" path="res://assets/healthbar.tres" id="4_4e8vj"]
|
|
[ext_resource type="Texture2D" uid="uid://dfk1b4cncnbcd" path="res://assets/stambar_bg.tres" id="4_ykyyt"]
|
|
[ext_resource type="Theme" uid="uid://cp82s71sduhcv" path="res://assets/expbar.tres" id="5_mpq3w"]
|
|
[ext_resource type="Texture2D" uid="uid://ci82tvgp4mhod" path="res://assets/stambar_fill.tres" id="5_rdg13"]
|
|
[ext_resource type="PackedScene" uid="uid://dvwo26vsk46tl" path="res://scenes/ability_player.tscn" id="6_8hwtc"]
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_imvmd"]
|
|
|
|
[sub_resource type="Curve" id="Curve_lpwpb"]
|
|
_data = [Vector2(0.497076, 0.724988), 0.0, 0.0, 0, 0]
|
|
point_count = 1
|
|
|
|
[sub_resource type="CurveTexture" id="CurveTexture_mtsg5"]
|
|
texture_mode = 1
|
|
curve = SubResource("Curve_lpwpb")
|
|
|
|
[sub_resource type="Curve" id="Curve_j1e3e"]
|
|
_data = [Vector2(0.5, 0.236436), 0.0, 0.0, 0, 0]
|
|
point_count = 1
|
|
|
|
[sub_resource type="Curve" id="Curve_0hsoj"]
|
|
|
|
[sub_resource type="Curve" id="Curve_wmq0q"]
|
|
|
|
[sub_resource type="CurveXYZTexture" id="CurveXYZTexture_m13yr"]
|
|
curve_x = SubResource("Curve_j1e3e")
|
|
curve_y = SubResource("Curve_0hsoj")
|
|
curve_z = SubResource("Curve_wmq0q")
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_6jnvr"]
|
|
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_co4b5"]
|
|
|
|
[node name="CombatUIScene" type="Control"]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
size_flags_horizontal = 3
|
|
size_flags_vertical = 3
|
|
script = ExtResource("1_p88l5")
|
|
|
|
[node name="MarginContainer" type="MarginContainer" parent="."]
|
|
layout_mode = 1
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
theme_override_constants/margin_left = 10
|
|
theme_override_constants/margin_top = 10
|
|
theme_override_constants/margin_right = 10
|
|
theme_override_constants/margin_bottom = 10
|
|
|
|
[node name="UITop" type="VBoxContainer" parent="MarginContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 0
|
|
|
|
[node name="QuestsContainer" type="HBoxContainer" parent="MarginContainer/UITop"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
|
|
[node name="AutoProgressToggle" type="CheckButton" parent="MarginContainer/UITop"]
|
|
layout_mode = 2
|
|
text = "Auto Progress"
|
|
|
|
[node name="ContinueButton" type="Button" parent="MarginContainer/UITop"]
|
|
modulate = Color(1, 1, 1, 0)
|
|
layout_mode = 2
|
|
text = "Next Area"
|
|
|
|
[node name="UIBottom" type="HBoxContainer" parent="MarginContainer"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 8
|
|
|
|
[node name="PlayerContainer" type="PanelContainer" parent="MarginContainer/UIBottom"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxEmpty_imvmd")
|
|
|
|
[node name="PlayerInfo" type="VBoxContainer" parent="MarginContainer/UIBottom/PlayerContainer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
script = ExtResource("3_w71a3")
|
|
|
|
[node name="PlayerLabel" type="HBoxContainer" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo"]
|
|
layout_mode = 2
|
|
|
|
[node name="PlayerLevel" type="Label" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerLabel"]
|
|
layout_mode = 2
|
|
text = "1"
|
|
|
|
[node name="PlayerName" type="Label" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerLabel"]
|
|
layout_mode = 2
|
|
text = "Player"
|
|
|
|
[node name="PlayerHealthBarBasic" type="ProgressBar" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo"]
|
|
visible = false
|
|
custom_minimum_size = Vector2(0, 32)
|
|
layout_mode = 2
|
|
size_flags_vertical = 2
|
|
theme = ExtResource("4_4e8vj")
|
|
step = 1.0
|
|
value = 100.0
|
|
|
|
[node name="PlayerHealthBar" type="TextureProgressBar" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo"]
|
|
custom_minimum_size = Vector2(0, 32)
|
|
layout_mode = 2
|
|
size_flags_vertical = 2
|
|
theme = ExtResource("4_4e8vj")
|
|
value = 72.0
|
|
nine_patch_stretch = true
|
|
texture_under = SubResource("CurveTexture_mtsg5")
|
|
texture_progress = SubResource("CurveXYZTexture_m13yr")
|
|
|
|
[node name="PlayerHealthCurrent" type="Label" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerHealthBar"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.0216216
|
|
anchor_top = 0.15625
|
|
anchor_right = 0.286486
|
|
anchor_bottom = 0.875
|
|
grow_vertical = 2
|
|
text = "0"
|
|
vertical_alignment = 1
|
|
metadata/_edit_use_anchors_ = true
|
|
|
|
[node name="PlayerHealthPercent" type="HBoxContainer" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerHealthBar"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -20.0
|
|
offset_top = -20.0
|
|
offset_right = 20.0
|
|
offset_bottom = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="PlayerHealthPercentVal" type="Label" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerHealthBar/PlayerHealthPercent"]
|
|
layout_mode = 2
|
|
text = "0"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="PlayerHealthPercentSym" type="Label" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerHealthBar/PlayerHealthPercent"]
|
|
layout_mode = 2
|
|
text = "%"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="PlayerHealthMax" type="Label" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerHealthBar"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.708108
|
|
anchor_top = 0.15625
|
|
anchor_right = 0.978378
|
|
anchor_bottom = 0.8125
|
|
grow_horizontal = 0
|
|
grow_vertical = 2
|
|
text = "0"
|
|
horizontal_alignment = 2
|
|
vertical_alignment = 1
|
|
metadata/_edit_use_anchors_ = true
|
|
|
|
[node name="PlayerResourceBar" type="TextureProgressBar" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo"]
|
|
custom_minimum_size = Vector2(0, 16)
|
|
layout_mode = 2
|
|
size_flags_vertical = 2
|
|
theme = ExtResource("4_4e8vj")
|
|
value = 89.0
|
|
nine_patch_stretch = true
|
|
texture_under = ExtResource("4_ykyyt")
|
|
texture_progress = ExtResource("5_rdg13")
|
|
|
|
[node name="PlayerResourceCurrent" type="Label" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerResourceBar"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.0216216
|
|
anchor_top = 0.15625
|
|
anchor_right = 0.286486
|
|
anchor_bottom = 0.875
|
|
grow_vertical = 2
|
|
text = "0"
|
|
vertical_alignment = 1
|
|
metadata/_edit_use_anchors_ = true
|
|
|
|
[node name="PlayerResourcePercent" type="HBoxContainer" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerResourceBar"]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -20.0
|
|
offset_top = -20.0
|
|
offset_right = 20.0
|
|
offset_bottom = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="PlayerResourcePercentVal" type="Label" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerResourceBar/PlayerResourcePercent"]
|
|
layout_mode = 2
|
|
text = "0"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="PlayerResourcePercentSym" type="Label" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerResourceBar/PlayerResourcePercent"]
|
|
layout_mode = 2
|
|
text = "%"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="PlayerResourceMax" type="Label" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerResourceBar"]
|
|
layout_mode = 1
|
|
anchors_preset = -1
|
|
anchor_left = 0.708108
|
|
anchor_top = 0.15625
|
|
anchor_right = 0.978378
|
|
anchor_bottom = 0.8125
|
|
grow_horizontal = 0
|
|
grow_vertical = 2
|
|
text = "0"
|
|
horizontal_alignment = 2
|
|
vertical_alignment = 1
|
|
metadata/_edit_use_anchors_ = true
|
|
|
|
[node name="PlayerExpBar" type="ProgressBar" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo"]
|
|
layout_mode = 2
|
|
size_flags_vertical = 10
|
|
theme = ExtResource("5_mpq3w")
|
|
step = 1.0
|
|
value = 43.0
|
|
|
|
[node name="RegenTimer" type="Timer" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo"]
|
|
wait_time = 5.0
|
|
autostart = true
|
|
|
|
[node name="UIBottomCenter" type="VBoxContainer" parent="MarginContainer/UIBottom"]
|
|
custom_minimum_size = Vector2(512, 0)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 4
|
|
|
|
[node name="AbilityBar" type="HBoxContainer" parent="MarginContainer/UIBottom/UIBottomCenter"]
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 6
|
|
alignment = 1
|
|
|
|
[node name="AbilityA1" parent="MarginContainer/UIBottom/UIBottomCenter/AbilityBar" instance=ExtResource("6_8hwtc")]
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
attack_damage = 500
|
|
attack_range = 9999
|
|
auto_damage = 450
|
|
|
|
[node name="AbilityA2" parent="MarginContainer/UIBottom/UIBottomCenter/AbilityBar" instance=ExtResource("6_8hwtc")]
|
|
visible = false
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
target_type = 3
|
|
attack_damage = 50
|
|
ability_binding = "use_A2"
|
|
attack_range = 200
|
|
auto_speed = 5.0
|
|
|
|
[node name="AbilityA3" parent="MarginContainer/UIBottom/UIBottomCenter/AbilityBar" instance=ExtResource("6_8hwtc")]
|
|
visible = false
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
ability_binding = "use_A3"
|
|
|
|
[node name="AbilityA4" parent="MarginContainer/UIBottom/UIBottomCenter/AbilityBar" instance=ExtResource("6_8hwtc")]
|
|
visible = false
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
ability_binding = "use_A4"
|
|
|
|
[node name="AbilityB1" parent="MarginContainer/UIBottom/UIBottomCenter/AbilityBar" instance=ExtResource("6_8hwtc")]
|
|
visible = false
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
ability_binding = "use_B1"
|
|
|
|
[node name="AbilityB2" parent="MarginContainer/UIBottom/UIBottomCenter/AbilityBar" instance=ExtResource("6_8hwtc")]
|
|
visible = false
|
|
custom_minimum_size = Vector2(64, 64)
|
|
layout_mode = 2
|
|
size_flags_horizontal = 6
|
|
ability_binding = "use_B2"
|
|
|
|
[node name="MenuButtons" type="HBoxContainer" parent="MarginContainer/UIBottom/UIBottomCenter"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 8
|
|
|
|
[node name="MainMenuButton" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
|
layout_mode = 2
|
|
text = "Menu"
|
|
|
|
[node name="MapMenuButton" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
|
layout_mode = 2
|
|
text = "Map"
|
|
|
|
[node name="SkillsMenuButton" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
|
layout_mode = 2
|
|
text = "Skills"
|
|
|
|
[node name="InvMenuButton" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
|
layout_mode = 2
|
|
text = "Inventory"
|
|
|
|
[node name="LogMenuButton" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
|
layout_mode = 2
|
|
text = "Log"
|
|
|
|
[node name="CraftMenuButton" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
|
layout_mode = 2
|
|
text = "Crafting"
|
|
|
|
[node name="DebugMenu" type="HBoxContainer" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
|
unique_name_in_owner = true
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 8
|
|
|
|
[node name="ButtonTest" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons/DebugMenu"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 8
|
|
text = "Test"
|
|
|
|
[node name="TouchScreenButton" type="TouchScreenButton" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons/DebugMenu/ButtonTest"]
|
|
|
|
[node name="ButtonExit" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons/DebugMenu"]
|
|
process_mode = 3
|
|
layout_mode = 2
|
|
size_flags_horizontal = 4
|
|
size_flags_vertical = 8
|
|
text = "Exit"
|
|
|
|
[node name="TouchScreenButton" type="TouchScreenButton" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons/DebugMenu/ButtonExit"]
|
|
|
|
[node name="MPlayerFollowerContainer" type="PanelContainer" parent="MarginContainer/UIBottom"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
theme_override_styles/panel = SubResource("StyleBoxEmpty_6jnvr")
|
|
|
|
[node name="MPlayerFollowerInfo" type="VBoxContainer" parent="MarginContainer/UIBottom/MPlayerFollowerContainer"]
|
|
visible = false
|
|
layout_mode = 2
|
|
size_flags_horizontal = 3
|
|
|
|
[node name="MPlayerFollowerHealthBar" type="ProgressBar" parent="MarginContainer/UIBottom/MPlayerFollowerContainer/MPlayerFollowerInfo"]
|
|
layout_mode = 2
|
|
theme = ExtResource("4_4e8vj")
|
|
|
|
[node name="UIRight" type="PanelContainer" parent="MarginContainer"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 8
|
|
theme_override_styles/panel = SubResource("StyleBoxEmpty_co4b5")
|
|
|
|
[node name="InfoPanel" type="VBoxContainer" parent="MarginContainer/UIRight"]
|
|
layout_mode = 2
|
|
|
|
[node name="SystemClock" type="Label" parent="MarginContainer/UIRight/InfoPanel"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
size_flags_horizontal = 8
|
|
text = "HH:MM:SS"
|
|
|
|
[node name="ClockTimer" type="Timer" parent="MarginContainer/UIRight/InfoPanel/SystemClock"]
|
|
autostart = true
|
|
|
|
[node name="ZoneTimer" type="HBoxContainer" parent="MarginContainer/UIRight/InfoPanel"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 8
|
|
|
|
[node name="ZTLabel" type="Label" parent="MarginContainer/UIRight/InfoPanel/ZoneTimer"]
|
|
layout_mode = 2
|
|
text = "Zone:"
|
|
|
|
[node name="ZTVal" type="Label" parent="MarginContainer/UIRight/InfoPanel/ZoneTimer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "DDD HH:MM:SS"
|
|
|
|
[node name="AreaTimer" type="HBoxContainer" parent="MarginContainer/UIRight/InfoPanel"]
|
|
layout_mode = 2
|
|
size_flags_horizontal = 8
|
|
|
|
[node name="ATLabel" type="Label" parent="MarginContainer/UIRight/InfoPanel/AreaTimer"]
|
|
layout_mode = 2
|
|
text = "Area:"
|
|
|
|
[node name="ATVal" type="Label" parent="MarginContainer/UIRight/InfoPanel/AreaTimer"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "DDD HH:MM:SS"
|
|
|
|
[node name="AreaCount" type="HBoxContainer" parent="MarginContainer/UIRight/InfoPanel"]
|
|
layout_mode = 2
|
|
|
|
[node name="AreaCountLabel" type="Label" parent="MarginContainer/UIRight/InfoPanel/AreaCount"]
|
|
layout_mode = 2
|
|
text = "Areas Completed:"
|
|
|
|
[node name="AreaCountVal" type="Label" parent="MarginContainer/UIRight/InfoPanel/AreaCount"]
|
|
unique_name_in_owner = true
|
|
layout_mode = 2
|
|
text = "0"
|
|
|
|
[connection signal="pressed" from="MarginContainer/UITop/ContinueButton" to="." method="_on_continue_button_pressed"]
|
|
[connection signal="timeout" from="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/RegenTimer" to="MarginContainer/UIBottom/PlayerContainer/PlayerInfo" method="_on_regen_timer_timeout"]
|
|
[connection signal="pressed" from="MarginContainer/UIBottom/UIBottomCenter/MenuButtons/DebugMenu/ButtonTest" to="." method="_on_button_test_pressed"]
|
|
[connection signal="pressed" from="MarginContainer/UIBottom/UIBottomCenter/MenuButtons/DebugMenu/ButtonExit" to="." method="_on_button_exit_pressed"]
|
|
[connection signal="timeout" from="MarginContainer/UIRight/InfoPanel/SystemClock/ClockTimer" to="." method="_on_clock_timer_timeout"]
|