mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Tagging - Convert to CBA Settings (#7336)
This commit is contained in:
parent
085ebd89db
commit
af0ab24040
@ -1,11 +1,5 @@
|
||||
class ACE_Settings {
|
||||
class GVAR(quickTag) {
|
||||
category = CSTRING(Tagging);
|
||||
displayName = CSTRING(QuickTag);
|
||||
description = CSTRING(QuickTagDesc);
|
||||
typeName = "SCALAR";
|
||||
value = 1;
|
||||
values[] = {ECSTRING(Common,Disabled), CSTRING(LastUsed), CSTRING(RandomX), CSTRING(Random)};
|
||||
isClientSettable = 1;
|
||||
movedToSQF = 1;
|
||||
};
|
||||
};
|
||||
|
@ -9,4 +9,6 @@ PREP_RECOMPILE_END;
|
||||
GVAR(cachedTags) = [];
|
||||
GVAR(cachedRequiredItems) = [];
|
||||
|
||||
#include "initSettings.sqf"
|
||||
|
||||
ADDON = true;
|
||||
|
9
addons/tagging/initSettings.sqf
Normal file
9
addons/tagging/initSettings.sqf
Normal file
@ -0,0 +1,9 @@
|
||||
[
|
||||
QGVAR(quickTag), "LIST",
|
||||
[LLSTRING(QuickTag), LLSTRING(QuickTagDesc)],
|
||||
["ACE Uncategorized", LLSTRING(Tagging)],
|
||||
[[0,1,2,3], [LELSTRING(Common,Disabled), LLSTRING(LastUsed), LLSTRING(RandomX), LLSTRING(Random)], 1], // [values, titles, defaultIndex]
|
||||
false, // isGlobal
|
||||
{[QGVAR(quickTag), _this] call EFUNC(common,cbaSettings_settingChanged)},
|
||||
false // Needs mission restart
|
||||
] call CBA_settings_fnc_init;
|
Loading…
Reference in New Issue
Block a user