2024-10-20 16:44:08 -06:00
|
|
|
[gd_scene load_steps=16 format=3 uid="uid://0h3dpe6fuhe8"]
|
2024-10-08 20:51:11 -06:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://scripts/test_scroll_scene.gd" id="1_gc1kb"]
|
2024-10-17 14:11:10 -06:00
|
|
|
[ext_resource type="Theme" uid="uid://clhh3c3gxotjg" path="res://assets/healthbar.tres" id="2_2v2l0"]
|
2024-10-17 16:50:40 -06:00
|
|
|
[ext_resource type="Script" path="res://scripts/WorldArea.gd" id="2_ccxbh"]
|
2024-10-18 16:17:39 -06:00
|
|
|
[ext_resource type="PackedScene" uid="uid://dvwo26vsk46tl" path="res://scenes/ability_player.tscn" id="2_heria"]
|
2024-10-20 16:44:08 -06:00
|
|
|
[ext_resource type="Script" path="res://scripts/Player.gd" id="3_cjiwt"]
|
2024-10-17 14:11:10 -06:00
|
|
|
[ext_resource type="Theme" uid="uid://cp82s71sduhcv" path="res://assets/expbar.tres" id="3_n8q4b"]
|
|
|
|
|
2024-10-17 16:50:40 -06:00
|
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_6qo1s"]
|
|
|
|
|
2024-10-17 14:11:10 -06:00
|
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_imvmd"]
|
|
|
|
|
2024-10-18 14:05:31 -06:00
|
|
|
[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")
|
|
|
|
|
2024-10-17 14:11:10 -06:00
|
|
|
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_6jnvr"]
|
2024-10-08 20:51:11 -06:00
|
|
|
|
|
|
|
[node name="TestInstanceScene" type="Control"]
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2024-10-18 16:17:39 -06:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
size_flags_vertical = 3
|
2024-10-08 20:51:11 -06:00
|
|
|
script = ExtResource("1_gc1kb")
|
|
|
|
debug = true
|
|
|
|
|
2024-10-09 20:55:46 -06:00
|
|
|
[node name="SpawnTimer" type="Timer" parent="."]
|
|
|
|
|
2024-10-17 16:50:40 -06:00
|
|
|
[node name="WorldArea" type="PanelContainer" parent="."]
|
2024-10-08 20:51:11 -06:00
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 1
|
2024-10-17 16:50:40 -06:00
|
|
|
anchors_preset = 15
|
2024-10-08 20:51:11 -06:00
|
|
|
anchor_right = 1.0
|
2024-10-17 16:50:40 -06:00
|
|
|
anchor_bottom = 1.0
|
2024-10-08 20:51:11 -06:00
|
|
|
grow_horizontal = 2
|
2024-10-17 16:50:40 -06:00
|
|
|
grow_vertical = 2
|
|
|
|
theme_override_styles/panel = SubResource("StyleBoxEmpty_6qo1s")
|
|
|
|
script = ExtResource("2_ccxbh")
|
2024-10-08 20:51:11 -06:00
|
|
|
|
|
|
|
[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
|
|
|
|
|
2024-10-17 14:11:10 -06:00
|
|
|
[node name="UITop" type="VBoxContainer" parent="MarginContainer"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 0
|
|
|
|
|
|
|
|
[node name="QuestsContainer" type="HBoxContainer" parent="MarginContainer/UITop"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="UIBottom" type="HBoxContainer" parent="MarginContainer"]
|
2024-10-08 20:51:11 -06:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 8
|
|
|
|
|
2024-10-17 14:11:10 -06:00
|
|
|
[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"]
|
2024-10-18 16:17:39 -06:00
|
|
|
unique_name_in_owner = true
|
2024-10-15 16:35:03 -06:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
2024-10-20 16:44:08 -06:00
|
|
|
script = ExtResource("3_cjiwt")
|
2024-10-15 16:35:03 -06:00
|
|
|
|
2024-10-17 14:11:10 -06:00
|
|
|
[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"
|
|
|
|
|
2024-10-18 16:17:39 -06:00
|
|
|
[node name="PlayerHealthBarBasic" type="ProgressBar" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo"]
|
2024-10-18 14:05:31 -06:00
|
|
|
visible = false
|
2024-10-17 14:11:10 -06:00
|
|
|
custom_minimum_size = Vector2(0, 32)
|
2024-10-15 16:35:03 -06:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 2
|
2024-10-17 14:11:10 -06:00
|
|
|
theme = ExtResource("2_2v2l0")
|
|
|
|
step = 1.0
|
|
|
|
value = 100.0
|
|
|
|
|
2024-10-18 16:17:39 -06:00
|
|
|
[node name="PlayerHealthBar" type="TextureProgressBar" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo"]
|
2024-10-18 14:05:31 -06:00
|
|
|
custom_minimum_size = Vector2(0, 32)
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 2
|
|
|
|
theme = ExtResource("2_2v2l0")
|
|
|
|
value = 72.0
|
|
|
|
nine_patch_stretch = true
|
|
|
|
texture_under = SubResource("CurveTexture_mtsg5")
|
|
|
|
texture_progress = SubResource("CurveXYZTexture_m13yr")
|
|
|
|
|
2024-10-18 16:17:39 -06:00
|
|
|
[node name="PlayerHealthCurrent" type="Label" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo/PlayerHealthBar"]
|
2024-10-18 14:05:31 -06:00
|
|
|
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
|
|
|
|
|
2024-10-18 16:17:39 -06:00
|
|
|
[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"]
|
2024-10-18 14:05:31 -06:00
|
|
|
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
|
|
|
|
|
2024-10-17 14:11:10 -06:00
|
|
|
[node name="PlayerExpBar" type="ProgressBar" parent="MarginContainer/UIBottom/PlayerContainer/PlayerInfo"]
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_vertical = 10
|
|
|
|
theme = ExtResource("3_n8q4b")
|
|
|
|
step = 1.0
|
|
|
|
value = 43.0
|
2024-10-15 16:35:03 -06:00
|
|
|
|
|
|
|
[node name="UIBottomCenter" type="VBoxContainer" parent="MarginContainer/UIBottom"]
|
2024-10-18 16:17:39 -06:00
|
|
|
custom_minimum_size = Vector2(512, 0)
|
2024-10-08 20:51:11 -06:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 4
|
2024-10-15 16:35:03 -06:00
|
|
|
size_flags_vertical = 4
|
2024-10-08 20:51:11 -06:00
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[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("2_heria")]
|
|
|
|
custom_minimum_size = Vector2(64, 64)
|
2024-10-15 08:14:02 -06:00
|
|
|
layout_mode = 2
|
2024-10-20 16:44:08 -06:00
|
|
|
attack_range = 9999
|
|
|
|
attack_damage = 999999
|
2024-10-15 08:14:02 -06:00
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="AbilityA2" parent="MarginContainer/UIBottom/UIBottomCenter/AbilityBar" instance=ExtResource("2_heria")]
|
2024-10-20 16:44:08 -06:00
|
|
|
visible = false
|
2024-10-15 16:35:03 -06:00
|
|
|
custom_minimum_size = Vector2(64, 64)
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 6
|
2024-10-18 11:25:29 -06:00
|
|
|
target_type = 3
|
2024-10-20 16:44:08 -06:00
|
|
|
attack_range = 200
|
2024-10-18 13:24:11 -06:00
|
|
|
attack_damage = 50
|
2024-10-18 11:25:29 -06:00
|
|
|
auto_speed = 5.0
|
2024-10-15 16:35:03 -06:00
|
|
|
|
|
|
|
[node name="AbilityA3" parent="MarginContainer/UIBottom/UIBottomCenter/AbilityBar" instance=ExtResource("2_heria")]
|
|
|
|
visible = false
|
|
|
|
custom_minimum_size = Vector2(64, 64)
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 6
|
|
|
|
|
|
|
|
[node name="AbilityA4" parent="MarginContainer/UIBottom/UIBottomCenter/AbilityBar" instance=ExtResource("2_heria")]
|
|
|
|
visible = false
|
|
|
|
custom_minimum_size = Vector2(64, 64)
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 6
|
|
|
|
|
|
|
|
[node name="AbilityB1" parent="MarginContainer/UIBottom/UIBottomCenter/AbilityBar" instance=ExtResource("2_heria")]
|
|
|
|
visible = false
|
|
|
|
custom_minimum_size = Vector2(64, 64)
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 6
|
|
|
|
|
|
|
|
[node name="AbilityB2" parent="MarginContainer/UIBottom/UIBottomCenter/AbilityBar" instance=ExtResource("2_heria")]
|
|
|
|
visible = false
|
|
|
|
custom_minimum_size = Vector2(64, 64)
|
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 6
|
|
|
|
|
|
|
|
[node name="MenuButtons" type="HBoxContainer" parent="MarginContainer/UIBottom/UIBottomCenter"]
|
2024-10-15 08:14:02 -06:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 8
|
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="MainMenuButton" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
2024-10-08 20:51:11 -06:00
|
|
|
layout_mode = 2
|
|
|
|
text = "Menu"
|
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="MapMenuButton" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
2024-10-08 20:51:11 -06:00
|
|
|
layout_mode = 2
|
|
|
|
text = "Map"
|
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="SkillsMenuButton" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
2024-10-08 20:51:11 -06:00
|
|
|
layout_mode = 2
|
|
|
|
text = "Skills"
|
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="InvMenuButton" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
2024-10-08 20:51:11 -06:00
|
|
|
layout_mode = 2
|
|
|
|
text = "Inventory"
|
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="LogMenuButton" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
2024-10-08 20:51:11 -06:00
|
|
|
layout_mode = 2
|
|
|
|
text = "Log"
|
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="CraftMenuButton" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
2024-10-08 20:51:11 -06:00
|
|
|
layout_mode = 2
|
|
|
|
text = "Crafting"
|
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="DebugMenu" type="HBoxContainer" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons"]
|
2024-10-18 16:17:39 -06:00
|
|
|
unique_name_in_owner = true
|
2024-10-18 09:11:15 -06:00
|
|
|
visible = false
|
2024-10-08 20:51:11 -06:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 8
|
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="ButtonTest" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons/DebugMenu"]
|
2024-10-08 20:51:11 -06:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 8
|
2024-10-18 16:17:39 -06:00
|
|
|
text = "Test"
|
2024-10-08 20:51:11 -06:00
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="TouchScreenButton" type="TouchScreenButton" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons/DebugMenu/ButtonTest"]
|
2024-10-08 20:51:11 -06:00
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="ButtonExit" type="Button" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons/DebugMenu"]
|
2024-10-08 20:51:11 -06:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 4
|
|
|
|
size_flags_vertical = 8
|
|
|
|
text = "Exit"
|
|
|
|
|
2024-10-15 16:35:03 -06:00
|
|
|
[node name="TouchScreenButton" type="TouchScreenButton" parent="MarginContainer/UIBottom/UIBottomCenter/MenuButtons/DebugMenu/ButtonExit"]
|
|
|
|
|
2024-10-17 14:11:10 -06:00
|
|
|
[node name="MPlayerFollowerContainer" type="PanelContainer" parent="MarginContainer/UIBottom"]
|
2024-10-15 16:35:03 -06:00
|
|
|
layout_mode = 2
|
|
|
|
size_flags_horizontal = 3
|
2024-10-17 14:11:10 -06:00
|
|
|
theme_override_styles/panel = SubResource("StyleBoxEmpty_6jnvr")
|
2024-10-15 16:35:03 -06:00
|
|
|
|
2024-10-17 14:11:10 -06:00
|
|
|
[node name="MPlayerFollowerInfo" type="VBoxContainer" parent="MarginContainer/UIBottom/MPlayerFollowerContainer"]
|
2024-10-15 16:35:03 -06:00
|
|
|
visible = false
|
|
|
|
layout_mode = 2
|
2024-10-17 14:11:10 -06:00
|
|
|
size_flags_horizontal = 3
|
|
|
|
|
|
|
|
[node name="MPlayerFollowerHealthBar" type="ProgressBar" parent="MarginContainer/UIBottom/MPlayerFollowerContainer/MPlayerFollowerInfo"]
|
|
|
|
layout_mode = 2
|
|
|
|
theme = ExtResource("2_2v2l0")
|
2024-10-08 20:51:11 -06:00
|
|
|
|
2024-10-09 20:55:46 -06:00
|
|
|
[connection signal="timeout" from="SpawnTimer" to="." method="_on_spawn_timer_timeout"]
|
2024-10-15 16:35:03 -06:00
|
|
|
[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"]
|