2015-01-11 16:42:31 +00:00
|
|
|
// by commy2
|
2015-01-12 11:14:15 +00:00
|
|
|
#include "\z\ace\addons\core\script_component.hpp"
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
_index = _this select 0;
|
|
|
|
|
2015-01-12 04:02:33 +00:00
|
|
|
_name = format ["ACE_%1", GVAR(OptionNames) select _index];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
_index1 = GVAR(OptionNamesNew) find _name;
|
|
|
|
_state = if (_index1 == -1) then {_index1 = count GVAR(OptionNamesNew); !(profileNamespace getVariable _name)} else {!(GVAR(OptionStatesNew) select _index1)};
|
|
|
|
|
|
|
|
disableSerialization;
|
2015-01-11 18:20:14 +00:00
|
|
|
_dlgMenuDialog = uiNamespace getVariable QGVAR(MenuDialog);
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
_control = _dlgMenuDialog displayCtrl (300 + _index);
|
2015-01-12 15:08:34 +00:00
|
|
|
_control ctrlSetText format [QUOTE(PATHTOF(UI\box_%1checked_ca.paa)), ["un", ""] select _state];
|
2015-01-11 16:42:31 +00:00
|
|
|
|
|
|
|
GVAR(OptionNamesNew) set [_index1, _name];
|
|
|
|
GVAR(OptionStatesNew) set [_index1, _state];
|