diff --git a/addons/core/XEH/XEH_preInit.sqf b/addons/core/XEH/XEH_preInit.sqf index 2c5682f..cad841c 100644 --- a/addons/core/XEH/XEH_preInit.sqf +++ b/addons/core/XEH/XEH_preInit.sqf @@ -28,16 +28,17 @@ private _code = { // Auto-Detect Possible Cig Packs (including suckers) -private _cfgs = Q(getNumber (_x >> QQPVAR(isLigher)) == 1) configClasses (configFile >> "CfgMagazines"); +private _cfgs = Q(getNumber (_x >> QQPVAR(isLighter)) == 1 && { getNumber (_x >> QQ(scope)) == 2 }) configClasses (configFile >> "CfgMagazines"); private _array_lighters = [ _cfgs apply { configName _x }, _cfgs apply _code, 0 ]; + [ QSET(sp_addLighter), // _setting - Unique setting name. Matches resulting variable name "CHECKBOX", // _settingType - Type of setting. Can be "CHECKBOX", "EDITBOX", "LIST", "SLIDER" or "COLOR" SETLSTRING(sp_addLighter), // _title - Display name or display name + tooltip (optional, default: same as setting name) [LSTRING(set_cat_main),LSTRING(set_cat_sp)], // _category - Category for the settings menu + optional sub-category - false, // _valueInfo - Extra properties of the setting depending of _settingType. See examples below + true, // _valueInfo - Extra properties of the setting depending of _settingType. See examples below 2, // _isGlobal - 1: all clients share the same setting, 2: setting can't be overwritten (optional, default: 0) {}, // _script - Script to execute when setting is changed. (optional) false // _needRestart - Setting will be marked as needing mission restart after being changed. (optional, default false) @@ -45,11 +46,11 @@ private _array_lighters = [ _cfgs apply { configName _x }, _cfgs apply _code, 0 [ QSET(sp_addLighter_type), // _setting - Unique setting name. Matches resulting variable name - "CHECKBOX", // _settingType - Type of setting. Can be "CHECKBOX", "EDITBOX", "LIST", "SLIDER" or "COLOR" - ["",""], + "LIST", // _settingType - Type of setting. Can be "CHECKBOX", "EDITBOX", "LIST", "SLIDER" or "COLOR" + SETLSTRING(sp_addLighter_type), // _title - Display name or display name + tooltip (optional, default: same as setting name) - SETLSTRING(sp_addLighter_type), // _category - Category for the settings menu + optional sub-category - true, // _valueInfo - Extra properties of the setting depending of _settingType. See examples below + [LSTRING(set_cat_main),LSTRING(set_cat_sp)], // _category - Category for the settings menu + optional sub-category + _array_lighters, // _valueInfo - Extra properties of the setting depending of _settingType. See examples below 2, // _isGlobal - 1: all clients share the same setting, 2: setting can't be overwritten (optional, default: 0) {}, // _script - Script to execute when setting is changed. (optional) false // _needRestart - Setting will be marked as needing mission restart after being changed. (optional, default false) @@ -69,7 +70,7 @@ private _array_lighters = [ _cfgs apply { configName _x }, _cfgs apply _code, 0 // Auto-Detect Possible Cig Packs (including suckers) -private _cfgs = Q(getNumber (_x >> QQPVAR(isPack)) == 1) configClasses (configFile >> "CfgMagazines"); +private _cfgs = Q(getNumber (_x >> QQPVAR(isPack)) == 1 && {getNumber (_x >> QQ(scope)) == 2}) configClasses (configFile >> "CfgMagazines"); private _array_packs = [ _cfgs apply { configName _x }, _cfgs apply { getText ( _x >> "displayName" ) }, 0 ]; [ @@ -82,4 +83,4 @@ private _array_packs = [ _cfgs apply { configName _x }, _cfgs apply { getText ( 2, // _isGlobal - 1: all clients share the same setting, 2: setting can't be overwritten (optional, default: 0) {}, // _script - Script to execute when setting is changed. (optional) false // _needRestart - Setting will be marked as needing mission restart after being changed. (optional, default false) -] call CBA_fnc_addSetting; \ No newline at end of file +] call CBA_fnc_addSetting; diff --git a/addons/legacy/CfgMagazines.hpp b/addons/legacy/CfgMagazines.hpp index 5ad4e1b..04ddc89 100644 --- a/addons/legacy/CfgMagazines.hpp +++ b/addons/legacy/CfgMagazines.hpp @@ -2,21 +2,21 @@ class CfgMagazines { class PVAR(lighter); class murshun_cigs_lighter : PVAR(lighter) { - scope = 2; + scope = _DEBUG_SCOPE_; displayName = "DEPRECATED"; }; class PVAR(matches); class murshun_cigs_matches : PVAR(matches) { - scope = 2; + scope = _DEBUG_SCOPE_; displayName = "DEPRECATED"; }; class EGVAR(morley,cigpack); class murshun_cigs_cigpack : EGVAR(morley,cigpack) { - scope = 2; + scope = _DEBUG_SCOPE_; displayName = "DEPRECATED"; }; }; diff --git a/addons/main/script_macros.hpp b/addons/main/script_macros.hpp index ae3ab72..5b517a6 100644 --- a/addons/main/script_macros.hpp +++ b/addons/main/script_macros.hpp @@ -4,7 +4,7 @@ // Mod Specific Macros #ifdef __A3_DEBUG__ - #define _DEBUG_SCOPE_ 2 + #define _DEBUG_SCOPE_ 1 #else #define _DEBUG_SCOPE_ 1 #endif \ No newline at end of file diff --git a/addons/main/script_version.hpp b/addons/main/script_version.hpp index a4c9c12..4905485 100644 --- a/addons/main/script_version.hpp +++ b/addons/main/script_version.hpp @@ -1,7 +1,7 @@ #define MAJOR 2 #define MINOR 1 #define PATCH 0 -#define BUILD 183 +#define BUILD 190 // #define VERSION MACROS