Made quest usable

This commit is contained in:
cblech
2025-07-07 04:41:03 +02:00
parent 01daddee3b
commit 27e137bc02
13 changed files with 402 additions and 15 deletions
+8 -2
View File
@@ -10,6 +10,12 @@ public partial class QuestListUi : VBoxContainer
public override void _EnterTree()
{
UpdateList();
QuestManager.Instance!.QuestsChanged += UpdateList;
}
public override void _ExitTree()
{
QuestManager.Instance!.QuestsChanged -= UpdateList;
}
public override void _Ready()
@@ -27,8 +33,8 @@ public partial class QuestListUi : VBoxContainer
}
// recreate children
var activeQuests = QuestManager.Instance.GetActiveQuests();
var activeQuests = QuestManager.Instance.GetVisibleQuests();
foreach (var questPair in activeQuests)
{
var questResource = questPair.Key;