Skip to content

QuestLogButtonUI ​

Inherits: MarginContainer

One quest in the list of the quest log: its name, with a highlight when it is the quest shown. quest_selected is emitted when it is clicked.

Variables ​

Questquest
boolis_activefalse

Methods ​

voidset_quest( new_quest: Quest )
voidset_active( active: bool )
voiddeactivate()

Signals ​

quest_selected( quest_button: QuestLogButtonUI ) ​

Emitted when the button is clicked.

Variable descriptions ​

Quest quest ​

The quest of the button.

bool is_active = false ​

True when this is the quest shown.

Method descriptions ​

void set_quest( new_quest: Quest ) ​

Sets the quest of the button.

void set_active( active: bool ) ​

Marks the quest as the one shown (or not).

void deactivate() ​

Call this from outside to deactivate other buttons