Skip to content

ExperiencePerLevelEditor ​

Inherits: VBoxContainer

Editor for experience_per_level Dictionary in GameplayConfig Displays a list of levels with their XP requirements and allows editing

Variables ​

HBoxContainerheader_row
Labelheader_label
Buttonreset_button
ItemListexperience_list
Buttonedit_button
Labelinfo_label
Dictionarycurrent_experience_dict{}
intmax_level50
GameplayConfiggameplay_config

Methods ​

voidsetup( config: GameplayConfig )
voidload_experience_data( experience_dict: Dictionary, p_max_level: int )
Dictionaryget_experience_data()

Signals ​

experience_changed( new_dictionary: Dictionary ) ​

Variable descriptions ​

HBoxContainer header_row ​

No description yet.

Label header_label ​

No description yet.

Button reset_button ​

No description yet.

ItemList experience_list ​

No description yet.

Button edit_button ​

No description yet.

Label info_label ​

No description yet.

Dictionary current_experience_dict = ​

{level: xp_required}

int max_level = 50 ​

No description yet.

GameplayConfig gameplay_config ​

Reference to the config for default formula

Method descriptions ​

void setup( config: GameplayConfig ) ​

No description yet.

void load_experience_data( experience_dict: Dictionary, p_max_level: int ) ​

No description yet.

Dictionary get_experience_data() ​

No description yet.