Skip to content

CharacterStatsDisplayUI ​

Inherits: MarginContainer

Character Stats Display UI - Dynamic stats interface with individual stat connections Gets initial data from GameHost.party_manager.current_player, then individual stats handle their own updates No stored references needed - each stat component connects directly to its stat instance signals Refactored to forward tooltip signals from stat components

Properties ​

PackedScenecharacter_sheet_stat_scene

Variables ​

Array[CharacterSheetStat]stat_components[]

Methods ​

voidinitialize_display( system_hub: GameHost.SystemHub, current_player: Player )
voidpopulate_stats_display( system_hub: GameHost.SystemHub, stats_component: StatsComponent )
voidclear_stat_components()
voidclear_stats_display()

Signals ​

description_tooltip_requested( object_name: String, description: String ) ​

Signals for forwarding from child stats

hide_tooltip( force_hide: bool ) ​

Asks the interface to hide the tooltip (force hides it at once).

Property descriptions ​

PackedScene character_sheet_stat_scene ​

Scene to instantiate for each stat

Variable descriptions ​

Array[CharacterSheetStat] stat_components = [] ​

Array to keep track of created stat components

Method descriptions ​

void initialize_display( system_hub: GameHost.SystemHub, current_player: Player ) ​

Initialize the stats display with current player data

void populate_stats_display( system_hub: GameHost.SystemHub, stats_component: StatsComponent ) ​

Populate the stats display based on available stats

void clear_stat_components() ​

Clear all stat components

void clear_stats_display() ​

Clear the stats display when no character is available