Skip to content

QuestLogPanelUI ​

Inherits: PanelUI < Control

The quest log window: the lists of active and completed quests (a button for each, made from quest_log_button), and the name, the description and the objectives (made from quest_log_objective_label) of the selected quest.

Properties ​

PackedScenequest_log_button
PackedScenequest_log_objective_label

Variables ​

Dictionarybutton_instances{}
QuestLogButtonUIcurrent_selected_questnull
Dictionaryobjective_labels{}
Array[QuestObjective]connected_objectives[]

Methods ​

voidinitialize_ui( system_hub: GameHost.SystemHub )
QuestLogButtonUIadd_quest_button( quest: Quest, parent_container: VBoxContainer )
voidupdate_quest_details( quest: Quest )
voidclear_quest_details()
voidclose_panel()

Property descriptions ​

PackedScene quest_log_button ​

The scene of one quest in the list.

PackedScene quest_log_objective_label ​

The scene of one objective.

Variable descriptions ​

Dictionary button_instances = ​

Dictionary to store quest_id -> button instance

QuestLogButtonUI current_selected_quest = null ​

The button of the quest shown.

Dictionary objective_labels = ​

Dictionary to store objective -> objective_label instances

Array[QuestObjective] connected_objectives = [] ​

Track connected objectives for cleanup

Method descriptions ​

void initialize_ui( system_hub: GameHost.SystemHub ) ​

Sets the part up with the hub of the game systems: connects the signals it listens to and fills it.

QuestLogButtonUI add_quest_button( quest: Quest, parent_container: VBoxContainer ) ​

Adds the button of a quest to a list (or gives the one it has).

void update_quest_details( quest: Quest ) ​

Shows the name, the text and the objectives of a quest.

void clear_quest_details() ​

Empties the details.

void close_panel() ​

Closes the window.