Skip to content

QuestTrackerQuestUIObjectiveLabel ​

Inherits: HBoxContainer

One objective in the quest tracker: its text and its progress, with an animation (a color change) when it is completed.

Variables ​

Tweentween
Colororiginal_colorColor.WHITE
Colorcompletion_colorColor(0.5, 0.9, 0.5)
Colorfailure_colorColor(0.9, 0.3, 0.3)

Methods ​

voidsetup_objective( objective: QuestObjective )
voidupdate_objective_display( objective: QuestObjective )
voidanimate_progress_update()

Variable descriptions ​

Tween tween ​

Animation properties

Color original_color = Color.WHITE ​

The color of the text, kept to give it back after an animation.

Color completion_color = Color(0.5, 0.9, 0.5) ​

Green

Color failure_color = Color(0.9, 0.3, 0.3) ​

Red

Method descriptions ​

void setup_objective( objective: QuestObjective ) ​

Fills the label with an objective: its text and its progress.

void update_objective_display( objective: QuestObjective ) ​

Updates the text and the progress of the objective.

void animate_progress_update() ​

Plays a short animation when the progress changes (not at the end).