ACE3/addons/pylons/functions/fnc_onNameChange.sqf

26 lines
544 B
Plaintext
Raw Normal View History

#include "script_component.hpp"
/*
* Author: 654wak654
* Called when current loadout name is changed.
* Prevents default presets from gettings deleted / overwritten.
*
* Arguments:
* None
*
* Return Value:
* None
*
* Example:
* [] call ace_pylons_fnc_onNameChange
*
* Public: No
*/
if ((ctrlText ID_EDIT_LOADOUTNAME) in GVAR(defaultLoadoutNames)) then {
ctrlEnable [ID_BUTTON_SAVE, false];
ctrlEnable [ID_BUTTON_DELETE, false];
} else {
ctrlEnable [ID_BUTTON_SAVE, true];
ctrlEnable [ID_BUTTON_DELETE, true];
};