Skip to content

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 ​

PackedScenequest_objective_label

Variables ​

intquest_id-1
Dictionaryobjective_labels{}
Tweenquest_tween
EventManagerevent_manager

Methods ​

voidsetup( quest: Quest )
voidanimate_quest_removal()
voidupdate_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).