Skip to content

SpellBookPanelUI ​

Inherits: PanelUI < Control

Spell Book Panel UI - Container for abilities and skill tree Follows the new architecture pattern: setup once, signals handle updates Contains AbilityPanelUI for spells and future SkillTree panel

Variables ​

DisplayModecurrent_display_modeDisplayMode.ABILITIES

Methods ​

voidinitialize_ui( system_hub: GameHost.SystemHub )
voidset_display_mode( mode: DisplayMode )
voidshow_abilities()
voidshow_skills()
voidrefresh_display()

Enumerations ​

enum DisplayMode ​

State tracking for sub-panel visibility

  • ABILITIES = 0
  • SKILL_TREE = 1

Variable descriptions ​

DisplayMode current_display_mode = DisplayMode.ABILITIES ​

What the book shows: the abilities or the skill tree.

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.

void set_display_mode( mode: DisplayMode ) ​

Method to manually set the display mode

void show_abilities() ​

Public methods for external access

void show_skills() ​

Shows the skill tree.

void refresh_display() ​

Refresh the current display