WeaponProfileEditor ​
Inherits: ConfigEditorBase < ResourceEditor < Control
The Weapon Profiles tab (Entity Assets > Weapon Profiles): the list of the profiles on the left, the settings on the right in a container for each group (Profile, Folders, Animation packs, Used by, Old tags, Warnings). A Weapon Animation Profile is one way of fighting that your game has animations for (One Hand, Bow, Rifle ...). It is defined once, here, and every animation pack gets its folders. A weapon class or an NPC picks a profile. See docs: Entity Assets > Weapon Profiles.
Methods ​
void | setup_managers( p_resource_manager: ResourceManager, p_dialog_manager: DialogManager ) |
PackedStringArray | get_warning_texts() |
Array | get_old_tag_users() |
int | count_legacy_files() |
Constants ​
ColorCOLOR_GOOD =Color(0.55, 0.8, 0.55)ColorCOLOR_WARN =Color(0.95, 0.75, 0.35)ColorCOLOR_DIM =Color(0.7, 0.7, 0.7)
Method descriptions ​
void setup_managers( p_resource_manager: ResourceManager, p_dialog_manager: DialogManager ) ​
Overrides this function of ConfigEditorBase.
PackedStringArray get_warning_texts() ​
The warnings now (for the tests)
Array get_old_tag_users() ​
The weapon classes and NPCs with an old tag and no profile: [{resource, tag}]
int count_legacy_files() ​
How many old animation files there are to move