2023-07-03 13:00:46 +00:00
|
|
|
private _category = format ["ACE %1", LLSTRING(Repair)];
|
|
|
|
|
2023-07-29 04:53:05 +00:00
|
|
|
[
|
|
|
|
QGVAR(enabled), "CHECKBOX",
|
|
|
|
ELSTRING(common,Enabled),
|
|
|
|
_category,
|
|
|
|
true,
|
|
|
|
true,
|
|
|
|
{[QGVAR(enabled), _this] call EFUNC(common,cbaSettings_settingChanged)},
|
|
|
|
true
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
|
2018-07-05 16:29:32 +00:00
|
|
|
[
|
|
|
|
QGVAR(displayTextOnRepair), "CHECKBOX",
|
|
|
|
[LSTRING(SettingDisplayTextName), LSTRING(SettingDisplayTextDesc)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2018-07-05 16:29:32 +00:00
|
|
|
true, // default value
|
|
|
|
false, // isGlobal
|
|
|
|
{[QGVAR(displayTextOnRepair), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2018-07-05 16:29:32 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(engineerSetting_repair), "LIST",
|
2019-10-25 02:52:04 +00:00
|
|
|
[LSTRING(engineerSetting_Repair_name), LSTRING(engineerSetting_Repair_description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2018-07-05 16:29:32 +00:00
|
|
|
[[0,1,2],[LSTRING(engineerSetting_anyone), LSTRING(engineerSetting_EngineerOnly), LSTRING(engineerSetting_AdvancedOnly)],1], // [values, titles, defaultIndex]
|
|
|
|
true, // isGlobal
|
|
|
|
{[QGVAR(engineerSetting_repair), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2018-07-05 16:29:32 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(engineerSetting_wheel), "LIST",
|
|
|
|
[LSTRING(engineerSetting_Wheel_name), LSTRING(engineerSetting_Wheel_description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2018-07-05 16:29:32 +00:00
|
|
|
[[0,1,2],[LSTRING(engineerSetting_anyone), LSTRING(engineerSetting_EngineerOnly), LSTRING(engineerSetting_AdvancedOnly)],0], // [values, titles, defaultIndex]
|
|
|
|
true, // isGlobal
|
|
|
|
{[QGVAR(engineerSetting_wheel), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2018-07-05 16:29:32 +00:00
|
|
|
|
2023-06-28 10:39:08 +00:00
|
|
|
[
|
|
|
|
QGVAR(patchWheelEnabled), "LIST",
|
|
|
|
[LSTRING(patchWheelEnabled_name), LSTRING(patchWheelEnabled_description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2023-06-28 10:39:08 +00:00
|
|
|
[[-1,0,1,2],["str_player_none", LSTRING(engineerSetting_anyone), LSTRING(engineerSetting_EngineerOnly), LSTRING(engineerSetting_AdvancedOnly)],1], // default value
|
|
|
|
true // isGlobal
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(patchWheelRequiredItems),
|
|
|
|
"LIST",
|
|
|
|
[LSTRING(patchWheelRequiredItems_DisplayName), LSTRING(patchWheelRequiredItems_Description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2023-06-28 10:39:08 +00:00
|
|
|
[[[], [ANY_TOOLKIT_FAKECLASS]], ["STR_A3_None", "STR_A3_CfgWeapons_Toolkit0"], 1],
|
|
|
|
true
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(patchWheelLocation),
|
|
|
|
"LIST",
|
|
|
|
[LSTRING(patchWheelLocation_DisplayName), LSTRING(patchWheelLocation_Description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2023-06-28 10:39:08 +00:00
|
|
|
[[["ground", "vehicle"], ["vehicle"], ["ground"]], ["str_difficulty_any", LSTRING(patchWheelOnVehicle), LSTRING(patchWheelOnGround)], 0],
|
|
|
|
true
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
|
2018-07-05 16:29:32 +00:00
|
|
|
[
|
|
|
|
QGVAR(repairDamageThreshold), "SLIDER",
|
|
|
|
[LSTRING(repairDamageThreshold_name), LSTRING(repairDamageThreshold_description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2023-07-06 03:51:00 +00:00
|
|
|
[0, 1, 0.6, 1, true],
|
2018-07-05 16:29:32 +00:00
|
|
|
true, // isGlobal
|
|
|
|
{[QGVAR(repairDamageThreshold), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2018-07-05 16:29:32 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(repairDamageThreshold_engineer), "SLIDER",
|
|
|
|
[LSTRING(repairDamageThreshold_Engineer_name), LSTRING(repairDamageThreshold_Engineer_description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2023-07-06 03:51:00 +00:00
|
|
|
[0, 1, 0.4, 1, true],
|
2018-07-05 16:29:32 +00:00
|
|
|
true, // isGlobal
|
|
|
|
{[QGVAR(repairDamageThreshold_engineer), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2018-07-05 16:29:32 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(consumeItem_toolKit), "LIST", // fnc_repair expects number
|
|
|
|
[LSTRING(consumeItem_ToolKit_name), LSTRING(consumeItem_ToolKit_description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2018-07-05 16:29:32 +00:00
|
|
|
[[0,1],[ELSTRING(common,No), ELSTRING(common,Yes)],0], // [values, titles, defaultIndex]
|
|
|
|
true, // isGlobal
|
|
|
|
{[QGVAR(consumeItem_toolKit), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2018-07-05 16:29:32 +00:00
|
|
|
|
2021-10-12 20:53:45 +00:00
|
|
|
[
|
|
|
|
QGVAR(locationsBoostTraining),
|
|
|
|
"CHECKBOX",
|
|
|
|
[ELSTRING(common,LocationsBoostTraining_DisplayName), LSTRING(LocationsBoostTraining_Description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2021-10-12 20:53:45 +00:00
|
|
|
false,
|
|
|
|
true
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
|
2018-07-05 16:29:32 +00:00
|
|
|
[
|
|
|
|
QGVAR(fullRepairLocation), "LIST",
|
|
|
|
[LSTRING(fullRepairLocation), LSTRING(fullRepairLocation_description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2018-07-05 16:29:32 +00:00
|
|
|
[[0,1,2,3,4],[LSTRING(useAnywhere), LSTRING(repairVehicleOnly), LSTRING(repairFacilityOnly), LSTRING(vehicleAndFacility), ELSTRING(common,Disabled)],2], // [values, titles, defaultIndex]
|
|
|
|
true, // isGlobal
|
|
|
|
{[QGVAR(fullRepairLocation), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2018-07-05 16:29:32 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(engineerSetting_fullRepair), "LIST",
|
|
|
|
[LSTRING(engineerSetting_fullRepair_name), LSTRING(engineerSetting_fullRepair_description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2018-07-05 16:29:32 +00:00
|
|
|
[[0,1,2],[LSTRING(engineerSetting_anyone), LSTRING(engineerSetting_EngineerOnly), LSTRING(engineerSetting_AdvancedOnly)],2], // [values, titles, defaultIndex]
|
|
|
|
true, // isGlobal
|
|
|
|
{[QGVAR(engineerSetting_fullRepair), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2018-07-05 16:29:32 +00:00
|
|
|
|
2023-07-06 03:52:04 +00:00
|
|
|
[
|
|
|
|
QGVAR(timeCoefficientFullRepair), "SLIDER",
|
|
|
|
[LSTRING(timeCoefficientFullRepair_name), LSTRING(timeCoefficientFullRepair_description)],
|
|
|
|
_category,
|
|
|
|
[0,3,1.5,2],
|
|
|
|
true
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
|
2018-07-05 16:29:32 +00:00
|
|
|
[
|
|
|
|
QGVAR(addSpareParts), "CHECKBOX",
|
|
|
|
[LSTRING(addSpareParts_name), LSTRING(addSpareParts_description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2018-07-05 16:29:32 +00:00
|
|
|
true, // default value
|
|
|
|
true, // isGlobal
|
2018-11-02 17:58:57 +00:00
|
|
|
{[QGVAR(addSpareParts), _this] call EFUNC(common,cbaSettings_settingChanged)},
|
|
|
|
true // Needs mission restart
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2018-07-05 16:29:32 +00:00
|
|
|
|
|
|
|
[
|
2019-10-25 02:52:04 +00:00
|
|
|
QGVAR(wheelRepairRequiredItems),
|
|
|
|
"LIST",
|
|
|
|
[LSTRING(WheelRepairRequiredItems_DisplayName), LSTRING(WheelRepairRequiredItems_Description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2021-11-11 11:41:25 +00:00
|
|
|
[[[], [ANY_TOOLKIT_FAKECLASS]], ["STR_A3_None", "STR_A3_CfgWeapons_Toolkit0"], 0],
|
2019-10-25 02:52:04 +00:00
|
|
|
true
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2019-10-25 02:52:04 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(miscRepairRequiredItems),
|
|
|
|
"LIST",
|
|
|
|
[LSTRING(MiscRepairRequiredItems_DisplayName), LSTRING(MiscRepairRequiredItems_Description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2021-11-11 11:41:25 +00:00
|
|
|
[[[], [ANY_TOOLKIT_FAKECLASS]], ["STR_A3_None", "STR_A3_CfgWeapons_Toolkit0"], 1],
|
2019-10-25 02:52:04 +00:00
|
|
|
true
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2019-10-25 02:52:04 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(fullRepairRequiredItems),
|
|
|
|
"LIST",
|
|
|
|
[LSTRING(FullRepairRequiredItems_DisplayName), LSTRING(FullRepairRequiredItems_Description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2021-11-11 11:41:25 +00:00
|
|
|
[[[], [ANY_TOOLKIT_FAKECLASS]], ["STR_A3_None", "STR_A3_CfgWeapons_Toolkit0"], 1],
|
2019-10-25 02:52:04 +00:00
|
|
|
true
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2018-07-05 16:29:32 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(autoShutOffEngineWhenStartingRepair), "CHECKBOX",
|
|
|
|
[LSTRING(autoShutOffEngineWhenStartingRepair_name), LSTRING(autoShutOffEngineWhenStartingRepair_description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2018-07-05 16:29:32 +00:00
|
|
|
false, // default value
|
|
|
|
true, // isGlobal
|
|
|
|
{[QGVAR(autoShutOffEngineWhenStartingRepair), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
2021-02-18 18:58:26 +00:00
|
|
|
] call CBA_fnc_addSetting;
|
2023-06-28 10:39:08 +00:00
|
|
|
|
2023-07-06 03:52:04 +00:00
|
|
|
[
|
|
|
|
QGVAR(miscRepairTime), "SLIDER",
|
|
|
|
[LSTRING(miscRepairTime_name), LSTRING(miscRepairTime_description)],
|
|
|
|
_category,
|
|
|
|
[0,60,15,-1], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
|
|
|
|
true
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(wheelChangeTime), "SLIDER",
|
|
|
|
[LSTRING(wheelChangeTime_name), LSTRING(wheelChangeTime_description)],
|
|
|
|
_category,
|
|
|
|
[0,60,10,-1], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
|
|
|
|
true
|
|
|
|
] call CBA_fnc_addSetting;
|
2023-06-28 10:39:08 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(patchWheelTime),
|
|
|
|
"SLIDER",
|
|
|
|
[LSTRING(patchWheelTime_DisplayName), LSTRING(patchWheelTime_Description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2023-06-28 10:39:08 +00:00
|
|
|
[0.1, 60, 5, 1],
|
|
|
|
true
|
|
|
|
] call CBA_fnc_addSetting;
|
|
|
|
|
|
|
|
[
|
|
|
|
QGVAR(patchWheelMaximumRepair),
|
|
|
|
"SLIDER",
|
|
|
|
[LSTRING(patchWheelMaximumRepair_DisplayName), LSTRING(patchWheelMaximumRepair_Description)],
|
2023-07-03 13:00:46 +00:00
|
|
|
_category,
|
2023-06-28 10:39:08 +00:00
|
|
|
[0, 1, 0.3, 1, true],
|
|
|
|
true
|
|
|
|
] call CBA_fnc_addSetting;
|