mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
742626ff1a
Co-authored-by: PabstMirror <pabstmirror@gmail.com>
26 lines
547 B
Plaintext
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];
|
|
};
|