CalculationList ​
Inherits: VBoxContainer
Displays all CalculationModifierStatEffects affecting a calculation type Provides intuitive priority management with drag-and-drop reordering
Variables ​
int | calculation_type | 0 |
Array[Dictionary] | effect_entries | [] # [{effect, stat_def, stat_id, priority, order_index}] |
Array[Dictionary] | filtered_entries | [] # Current filtered/sorted view |
TreeItem | tree_root | |
Dictionary | priority_groups | {} # [priority: TreeItem] |
String | search_filter | "" |
bool | show_only_conditional | false |
bool | show_only_damage_type_specific | false |
SortMode | current_sort_mode | SortMode.BY_PRIORITY |
Methods ​
void | collect_effects() |
void | refresh() |
int | get_effect_count() |
Dictionary | get_selected_entry() |
Signals ​
effect_priority_changed( stat_def: StatDefinition, effect: CalculationModifierStatEffect, old_priority: int, new_priority: int ) ​
effect_selected( stat_def: StatDefinition, effect: CalculationModifierStatEffect ) ​
effect_double_clicked( stat_def: StatDefinition ) ​
Enumerations ​
enum SortMode ​
- BY_PRIORITY =
0 - BY_STAT_NAME =
1 - BY_EFFECT_TYPE =
2
enum MenuAction ​
Context menu IDs
- SET_PRIORITY =
0 - INCREASE_PRIORITY =
1 - DECREASE_PRIORITY =
2 - RESET_PRIORITY =
3 - MOVE_TO_PRIORITY_GROUP =
4 - EDIT_STAT =
5 - COPY_EFFECT =
6 - VIEW_DEPENDENCIES =
7
Constants ​
constCALC_TYPE_DAMAGE_DONE =0- Calculation type enum mappingconstCALC_TYPE_DAMAGE_TAKEN =1constCALC_TYPE_HEALING_DONE =2constCALC_TYPE_HEALING_TAKEN =3
Variable descriptions ​
int calculation_type = 0 ​
No description yet.
Array[Dictionary] effect_entries = [] # [effect, stat_def, stat_id, priority, order_index] ​
Effect data cache
Array[Dictionary] filtered_entries = [] # Current filtered/sorted view ​
No description yet.
TreeItem tree_root ​
Tree organization
Dictionary priority_groups = # [priority: TreeItem] ​
No description yet.
String search_filter = "" ​
Filter state
bool show_only_conditional = false ​
No description yet.
bool show_only_damage_type_specific = false ​
No description yet.
SortMode current_sort_mode = SortMode.BY_PRIORITY ​
No description yet.
Method descriptions ​
void collect_effects() ​
Collect all effects from database for this calculation type
void refresh() ​
No description yet.
int get_effect_count() ​
No description yet.
Dictionary get_selected_entry() ​
No description yet.