Quest system fixed.

This commit is contained in:
2025-05-07 10:33:00 -05:00
parent 12746a520e
commit f940247a48
14 changed files with 94 additions and 29 deletions

View File

@@ -27,7 +27,6 @@ layout_mode = 2
[node name="Quests" type="Button" parent="."]
layout_mode = 2
disabled = true
text = "Prototype Quests
"

View File

@@ -2,13 +2,16 @@
[ext_resource type="Script" uid="uid://cbsrw36kkucje" path="res://scripts/UI/QuestMenu.gd" id="1_a7vj2"]
[node name="QuestMenu" type="Panel"]
[node name="QuestMenu" type="Panel" node_paths=PackedStringArray("questList", "questName")]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_a7vj2")
questList = NodePath("VBoxContainer/HBoxContainer/QuestList")
questName = NodePath("VBoxContainer/HBoxContainer/Control/VBoxContainer/QuestName")
metadata/_custom_type_script = "uid://cbsrw36kkucje"
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 1
@@ -26,7 +29,7 @@ text = "Quests"
layout_mode = 2
size_flags_vertical = 3
[node name="ItemList" type="ItemList" parent="VBoxContainer/HBoxContainer"]
[node name="QuestList" type="ItemList" parent="VBoxContainer/HBoxContainer"]
custom_minimum_size = Vector2(250, 0)
layout_mode = 2
size_flags_horizontal = 0
@@ -38,3 +41,15 @@ item_1/text = "Quest Name 2"
[node name="Control" type="Control" parent="VBoxContainer/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
[node name="VBoxContainer" type="VBoxContainer" parent="VBoxContainer/HBoxContainer/Control"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="QuestName" type="Label" parent="VBoxContainer/HBoxContainer/Control/VBoxContainer"]
layout_mode = 2
text = "QuestName"