QuestLogPanelUI ​
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 ​
PackedScene | quest_log_button | |
PackedScene | quest_log_objective_label |
Variables ​
Dictionary | button_instances | {} |
QuestLogButtonUI | current_selected_quest | null |
Dictionary | objective_labels | {} |
Array[QuestObjective] | connected_objectives | [] |
Methods ​
void | initialize_ui( system_hub: GameHost.SystemHub ) |
QuestLogButtonUI | add_quest_button( quest: Quest, parent_container: VBoxContainer ) |
void | update_quest_details( quest: Quest ) |
void | clear_quest_details() |
void | close_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.