Skip to content

CalculationList ​

Inherits: VBoxContainer

Displays all CalculationModifierStatEffects affecting a calculation type Provides intuitive priority management with drag-and-drop reordering

Variables ​

intcalculation_type0
Array[Dictionary]effect_entries[] # [{effect, stat_def, stat_id, priority, order_index}]
Array[Dictionary]filtered_entries[] # Current filtered/sorted view
TreeItemtree_root
Dictionarypriority_groups{} # [priority: TreeItem]
Stringsearch_filter""
boolshow_only_conditionalfalse
boolshow_only_damage_type_specificfalse
SortModecurrent_sort_modeSortMode.BY_PRIORITY

Methods ​

voidcollect_effects()
voidrefresh()
intget_effect_count()
Dictionaryget_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 ​

  • const CALC_TYPE_DAMAGE_DONE = 0 - Calculation type enum mapping
  • const CALC_TYPE_DAMAGE_TAKEN = 1
  • const CALC_TYPE_HEALING_DONE = 2
  • const CALC_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.