mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Logistics - Move to CBA settings and organize in subcategories (#6284)
This commit is contained in:
parent
14b08bafe6
commit
a8c1846a37
@ -1,17 +1,8 @@
|
|||||||
class ACE_Settings {
|
class ACE_Settings {
|
||||||
class GVAR(enable) {
|
class GVAR(enable) {
|
||||||
displayName = CSTRING(ModuleSettings_enable);
|
movedToSQF = 1;
|
||||||
description = CSTRING(ModuleSettings_enable_Description);
|
|
||||||
typeName = "BOOL";
|
|
||||||
value = 1;
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
};
|
};
|
||||||
class GVAR(paradropTimeCoefficent) {
|
class GVAR(paradropTimeCoefficent) {
|
||||||
displayName = CSTRING(paradropTimeCoefficent);
|
movedToSQF = 1;
|
||||||
description = CSTRING(paradropTimeCoefficent_description);
|
|
||||||
typeName = "SCALAR";
|
|
||||||
value = 2.5;
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
sliderSettings[] = {0, 10, 2.5, 1};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -6,6 +6,8 @@ PREP_RECOMPILE_START;
|
|||||||
#include "XEH_PREP.hpp"
|
#include "XEH_PREP.hpp"
|
||||||
PREP_RECOMPILE_END;
|
PREP_RECOMPILE_END;
|
||||||
|
|
||||||
|
#include "initSettings.sqf"
|
||||||
|
|
||||||
GVAR(initializedItemClasses) = [];
|
GVAR(initializedItemClasses) = [];
|
||||||
GVAR(initializedVehicleClasses) = [];
|
GVAR(initializedVehicleClasses) = [];
|
||||||
GVAR(cargoHolderTypes) = ["Car", "Air", "Tank", "Ship", "Cargo_base_F", "Land_PaperBox_closed_F"];
|
GVAR(cargoHolderTypes) = ["Car", "Air", "Tank", "Ship", "Cargo_base_F", "Land_PaperBox_closed_F"];
|
||||||
|
19
addons/cargo/initSettings.sqf
Normal file
19
addons/cargo/initSettings.sqf
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// CBA Settings [ADDON: ace_cargo]:
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(enable), "CHECKBOX",
|
||||||
|
[LSTRING(ModuleSettings_enable), LSTRING(ModuleSettings_enable_Description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize LSTRING(openMenu)],
|
||||||
|
true, // default value
|
||||||
|
true, // isGlobal
|
||||||
|
{[QGVAR(enable), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(paradropTimeCoefficent), "SLIDER",
|
||||||
|
[LSTRING(paradropTimeCoefficent), LSTRING(paradropTimeCoefficent_description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize LSTRING(openMenu)],
|
||||||
|
[0,10,2.5,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
|
||||||
|
true, // isGlobal
|
||||||
|
{[QGVAR(paradropTimeCoefficent), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
@ -98,19 +98,19 @@
|
|||||||
<Chinese>顯示新聞消息於主選單</Chinese>
|
<Chinese>顯示新聞消息於主選單</Chinese>
|
||||||
</Key>
|
</Key>
|
||||||
<Key ID="STR_ACE_OptionsMenu_CategoryLogistics">
|
<Key ID="STR_ACE_OptionsMenu_CategoryLogistics">
|
||||||
<English>Logistics</English>
|
<English>ACE Logistics</English>
|
||||||
<German>Logistik</German>
|
<German>ACE Logistik</German>
|
||||||
<Polish>Logistyka</Polish>
|
<Polish>ACE Logistyka</Polish>
|
||||||
<Portuguese>Logística</Portuguese>
|
<Portuguese>ACE Logística</Portuguese>
|
||||||
<Russian>Логистика</Russian>
|
<Russian>ACE Логистика</Russian>
|
||||||
<Czech>Logistika</Czech>
|
<Czech>ACE Logistika</Czech>
|
||||||
<Spanish>Logística</Spanish>
|
<Spanish>ACE Logística</Spanish>
|
||||||
<Italian>Logistica</Italian>
|
<Italian>ACE Logistica</Italian>
|
||||||
<French>Logistique</French>
|
<French>ACE Logistique</French>
|
||||||
<Japanese>ロジスティクス</Japanese>
|
<Japanese>ACE ロジスティクス</Japanese>
|
||||||
<Korean>보급</Korean>
|
<Korean>ACE 보급</Korean>
|
||||||
<Chinesesimp>后勤设定</Chinesesimp>
|
<Chinesesimp>ACE 后勤设定</Chinesesimp>
|
||||||
<Chinese>後勤設定</Chinese>
|
<Chinese>ACE 後勤設定</Chinese>
|
||||||
</Key>
|
</Key>
|
||||||
<Key ID="STR_ACE_OptionsMenu_Hide">
|
<Key ID="STR_ACE_OptionsMenu_Hide">
|
||||||
<English>Hide</English>
|
<English>Hide</English>
|
||||||
|
@ -1,18 +1,8 @@
|
|||||||
class ACE_Settings {
|
class ACE_Settings {
|
||||||
class GVAR(level) {
|
class GVAR(level) {
|
||||||
category = CSTRING(DisplayName);
|
movedToSQF = 1;
|
||||||
displayName = CSTRING(RearmSettings_level_DisplayName);
|
|
||||||
description = CSTRING(RearmSettings_level_Description);
|
|
||||||
value = 0;
|
|
||||||
typeName = "SCALAR";
|
|
||||||
values[] = {CSTRING(RearmSettings_vehicle), CSTRING(RearmSettings_magazine), CSTRING(RearmSettings_caliber)};
|
|
||||||
};
|
};
|
||||||
class GVAR(supply) {
|
class GVAR(supply) {
|
||||||
category = CSTRING(DisplayName);
|
movedToSQF = 1;
|
||||||
displayName = CSTRING(RearmSettings_supply_DisplayName);
|
|
||||||
description = CSTRING(RearmSettings_supply_Description);
|
|
||||||
value = 0;
|
|
||||||
typeName = "SCALAR";
|
|
||||||
values[] = {CSTRING(RearmSettings_unlimited), CSTRING(RearmSettings_limited), CSTRING(RearmSettings_magazineSupply)};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -6,4 +6,6 @@ PREP_RECOMPILE_START;
|
|||||||
#include "XEH_PREP.hpp"
|
#include "XEH_PREP.hpp"
|
||||||
PREP_RECOMPILE_END;
|
PREP_RECOMPILE_END;
|
||||||
|
|
||||||
|
#include "initSettings.sqf"
|
||||||
|
|
||||||
ADDON = true;
|
ADDON = true;
|
||||||
|
19
addons/rearm/initSettings.sqf
Normal file
19
addons/rearm/initSettings.sqf
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// CBA Settings [ADDON: ace_rearm]:
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(level), "LIST",
|
||||||
|
[LSTRING(RearmSettings_level_DisplayName), LSTRING(RearmSettings_level_Description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize LSTRING(DisplayName)],
|
||||||
|
[[0,1,2],[LSTRING(RearmSettings_vehicle), LSTRING(RearmSettings_magazine), LSTRING(RearmSettings_caliber)],0], // [values, titles, defaultIndex]
|
||||||
|
true, // isGlobal
|
||||||
|
{[QGVAR(level), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(supply), "LIST",
|
||||||
|
[LSTRING(RearmSettings_supply_DisplayName), LSTRING(RearmSettings_supply_Description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize LSTRING(DisplayName)],
|
||||||
|
[[0,1,2],[LSTRING(RearmSettings_unlimited), LSTRING(RearmSettings_limited), LSTRING(RearmSettings_magazineSupply)],0], // [values, titles, defaultIndex]
|
||||||
|
true, // isGlobal
|
||||||
|
{[QGVAR(supply), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
@ -1,17 +1,8 @@
|
|||||||
class ACE_Settings {
|
class ACE_Settings {
|
||||||
class GVAR(rate) {
|
class GVAR(rate) {
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
movedToSQF = 1;
|
||||||
displayName = CSTRING(RefuelSettings_speed_DisplayName);
|
|
||||||
description = CSTRING(RefuelSettings_speed_Description);
|
|
||||||
value = 1;
|
|
||||||
typeName = "SCALAR";
|
|
||||||
sliderSettings[] = {0, 25, 1, 1};
|
|
||||||
};
|
};
|
||||||
class GVAR(hoseLength) {
|
class GVAR(hoseLength) {
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
movedToSQF = 1;
|
||||||
displayName = CSTRING(RefuelSettings_hoseLength_DisplayName);
|
|
||||||
value = 12;
|
|
||||||
typeName = "SCALAR";
|
|
||||||
sliderSettings[] = {0, 50, 12, 1};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -6,4 +6,6 @@ PREP_RECOMPILE_START;
|
|||||||
#include "XEH_PREP.hpp"
|
#include "XEH_PREP.hpp"
|
||||||
PREP_RECOMPILE_END;
|
PREP_RECOMPILE_END;
|
||||||
|
|
||||||
|
#include "initSettings.sqf"
|
||||||
|
|
||||||
ADDON = true;
|
ADDON = true;
|
||||||
|
19
addons/refuel/initSettings.sqf
Normal file
19
addons/refuel/initSettings.sqf
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// CBA Settings [ADDON: ace_refuel]:
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(rate), "SLIDER",
|
||||||
|
[LSTRING(RefuelSettings_speed_DisplayName), LSTRING(RefuelSettings_speed_Description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_refuel"],
|
||||||
|
[0,25,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
|
||||||
|
true, // isGlobal
|
||||||
|
{[QGVAR(rate), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(hoseLength), "SLIDER",
|
||||||
|
[LSTRING(RefuelSettings_hoseLength_DisplayName)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_refuel"],
|
||||||
|
[0,50,12,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
|
||||||
|
true, // isGlobal
|
||||||
|
{[QGVAR(hoseLength), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
@ -1,89 +1,37 @@
|
|||||||
|
// Warning: do not remove without handling wheelRepairRequiredItems's _values config on line 32 [used in repair/canRepair]
|
||||||
class ACE_Settings {
|
class ACE_Settings {
|
||||||
class GVAR(displayTextOnRepair) {
|
class GVAR(displayTextOnRepair) {
|
||||||
displayName = CSTRING(SettingDisplayTextName);
|
movedToSQF = 1;
|
||||||
description = CSTRING(SettingDisplayTextDesc);
|
|
||||||
typeName = "BOOL";
|
|
||||||
isClientSettable = 1;
|
|
||||||
value = 1;
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
};
|
};
|
||||||
class GVAR(engineerSetting_repair) {
|
class GVAR(engineerSetting_repair) {
|
||||||
displayName = CSTRING(engineerSetting_Repair_name);
|
movedToSQF = 1;
|
||||||
description = CSTRING(engineerSetting_Repair_description);
|
|
||||||
typeName = "SCALAR";
|
|
||||||
value = 1;
|
|
||||||
values[] = {CSTRING(engineerSetting_anyone), CSTRING(engineerSetting_EngineerOnly), CSTRING(engineerSetting_AdvancedOnly)};
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
};
|
};
|
||||||
class GVAR(engineerSetting_wheel) {
|
class GVAR(engineerSetting_wheel) {
|
||||||
displayName = CSTRING(engineerSetting_Wheel_name);
|
movedToSQF = 1;
|
||||||
description = CSTRING(engineerSetting_Wheel_description);
|
|
||||||
typeName = "SCALAR";
|
|
||||||
value = 0;
|
|
||||||
values[] = {CSTRING(engineerSetting_anyone), CSTRING(engineerSetting_EngineerOnly), CSTRING(engineerSetting_AdvancedOnly)};
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
};
|
};
|
||||||
class GVAR(repairDamageThreshold) {
|
class GVAR(repairDamageThreshold) {
|
||||||
displayName = CSTRING(repairDamageThreshold_name);
|
movedToSQF = 1;
|
||||||
description = CSTRING(repairDamageThreshold_description);
|
|
||||||
typeName = "SCALAR";
|
|
||||||
value = 0.6;
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
sliderSettings[] = {0, 1, 0.6, 2};
|
|
||||||
};
|
};
|
||||||
class GVAR(repairDamageThreshold_engineer) {
|
class GVAR(repairDamageThreshold_engineer) {
|
||||||
displayName = CSTRING(repairDamageThreshold_Engineer_name);
|
movedToSQF = 1;
|
||||||
description = CSTRING(repairDamageThreshold_Engineer_description);
|
|
||||||
typeName = "SCALAR";
|
|
||||||
value = 0.4;
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
sliderSettings[] = {0, 1, 0.4, 2};
|
|
||||||
};
|
};
|
||||||
class GVAR(consumeItem_toolKit) {
|
class GVAR(consumeItem_toolKit) {
|
||||||
displayName = CSTRING(consumeItem_ToolKit_name);
|
movedToSQF = 1;
|
||||||
description = CSTRING(consumeItem_ToolKit_description);
|
|
||||||
typeName = "SCALAR";
|
|
||||||
value = 0;
|
|
||||||
values[] = {ECSTRING(common,No), ECSTRING(common,Yes)};
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
};
|
};
|
||||||
class GVAR(fullRepairLocation) {
|
class GVAR(fullRepairLocation) {
|
||||||
displayName = CSTRING(fullRepairLocation);
|
movedToSQF = 1;
|
||||||
description = CSTRING(fullRepairLocation_description);
|
|
||||||
typeName = "SCALAR";
|
|
||||||
value = 2;
|
|
||||||
values[] = {CSTRING(useAnywhere), CSTRING(repairVehicleOnly), CSTRING(repairFacilityOnly), CSTRING(vehicleAndFacility), ECSTRING(common,Disabled)};
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
};
|
};
|
||||||
class GVAR(engineerSetting_fullRepair) {
|
class GVAR(engineerSetting_fullRepair) {
|
||||||
displayName = CSTRING(engineerSetting_fullRepair_name);
|
movedToSQF = 1;
|
||||||
description = CSTRING(engineerSetting_fullRepair_description);
|
|
||||||
typeName = "SCALAR";
|
|
||||||
value = 2;
|
|
||||||
values[] = {CSTRING(engineerSetting_anyone), CSTRING(engineerSetting_EngineerOnly), CSTRING(engineerSetting_AdvancedOnly)};
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
};
|
};
|
||||||
class GVAR(addSpareParts) {
|
class GVAR(addSpareParts) {
|
||||||
displayName = CSTRING(addSpareParts_name);
|
movedToSQF = 1;
|
||||||
description = CSTRING(addSpareParts_description);
|
|
||||||
typeName = "BOOL";
|
|
||||||
value = 1;
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
};
|
};
|
||||||
class GVAR(wheelRepairRequiredItems) {
|
class GVAR(wheelRepairRequiredItems) {
|
||||||
displayName = CSTRING(wheelRepairRequiredItems_name);
|
movedToSQF = 1;
|
||||||
description = CSTRING(wheelRepairRequiredItems_description);
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
typeName = "SCALAR";
|
|
||||||
value = 0;
|
|
||||||
values[] = {"None", "ToolKit"};
|
|
||||||
_values[] = {{}, {"ToolKit"}};
|
_values[] = {{}, {"ToolKit"}};
|
||||||
};
|
};
|
||||||
class GVAR(autoShutOffEngineWhenStartingRepair) {
|
class GVAR(autoShutOffEngineWhenStartingRepair) {
|
||||||
displayName = CSTRING(autoShutOffEngineWhenStartingRepair_name);
|
movedToSQF = 1;
|
||||||
description = CSTRING(autoShutOffEngineWhenStartingRepair_description);
|
|
||||||
typeName = "BOOL";
|
|
||||||
value = 0;
|
|
||||||
category = ECSTRING(OptionsMenu,CategoryLogistics);
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -6,6 +6,8 @@ PREP_RECOMPILE_START;
|
|||||||
#include "XEH_PREP.hpp"
|
#include "XEH_PREP.hpp"
|
||||||
PREP_RECOMPILE_END;
|
PREP_RECOMPILE_END;
|
||||||
|
|
||||||
|
#include "initSettings.sqf"
|
||||||
|
|
||||||
["ACE_RepairItem_Base", "killed", {
|
["ACE_RepairItem_Base", "killed", {
|
||||||
params ["_object"];
|
params ["_object"];
|
||||||
|
|
||||||
|
100
addons/repair/initSettings.sqf
Normal file
100
addons/repair/initSettings.sqf
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
// CBA Settings [ADDON: ace_repair]:
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(displayTextOnRepair), "CHECKBOX",
|
||||||
|
[LSTRING(SettingDisplayTextName), LSTRING(SettingDisplayTextDesc)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
|
||||||
|
true, // default value
|
||||||
|
false, // isGlobal
|
||||||
|
{[QGVAR(displayTextOnRepair), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(engineerSetting_repair), "LIST",
|
||||||
|
[LSTRING(engineerSetting_Repair_name), LSTRING(engineerSetting_Repair_description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
|
||||||
|
[[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)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(engineerSetting_wheel), "LIST",
|
||||||
|
[LSTRING(engineerSetting_Wheel_name), LSTRING(engineerSetting_Wheel_description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
|
||||||
|
[[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)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(repairDamageThreshold), "SLIDER",
|
||||||
|
[LSTRING(repairDamageThreshold_name), LSTRING(repairDamageThreshold_description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
|
||||||
|
[0,1,0.6,2], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
|
||||||
|
true, // isGlobal
|
||||||
|
{[QGVAR(repairDamageThreshold), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(repairDamageThreshold_engineer), "SLIDER",
|
||||||
|
[LSTRING(repairDamageThreshold_Engineer_name), LSTRING(repairDamageThreshold_Engineer_description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
|
||||||
|
[0,1,0.4,2], // [min, max, default value, trailing decimals (-1 for whole numbers only)]
|
||||||
|
true, // isGlobal
|
||||||
|
{[QGVAR(repairDamageThreshold_engineer), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(consumeItem_toolKit), "LIST", // fnc_repair expects number
|
||||||
|
[LSTRING(consumeItem_ToolKit_name), LSTRING(consumeItem_ToolKit_description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
|
||||||
|
[[0,1],[ELSTRING(common,No), ELSTRING(common,Yes)],0], // [values, titles, defaultIndex]
|
||||||
|
true, // isGlobal
|
||||||
|
{[QGVAR(consumeItem_toolKit), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(fullRepairLocation), "LIST",
|
||||||
|
[LSTRING(fullRepairLocation), LSTRING(fullRepairLocation_description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
|
||||||
|
[[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)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(engineerSetting_fullRepair), "LIST",
|
||||||
|
[LSTRING(engineerSetting_fullRepair_name), LSTRING(engineerSetting_fullRepair_description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
|
||||||
|
[[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)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(addSpareParts), "CHECKBOX",
|
||||||
|
[LSTRING(addSpareParts_name), LSTRING(addSpareParts_description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
|
||||||
|
true, // default value
|
||||||
|
true, // isGlobal
|
||||||
|
{[QGVAR(addSpareParts), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(wheelRepairRequiredItems), "LIST",
|
||||||
|
[LSTRING(wheelRepairRequiredItems_name), LSTRING(wheelRepairRequiredItems_description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
|
||||||
|
[[0,1],["None", "ToolKit"],0], // [values, titles, defaultIndex]
|
||||||
|
true, // isGlobal
|
||||||
|
{[QGVAR(wheelRepairRequiredItems), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
||||||
|
|
||||||
|
[
|
||||||
|
QGVAR(autoShutOffEngineWhenStartingRepair), "CHECKBOX",
|
||||||
|
[LSTRING(autoShutOffEngineWhenStartingRepair_name), LSTRING(autoShutOffEngineWhenStartingRepair_description)],
|
||||||
|
[localize ELSTRING(OptionsMenu,CategoryLogistics), localize "str_state_repair"],
|
||||||
|
false, // default value
|
||||||
|
true, // isGlobal
|
||||||
|
{[QGVAR(autoShutOffEngineWhenStartingRepair), _this] call EFUNC(common,cbaSettings_settingChanged)}
|
||||||
|
] call CBA_settings_fnc_init;
|
Loading…
Reference in New Issue
Block a user