ACE3/addons/pylons/functions/fnc_onNameChange.sqf
jonpas 742626ff1a
General - Relative script_component.hpp includes (#9378)
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
2023-09-12 20:58:10 +02:00

26 lines
547 B
Plaintext

#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];
};