Skip to content

CalculationsEditor ​

Inherits: VBoxContainer

Main calculations editor - manages priority ordering for all calculation types

Variables ​

CombatCalculationscombat_calculations
Dictionarycurrent_selection{} # {stat_def, effect, list_type}
Array[CalculationList]all_lists[]

Methods ​

voidsetup( p_combat_calculations: CombatCalculations )
voidsetup_managers( _resource_manager: ResourceManager = null )
voidrefresh_all()
voidrefresh_current_tab()

Signals ​

priority_changed( stat_def: StatDefinition, effect: CalculationModifierStatEffect ) ​

stat_editor_requested( stat_def: StatDefinition ) ​

Variable descriptions ​

CombatCalculations combat_calculations ​

No description yet.

Dictionary current_selection = # stat_def, effect, list_type ​

No description yet.

Array[CalculationList] all_lists = [] ​

No description yet.

Method descriptions ​

void setup( p_combat_calculations: CombatCalculations ) ​

No description yet.

void setup_managers( _resource_manager: ResourceManager = null ) ​

The game editor hands every editor its managers once; the lists fill from the stat definitions then, and again whenever the tab is shown (the stats are edited in another tab)

void refresh_all() ​

No description yet.

void refresh_current_tab() ​

No description yet.