Made quest usable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user