ACE3/addons/arsenal/ACE_Arsenal_Sorts.hpp

86 lines
2.7 KiB
C++
Raw Normal View History

class GVAR(sorts) {
class sortBase {
scope = 1;
displayName = "";
tabs[] = {{}, {}};
statement = "";
condition = "true";
};
class ACE_alphabetically: sortBase {
scope = 2;
displayName = "$STR_a3_rscdisplayarsenal_sort_alphabet";
tabs[] = {{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}, {0,1,2,3,4,5,6,7}};
statement = QUOTE({});
};
class ACE_mod: sortBase {
scope = 2;
displayName = "$STR_a3_rscdisplayarsenal_sort_mod";
tabs[] = {{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17}, {0,1,2,3,4,5,6,7}};
statement = QUOTE(_this call FUNC(sortStatement_mod));
};
class ACE_mass: sortBase {
scope = 2;
displayName = CSTRING(sortByWeightText);
tabs[] = {{0,1,2,3,4,5,6,7,8,9,10,11,12,13,14}, {0,1,2,3,4,5,6,7}};
statement = QUOTE(_this call FUNC(sortStatement_mass));
};
class ACE_amount: sortBase {
scope = 2;
displayName = CSTRING(sortByAmountText);
tabs[] = {{}, {0,1,2,3,4,5,6,7}};
statement = QUOTE(_this call FUNC(sortStatement_amount));
condition = QUOTE(_this select 0); // Only show for containers
};
class ACE_load: sortBase {
scope = 2;
displayName = CSTRING(sortByLoadText);
tabs[] = {{3,4,5}, {}};
2020-11-24 14:29:43 +00:00
statement = QUOTE(getContainerMaxLoad (_this select 1));
};
class ACE_accuracy: sortBase {
scope = 2;
displayName = CSTRING(sortByAccuracyText);
tabs[] = {{0,1}, {}};
statement = QUOTE(_this call FUNC(sortStatement_accuracy));
};
class ACE_rateOfFire: sortBase {
scope = 2;
displayName = CSTRING(sortByRateOfFireText);
tabs[] = {{0,1}, {}};
statement = QUOTE(_this call FUNC(sortStatement_rateOfFire));
};
class ACE_scopeMag: sortBase {
scope = 2;
displayName = CSTRING(sortByMagnificationText);
tabs[] = {{}, {0}};
statement = QUOTE(_this call FUNC(sortStatement_scopeMag));
};
class ACE_magCount: sortBase {
scope = 2;
displayName = CSTRING(sortByMagCountText);
tabs[] = {{}, {4}};
statement = QUOTE(_this call FUNC(sortStatement_magCount));
};
class ACE_protectionBallistic: sortBase {
scope = 2;
displayName = CSTRING(sortByProtectionBallistic);
tabs[] = {{3,4,6}, {}};
statement = QUOTE([ARR_3(_this, 1000000, 1000)] call FUNC(sortStatement_protection));
};
class ACE_protectionExplosive: ACE_protectionBallistic {
displayName = CSTRING(sortByProtectionExplosive);
statement = QUOTE([ARR_3(_this, 1000, 1000000)] call FUNC(sortStatement_protection));
};
};