Tagging - Convert to CBA Settings (#7336)

This commit is contained in:
PabstMirror 2019-12-26 20:38:36 -06:00 committed by GitHub
parent 085ebd89db
commit af0ab24040
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 7 deletions

View File

@ -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;
};
};

View File

@ -9,4 +9,6 @@ PREP_RECOMPILE_END;
GVAR(cachedTags) = [];
GVAR(cachedRequiredItems) = [];
#include "initSettings.sqf"
ADDON = true;

View 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;