Made quest usable

This commit is contained in:
cblech
2025-07-06 17:56:59 +02:00
parent ace7575026
commit 1b129ed050
13 changed files with 463 additions and 19 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;