mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
19 lines
680 B
Plaintext
19 lines
680 B
Plaintext
// by commy2
|
|
#include "\z\ace\addons\common\script_component.hpp"
|
|
|
|
_index = _this select 0;
|
|
|
|
_name = format ["ACE_%1", GVAR(OptionNames) select _index];
|
|
|
|
_index1 = GVAR(OptionNamesNew) find _name;
|
|
_state = if (_index1 == -1) then {_index1 = count GVAR(OptionNamesNew); !(profileNamespace getVariable _name)} else {!(GVAR(OptionStatesNew) select _index1)};
|
|
|
|
disableSerialization;
|
|
_dlgMenuDialog = uiNamespace getVariable QGVAR(MenuDialog);
|
|
|
|
_control = _dlgMenuDialog displayCtrl (300 + _index);
|
|
_control ctrlSetText format [QUOTE(PATHTOF(UI\box_%1checked_ca.paa)), ["un", ""] select _state];
|
|
|
|
GVAR(OptionNamesNew) set [_index1, _name];
|
|
GVAR(OptionStatesNew) set [_index1, _state];
|