ACE3/addons/microdagr/initSettings.inc.sqf
johnb432 1cca2db964
General - Cleaned up cbaSettings_settingChanged (#10050)
Adapted `cbaSettings_settingChanged`
2024-05-31 13:20:21 -07:00

20 lines
869 B
Plaintext

private _category = [LELSTRING(common,categoryUncategorized), LLSTRING(itemName)];
[
QGVAR(mapDataAvailable), "LIST",
[LSTRING(MapDataAvailable_DisplayName), LSTRING(MapDataAvailable_Description)],
_category,
[[0,1,2],[LSTRING(MapFill_None), LSTRING(MapFill_OnlyRoads), LSTRING(MapFill_Full)],2], // [values, titles, defaultIndex]
true, // isGlobal
{[QGVAR(mapDataAvailable), _this] call EFUNC(common,cbaSettings_settingChanged)},
true // require mission restart
] call CBA_fnc_addSetting;
[
QGVAR(waypointPrecision), "LIST",
[LSTRING(WaypointPrecision_DisplayName), LSTRING(WaypointPrecision_Description)],
_category,
[[1, 2, 3], [LSTRING(WaypointPrecision_medium), LSTRING(WaypointPrecision_close), LSTRING(WaypointPrecision_exact)], 2], // [values, titles, defaultIndex]
true // isGlobal
] call CBA_fnc_addSetting;