QuestTrackerQuestUI ​
Inherits: MarginContainer
One tracked quest in the quest tracker: the title of the quest and its objectives. It makes an objective label for each objective from quest_objective_label, and keeps them up to date.
Properties ​
PackedScene | quest_objective_label |
Variables ​
int | quest_id | -1 |
Dictionary | objective_labels | {} |
Tween | quest_tween | |
EventManager | event_manager |
Methods ​
void | setup( quest: Quest ) |
void | animate_quest_removal() |
void | update_objective( objective: QuestObjective ) |
Property descriptions ​
PackedScene quest_objective_label ​
The scene of one objective line.
Variable descriptions ​
int quest_id = -1 ​
Keep track of the quest being displayed
Dictionary objective_labels = ​
Dictionary to store objective labels by objective object reference
Tween quest_tween ​
Animation properties
EventManager event_manager ​
The event manager (set by the tracker that makes this display: a scene cannot be made with arguments)
Method descriptions ​
void setup( quest: Quest ) ​
Fills the tracker with a quest: its title and its objectives.
void animate_quest_removal() ​
Plays the animation of the quest leaving the tracker.
void update_objective( objective: QuestObjective ) ​
Updates the line of an objective (unless it is hidden).