mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #3768 from acemod/add-zeus-objects-setting
Add zeus objects setting
This commit is contained in:
@ -31,9 +31,9 @@ class ACE_Settings {
|
|||||||
values[] = {"$STR_A3_OPTIONS_DISABLED", CSTRING(revealMines_partial), CSTRING(revealMines_full)};
|
values[] = {"$STR_A3_OPTIONS_DISABLED", CSTRING(revealMines_partial), CSTRING(revealMines_full)};
|
||||||
};
|
};
|
||||||
class GVAR(autoAddObjects) {
|
class GVAR(autoAddObjects) {
|
||||||
|
typeName = "BOOL";
|
||||||
|
value = 0;
|
||||||
displayName = CSTRING(AddObjectsToCurator);
|
displayName = CSTRING(AddObjectsToCurator);
|
||||||
description = CSTRING(AddObjectsToCurator_desc);
|
description = CSTRING(AddObjectsToCurator_desc);
|
||||||
value = 0;
|
|
||||||
typeName = "BOOL";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -71,6 +71,12 @@ class CfgVehicles {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
class autoAddObjects {
|
||||||
|
displayName = CSTRING(AddObjectsToCurator);
|
||||||
|
description = CSTRING(AddObjectsToCurator_desc);
|
||||||
|
typeName = "BOOL";
|
||||||
|
defaultValue = 0;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
class ModuleDescription {
|
class ModuleDescription {
|
||||||
description = CSTRING(Settings_Description);
|
description = CSTRING(Settings_Description);
|
||||||
|
@ -15,6 +15,11 @@
|
|||||||
|
|
||||||
params ["_object"];
|
params ["_object"];
|
||||||
|
|
||||||
|
if !(EGVAR(common,settingsInitFinished)) exitWith {
|
||||||
|
TRACE_1("pushing to runAtSettingsInitialized", _this);
|
||||||
|
EGVAR(common,runAtSettingsInitialized) pushBack [FUNC(addObjectToCurator), _this];
|
||||||
|
};
|
||||||
|
|
||||||
if (!(_object getVariable [QGVAR(addObject), GVAR(autoAddObjects)])) exitWith {};
|
if (!(_object getVariable [QGVAR(addObject), GVAR(autoAddObjects)])) exitWith {};
|
||||||
|
|
||||||
[{
|
[{
|
||||||
|
@ -24,3 +24,4 @@ if !(_activated) exitWith {};
|
|||||||
[_logic, QGVAR(radioOrdnance), "radioOrdnance"] call EFUNC(common,readSettingFromModule);
|
[_logic, QGVAR(radioOrdnance), "radioOrdnance"] call EFUNC(common,readSettingFromModule);
|
||||||
[_logic, QGVAR(revealMines), "revealMines"] call EFUNC(common,readSettingFromModule);
|
[_logic, QGVAR(revealMines), "revealMines"] call EFUNC(common,readSettingFromModule);
|
||||||
[_logic, QGVAR(remoteWind), "remoteWind"] call EFUNC(common,readSettingFromModule);
|
[_logic, QGVAR(remoteWind), "remoteWind"] call EFUNC(common,readSettingFromModule);
|
||||||
|
[_logic, QGVAR(autoAddObjects), "autoAddObjects"] call EFUNC(common,readSettingFromModule);
|
||||||
|
Reference in New Issue
Block a user