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 ​
Tween | tween | |
Color | original_color | Color.WHITE |
Color | completion_color | Color(0.5, 0.9, 0.5) |
Color | failure_color | Color(0.9, 0.3, 0.3) |
Methods ​
void | setup_objective( objective: QuestObjective ) |
void | update_objective_display( objective: QuestObjective ) |
void | animate_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).