mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Repair/UI - Minor code cleanup (#9879)
This commit is contained in:
parent
46cc49dc1e
commit
48bdc6fbcd
@ -2,7 +2,7 @@
|
||||
|
||||
["CBA_settingsInitialized", {
|
||||
|
||||
if !GVAR(enabled) exitWith {};
|
||||
if (!GVAR(enabled)) exitWith {};
|
||||
|
||||
[QGVAR(setVehicleDamage), {_this call FUNC(setDamage)}] call CBA_fnc_addEventHandler;
|
||||
[QGVAR(setVehicleHitPointDamage), {_this call FUNC(setHitPointDamage)}] call CBA_fnc_addEventHandler;
|
||||
|
@ -19,9 +19,8 @@ GVAR(elementsSet) = call CBA_fnc_createNamespace;
|
||||
["ace_infoDisplayChanged", {
|
||||
// Selective UI Advanced
|
||||
// Defaults must be set in this EH to make sure controls are activated and advanced settings can be modified
|
||||
private _force = [true, false] select (GVAR(allowSelectiveUI));
|
||||
{
|
||||
[_x, missionNamespace getVariable (format [QGVAR(%1), _x]), false, _force] call FUNC(setAdvancedElement);
|
||||
[_x, missionNamespace getVariable (format [QGVAR(%1), _x]), false, !GVAR(allowSelectiveUI)] call FUNC(setAdvancedElement);
|
||||
} forEach (allVariables GVAR(configCache));
|
||||
|
||||
// Execute local event for when it's safe to modify UI through this API
|
||||
|
Loading…
Reference in New Issue
Block a user