Restructured files and worked on more complex quest progression

This commit is contained in:
2025-08-11 02:16:39 -04:00
parent 434216ca29
commit 95a7db036b
47 changed files with 475 additions and 53 deletions

View File

@@ -1,7 +1,7 @@
class_name GamePanel extends MarginContainer
const notice_template = preload("res://notice_panel.tscn")
const quest_progress_bar_template = preload("res://quest_progress_bar.tscn")
const notice_template = preload("res://templates/notice_panel.tscn")
const quest_progress_bar_template = preload("res://templates/quest_progress_bar.tscn")
signal time_changed(time : float)
@@ -15,8 +15,8 @@ func _process(delta: float) -> void:
func add_quest_progress_bar(quest : Quest) -> void:
var qpb : QuestProgressBar = quest_progress_bar_template.instantiate()
qpb.setup(quest)
%QuestList.add_child(qpb)
qpb.setup(quest)
#TODO: Change the hero portrait to match
if quest.steps > 1:
for i in range(quest.steps-1):