diff --git a/addons/cargo/ACE_Settings.hpp b/addons/cargo/ACE_Settings.hpp
index e95465e647..fb039373a5 100644
--- a/addons/cargo/ACE_Settings.hpp
+++ b/addons/cargo/ACE_Settings.hpp
@@ -1,17 +1,8 @@
class ACE_Settings {
class GVAR(enable) {
- displayName = CSTRING(ModuleSettings_enable);
- description = CSTRING(ModuleSettings_enable_Description);
- typeName = "BOOL";
- value = 1;
- category = ECSTRING(OptionsMenu,CategoryLogistics);
+ movedToSQF = 1;
};
class GVAR(paradropTimeCoefficent) {
- displayName = CSTRING(paradropTimeCoefficent);
- description = CSTRING(paradropTimeCoefficent_description);
- typeName = "SCALAR";
- value = 2.5;
- category = ECSTRING(OptionsMenu,CategoryLogistics);
- sliderSettings[] = {0, 10, 2.5, 1};
+ movedToSQF = 1;
};
};
diff --git a/addons/cargo/XEH_preInit.sqf b/addons/cargo/XEH_preInit.sqf
index 5ee6406a7d..3d7ac380c2 100644
--- a/addons/cargo/XEH_preInit.sqf
+++ b/addons/cargo/XEH_preInit.sqf
@@ -6,6 +6,8 @@ PREP_RECOMPILE_START;
#include "XEH_PREP.hpp"
PREP_RECOMPILE_END;
+#include "initSettings.sqf"
+
GVAR(initializedItemClasses) = [];
GVAR(initializedVehicleClasses) = [];
GVAR(cargoHolderTypes) = ["Car", "Air", "Tank", "Ship", "Cargo_base_F", "Land_PaperBox_closed_F"];
diff --git a/addons/cargo/initSettings.sqf b/addons/cargo/initSettings.sqf
new file mode 100644
index 0000000000..3a9f70070a
--- /dev/null
+++ b/addons/cargo/initSettings.sqf
@@ -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;
diff --git a/addons/optionsmenu/stringtable.xml b/addons/optionsmenu/stringtable.xml
index b5c3d2737d..bd0c93016a 100644
--- a/addons/optionsmenu/stringtable.xml
+++ b/addons/optionsmenu/stringtable.xml
@@ -98,19 +98,19 @@
顯示新聞消息於主選單