Add slider settings (#5920)

* Add slider settings

* WARNING to INFO

* tweak scopes / adv fatigue
This commit is contained in:
PabstMirror 2017-12-16 11:51:15 -06:00 committed by GitHub
parent 5371fb9eef
commit e6683e8077
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 57 additions and 8 deletions

View File

@ -40,6 +40,6 @@ class ACE_Settings {
description = CSTRING(simulationInterval_Description); description = CSTRING(simulationInterval_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 0.05; value = 0.05;
sliderSettings[] = {0, 0.2, 0.05, 1}; sliderSettings[] = {0, 0.2, 0.05, 2};
}; };
}; };

View File

@ -20,6 +20,7 @@ class ACE_Settings {
description = CSTRING(PerformanceFactor_Description); description = CSTRING(PerformanceFactor_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 1; value = 1;
sliderSettings[] = {0, 5, 1, 1};
}; };
class GVAR(recoveryFactor) { class GVAR(recoveryFactor) {
category = CSTRING(DisplayName); category = CSTRING(DisplayName);
@ -27,6 +28,7 @@ class ACE_Settings {
description = CSTRING(RecoveryFactor_Description); description = CSTRING(RecoveryFactor_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 1; value = 1;
sliderSettings[] = {0, 5, 1, 1};
}; };
class GVAR(loadFactor) { class GVAR(loadFactor) {
category = CSTRING(DisplayName); category = CSTRING(DisplayName);
@ -34,6 +36,7 @@ class ACE_Settings {
description = CSTRING(LoadFactor_Description); description = CSTRING(LoadFactor_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 1; value = 1;
sliderSettings[] = {0, 5, 1, 1};
}; };
class GVAR(terrainGradientFactor) { class GVAR(terrainGradientFactor) {
category = CSTRING(DisplayName); category = CSTRING(DisplayName);
@ -41,5 +44,6 @@ class ACE_Settings {
description = CSTRING(TerrainGradientFactor_Description); description = CSTRING(TerrainGradientFactor_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 1; value = 1;
sliderSettings[] = {0, 5, 1, 1};
}; };
}; };

View File

@ -12,5 +12,6 @@ class ACE_Settings {
typeName = "SCALAR"; typeName = "SCALAR";
value = 2.5; value = 2.5;
category = ECSTRING(OptionsMenu,CategoryLogistics); category = ECSTRING(OptionsMenu,CategoryLogistics);
sliderSettings[] = {0, 10, 2.5, 1};
}; };
}; };

View File

@ -61,6 +61,7 @@ case ("SCALAR"): { // ACE's Scalar can be a float or an index for a list
_cbaValueInfo = if (isArray (_config >> "sliderSettings")) then { _cbaValueInfo = if (isArray (_config >> "sliderSettings")) then {
getArray (_config >> "sliderSettings"); getArray (_config >> "sliderSettings");
} else { } else {
INFO_1("Using auto min/max for [%1]",_varName);
[-1, 5000, 0, 1] [-1, 5000, 0, 1]
}; };
_cbaValueInfo set [2, getNumber (_config >> "value")]; _cbaValueInfo set [2, getNumber (_config >> "value")];

View File

@ -27,6 +27,7 @@ class ACE_Settings {
description = CSTRING(ammoCookoffDuration_tooltip); description = CSTRING(ammoCookoffDuration_tooltip);
value = 1; value = 1;
typeName = "SCALAR"; typeName = "SCALAR";
sliderSettings[] = {0, 5, 1, 1};
}; };
class GVAR(probabilityCoef) { class GVAR(probabilityCoef) {
category = CSTRING(displayName); category = CSTRING(displayName);
@ -34,5 +35,6 @@ class ACE_Settings {
description = CSTRING(probabilityCoef_tooltip); description = CSTRING(probabilityCoef_tooltip);
value = 1; value = 1;
typeName = "SCALAR"; typeName = "SCALAR";
sliderSettings[] = {0, 5, 1, 1};
}; };
}; };

View File

@ -11,6 +11,7 @@ class ACE_Settings {
typeName = "SCALAR"; typeName = "SCALAR";
displayName = CSTRING(maxRange_displayName); displayName = CSTRING(maxRange_displayName);
description = CSTRING(maxRange_description); description = CSTRING(maxRange_description);
sliderSettings[] = {0, 50, 4, 1};
}; };
class GVAR(indicatorForSelf) { class GVAR(indicatorForSelf) {
category = CSTRING(DisplayName); category = CSTRING(DisplayName);

View File

@ -26,6 +26,7 @@ class ACE_Settings {
description = CSTRING(MaxTrack_Desc); description = CSTRING(MaxTrack_Desc);
typeName = "SCALAR"; typeName = "SCALAR";
value = 10; value = 10;
sliderSettings[] = {0, 50, 10, -1};
}; };
class GVAR(maxTrackPerFrame) { class GVAR(maxTrackPerFrame) {
category = CSTRING(Module_DisplayName); category = CSTRING(Module_DisplayName);
@ -33,5 +34,6 @@ class ACE_Settings {
description = CSTRING(MaxTrackPerFrame_Desc); description = CSTRING(MaxTrackPerFrame_Desc);
typeName = "SCALAR"; typeName = "SCALAR";
value = 10; value = 10;
sliderSettings[] = {0, 50, 10, -1};
}; };
}; };

View File

@ -10,11 +10,13 @@ class ACE_Settings {
category = CSTRING(Module_DisplayName); category = CSTRING(Module_DisplayName);
value = 0.5; value = 0.5;
typeName = "SCALAR"; typeName = "SCALAR";
sliderSettings[] = {0, 1, 0.5, 1};
}; };
class GVAR(unconsciousnessVolume) { class GVAR(unconsciousnessVolume) {
category = CSTRING(Module_DisplayName); category = CSTRING(Module_DisplayName);
value = 0.4; value = 0.4;
typeName = "SCALAR"; typeName = "SCALAR";
sliderSettings[] = {0, 1, 0.4, 1};
}; };
class GVAR(disableEarRinging) { class GVAR(disableEarRinging) {
category = CSTRING(Module_DisplayName); category = CSTRING(Module_DisplayName);

View File

@ -5,5 +5,6 @@ class ACE_Settings {
typeName = "SCALAR"; typeName = "SCALAR";
value = 0.1; value = 0.1;
displayName = CSTRING(minDamageToTrigger_displayName); displayName = CSTRING(minDamageToTrigger_displayName);
sliderSettings[] = {-1, 1, 0.1, 1};
}; };
}; };

View File

@ -3,5 +3,6 @@ class ACE_Settings {
value = 2; value = 2;
typeName = "SCALAR"; typeName = "SCALAR";
displayName = CSTRING(dispersionCount_displayName); displayName = CSTRING(dispersionCount_displayName);
sliderSettings[] = {0, 5, 2, -1};
}; };
}; };

View File

@ -5,6 +5,7 @@ class ACE_Settings {
typeName = "SCALAR"; typeName = "SCALAR";
displayName = CSTRING(BFT_Interval_DisplayName); displayName = CSTRING(BFT_Interval_DisplayName);
description = CSTRING(BFT_Interval_Description); description = CSTRING(BFT_Interval_Description);
sliderSettings[] = {0, 30, 1, 1};
}; };
class GVAR(BFT_Enabled) { class GVAR(BFT_Enabled) {
category = CSTRING(Module_DisplayName); category = CSTRING(Module_DisplayName);
@ -68,5 +69,6 @@ class ACE_Settings {
typeName = "SCALAR"; typeName = "SCALAR";
displayName = CSTRING(DefaultChannel_DisplayName); displayName = CSTRING(DefaultChannel_DisplayName);
description = CSTRING(DefaultChannel_Description); description = CSTRING(DefaultChannel_Description);
sliderSettings[] = {-1, 5, -1, -1};
}; };
}; };

View File

@ -12,6 +12,7 @@ class ACE_Settings {
category = CSTRING(mapGestures_category); category = CSTRING(mapGestures_category);
typeName = "SCALAR"; typeName = "SCALAR";
value = 7; value = 7;
sliderSettings[] = {0, 50, 7, 1};
}; };
class GVAR(interval) { class GVAR(interval) {
displayName = CSTRING(interval_displayName); displayName = CSTRING(interval_displayName);
@ -19,6 +20,7 @@ class ACE_Settings {
category = CSTRING(mapGestures_category); category = CSTRING(mapGestures_category);
typeName = "SCALAR"; typeName = "SCALAR";
value = 0.03; value = 0.03;
sliderSettings[] = {0, 1, 0.03, 2};
}; };
class GVAR(nameTextColor) { class GVAR(nameTextColor) {
displayName = CSTRING(nameTextColor_displayName); displayName = CSTRING(nameTextColor_displayName);

View File

@ -41,6 +41,7 @@ class ACE_Settings {
description = CSTRING(MedicalSettings_bleedingCoefficient_Description); description = CSTRING(MedicalSettings_bleedingCoefficient_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 1; value = 1;
sliderSettings[] = {0, 25, 1, 1};
}; };
class GVAR(painCoefficient) { class GVAR(painCoefficient) {
category = CSTRING(Category_Medical); category = CSTRING(Category_Medical);
@ -48,6 +49,7 @@ class ACE_Settings {
description = CSTRING(MedicalSettings_painCoefficient_Description); description = CSTRING(MedicalSettings_painCoefficient_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 1; value = 1;
sliderSettings[] = {0, 25, 1, 1};
}; };
class GVAR(enableAdvancedWounds) { class GVAR(enableAdvancedWounds) {
category = CSTRING(Category_Medical); category = CSTRING(Category_Medical);
@ -76,6 +78,7 @@ class ACE_Settings {
description = CSTRING(MedicalSettings_playerDamageThreshold_Description); description = CSTRING(MedicalSettings_playerDamageThreshold_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 1; value = 1;
sliderSettings[] = {0, 25, 1, 1};
}; };
class GVAR(AIDamageThreshold) { class GVAR(AIDamageThreshold) {
category = CSTRING(Category_Medical); category = CSTRING(Category_Medical);
@ -83,6 +86,7 @@ class ACE_Settings {
description = CSTRING(MedicalSettings_AIDamageThreshold_Description); description = CSTRING(MedicalSettings_AIDamageThreshold_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 1; value = 1;
sliderSettings[] = {0, 25, 1, 1};
}; };
class GVAR(enableUnconsciousnessAI) { class GVAR(enableUnconsciousnessAI) {
category = CSTRING(Category_Medical); category = CSTRING(Category_Medical);
@ -120,6 +124,7 @@ class ACE_Settings {
description = CSTRING(ReviveSettings_maxReviveTime_Description); description = CSTRING(ReviveSettings_maxReviveTime_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 120; value = 120;
sliderSettings[] = {0, 1200, 120, 0};
}; };
class GVAR(amountOfReviveLives) { class GVAR(amountOfReviveLives) {
category = CSTRING(Category_Medical); category = CSTRING(Category_Medical);
@ -127,6 +132,7 @@ class ACE_Settings {
description = CSTRING(ReviveSettings_amountOfReviveLives_Description); description = CSTRING(ReviveSettings_amountOfReviveLives_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = -1; value = -1;
sliderSettings[] = {-1, 25, -1, -1};
}; };
class GVAR(allowDeadBodyMovement) { class GVAR(allowDeadBodyMovement) {
category = CSTRING(Category_Medical); category = CSTRING(Category_Medical);
@ -156,6 +162,7 @@ class ACE_Settings {
description = CSTRING(MedicalSettings_litterCleanUpDelay_Description); description = CSTRING(MedicalSettings_litterCleanUpDelay_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 0; value = 0;
sliderSettings[] = {-1, 3600, 0, 0};
}; };
class GVAR(medicSetting_basicEpi) { class GVAR(medicSetting_basicEpi) {
category = CSTRING(Category_Medical); category = CSTRING(Category_Medical);
@ -291,5 +298,6 @@ class ACE_Settings {
description = CSTRING(MedicalSettings_delayUnconCaptive_Description); description = CSTRING(MedicalSettings_delayUnconCaptive_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 3; value = 3;
sliderSettings[] = {0, 30, 3, 0};
}; };
}; };

View File

@ -29,5 +29,6 @@ class ACE_Settings {
value = 3; value = 3;
typeName = "SCALAR"; typeName = "SCALAR";
category = ECSTRING(medical,Category_Medical); category = ECSTRING(medical,Category_Medical);
sliderSettings[] = {0, 10, 3, 1};
}; };
}; };

View File

@ -56,12 +56,14 @@ class ACE_Settings {
typeName = "SCALAR"; typeName = "SCALAR";
isClientSettable = 0; isClientSettable = 0;
category = CSTRING(Module_DisplayName); category = CSTRING(Module_DisplayName);
sliderSettings[] = {0, 50, 5, 1};
}; };
class GVAR(playerNamesMaxAlpha) { class GVAR(playerNamesMaxAlpha) {
value = 0.8; value = 0.8;
typeName = "SCALAR"; typeName = "SCALAR";
isClientSettable = 0; isClientSettable = 0;
category = CSTRING(Module_DisplayName); category = CSTRING(Module_DisplayName);
sliderSettings[] = {0, 1, 0.8, 2};
}; };
class GVAR(tagSize) { class GVAR(tagSize) {
value = 2; value = 2;

View File

@ -12,6 +12,7 @@ class ACE_Settings {
description = CSTRING(fogScaling_Description); description = CSTRING(fogScaling_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 1; value = 1;
sliderSettings[] = {0, 2, 1, 1};
}; };
class GVAR(effectScaling) { class GVAR(effectScaling) {
category = CSTRING(Category); category = CSTRING(Category);
@ -19,5 +20,6 @@ class ACE_Settings {
description = CSTRING(effectScaling_Description); description = CSTRING(effectScaling_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 1; value = 1;
sliderSettings[] = {0, 2, 1, 1};
}; };
}; };

View File

@ -43,6 +43,7 @@ class ACE_Settings {
value = 0.1; value = 0.1;
displayName = CSTRING(unJamFailChance_displayName); displayName = CSTRING(unJamFailChance_displayName);
description = CSTRING(unJamFailChance_description); description = CSTRING(unJamFailChance_description);
sliderSettings[] = {0, 1, 0.1, 2};
}; };
class GVAR(enabled) { class GVAR(enabled) {
category = CSTRING(DisplayName); category = CSTRING(DisplayName);

View File

@ -4,5 +4,6 @@ class ACE_Settings {
description = CSTRING(distanceCoefficient_toolTip); description = CSTRING(distanceCoefficient_toolTip);
typeName = "SCALAR"; typeName = "SCALAR";
value = 1; value = 1;
sliderSettings[] = {-1, 10, 5, 1};
}; };
}; };

View File

@ -19,6 +19,7 @@ class ACE_Settings {
description = CSTRING(SearchDistance_description); description = CSTRING(SearchDistance_description);
value = 15; value = 15;
typeName = "SCALAR"; typeName = "SCALAR";
sliderSettings[] = {0, 50, 15, 1};
}; };
class GVAR(timePerPylon) { class GVAR(timePerPylon) {
category = CSTRING(Category_Pylons); category = CSTRING(Category_Pylons);
@ -26,6 +27,7 @@ class ACE_Settings {
description = CSTRING(TimePerPylon_description); description = CSTRING(TimePerPylon_description);
value = 5; value = 5;
typeName = "SCALAR"; typeName = "SCALAR";
sliderSettings[] = {0, 10, 5, 1};
}; };
class GVAR(requireEngineer) { class GVAR(requireEngineer) {
category = CSTRING(Category_Pylons); category = CSTRING(Category_Pylons);

View File

@ -5,11 +5,13 @@ class ACE_Settings {
description = CSTRING(RefuelSettings_speed_Description); description = CSTRING(RefuelSettings_speed_Description);
value = 1; value = 1;
typeName = "SCALAR"; typeName = "SCALAR";
sliderSettings[] = {0, 25, 1, 1};
}; };
class GVAR(hoseLength) { class GVAR(hoseLength) {
category = ECSTRING(OptionsMenu,CategoryLogistics); category = ECSTRING(OptionsMenu,CategoryLogistics);
displayName = CSTRING(RefuelSettings_hoseLength_DisplayName); displayName = CSTRING(RefuelSettings_hoseLength_DisplayName);
value = 12; value = 12;
typeName = "SCALAR"; typeName = "SCALAR";
sliderSettings[] = {0, 50, 12, 1};
}; };
}; };

View File

@ -29,6 +29,7 @@ class ACE_Settings {
typeName = "SCALAR"; typeName = "SCALAR";
value = 0.6; value = 0.6;
category = ECSTRING(OptionsMenu,CategoryLogistics); category = ECSTRING(OptionsMenu,CategoryLogistics);
sliderSettings[] = {0, 1, 0.6, 2};
}; };
class GVAR(repairDamageThreshold_engineer) { class GVAR(repairDamageThreshold_engineer) {
displayName = CSTRING(repairDamageThreshold_Engineer_name); displayName = CSTRING(repairDamageThreshold_Engineer_name);
@ -36,6 +37,7 @@ class ACE_Settings {
typeName = "SCALAR"; typeName = "SCALAR";
value = 0.4; value = 0.4;
category = ECSTRING(OptionsMenu,CategoryLogistics); category = ECSTRING(OptionsMenu,CategoryLogistics);
sliderSettings[] = {0, 1, 0.4, 2};
}; };
class GVAR(consumeItem_toolKit) { class GVAR(consumeItem_toolKit) {
displayName = CSTRING(consumeItem_ToolKit_name); displayName = CSTRING(consumeItem_ToolKit_name);

View File

@ -14,10 +14,11 @@ class ACE_Settings {
value = 1; value = 1;
typeName = "BOOL"; typeName = "BOOL";
}; };
class GVAR(bodyRemoveTimer) { // Not used anywhere???
category = CSTRING(DisplayName); // class GVAR(bodyRemoveTimer) {
displayName = CSTRING(DeadBodyRemoveTimer); // category = CSTRING(DisplayName);
value = 0; // displayName = CSTRING(DeadBodyRemoveTimer);
typeName = "SCALAR"; // value = 0;
}; // typeName = "SCALAR";
// };
}; };

View File

@ -38,6 +38,7 @@ class ACE_Settings {
value = 100; value = 100;
displayName = CSTRING(defaultZeroRange_displayName); displayName = CSTRING(defaultZeroRange_displayName);
description = CSTRING(defaultZeroRange_description); description = CSTRING(defaultZeroRange_description);
sliderSettings[] = {0, 1000, 100, 0};
}; };
// Only relevant when advanced ballistics is enabled // Only relevant when advanced ballistics is enabled
@ -47,6 +48,7 @@ class ACE_Settings {
value = 15; value = 15;
displayName = CSTRING(zeroReferenceTemperature_displayName); displayName = CSTRING(zeroReferenceTemperature_displayName);
description = CSTRING(zeroReferenceTemperature_description); description = CSTRING(zeroReferenceTemperature_description);
sliderSettings[] = {-55, 55, 15, 0};
}; };
class GVAR(zeroReferenceBarometricPressure) { class GVAR(zeroReferenceBarometricPressure) {
category = CSTRING(DisplayName); category = CSTRING(DisplayName);
@ -54,6 +56,7 @@ class ACE_Settings {
value = 1013.25; value = 1013.25;
displayName = CSTRING(zeroReferenceBarometricPressure_displayName); displayName = CSTRING(zeroReferenceBarometricPressure_displayName);
description = CSTRING(zeroReferenceBarometricPressure_description); description = CSTRING(zeroReferenceBarometricPressure_description);
sliderSettings[] = {0, 1013.25, 1013.25, 2};
}; };
class GVAR(zeroReferenceHumidity) { class GVAR(zeroReferenceHumidity) {
category = CSTRING(DisplayName); category = CSTRING(DisplayName);
@ -61,6 +64,7 @@ class ACE_Settings {
value = 0.0; value = 0.0;
displayName = CSTRING(zeroReferenceHumidity_displayName); displayName = CSTRING(zeroReferenceHumidity_displayName);
description = CSTRING(zeroReferenceHumidity_description); description = CSTRING(zeroReferenceHumidity_description);
sliderSettings[] = {0, 1, 0, 2};
}; };
class GVAR(deduceBarometricPressureFromTerrainAltitude) { class GVAR(deduceBarometricPressureFromTerrainAltitude) {
category = CSTRING(DisplayName); category = CSTRING(DisplayName);

View File

@ -45,5 +45,6 @@ class ACE_Settings {
description = CSTRING(SafeZoneRadius_Description); description = CSTRING(SafeZoneRadius_Description);
value = 100; value = 100;
typeName = "SCALAR"; typeName = "SCALAR";
sliderSettings[] = {0, 1000, 100, 0};
}; };
}; };

View File

@ -5,6 +5,7 @@ class ACE_Settings {
description = CSTRING(DefaultLockpickStrength_Description); description = CSTRING(DefaultLockpickStrength_Description);
value = 10; value = 10;
typeName = "SCALAR"; typeName = "SCALAR";
sliderSettings[] = {-1, 60, 5, 1};
}; };
class GVAR(lockVehicleInventory) { class GVAR(lockVehicleInventory) {
category = CSTRING(DisplayName); category = CSTRING(DisplayName);
@ -19,5 +20,6 @@ class ACE_Settings {
description = CSTRING(VehicleStartingLockState_Description); description = CSTRING(VehicleStartingLockState_Description);
value = -1; value = -1;
typeName = "SCALAR"; typeName = "SCALAR";
sliderSettings[] = {-1, 2, -1, -1}; // ToDo: Make this a list?
}; };
}; };

View File

@ -39,6 +39,7 @@ class ACE_Settings {
value = 10000; // Value, NOT index. 10000 is the maximum in A3 value = 10000; // Value, NOT index. 10000 is the maximum in A3
displayName = CSTRING(limit_DisplayName); displayName = CSTRING(limit_DisplayName);
description = CSTRING(limit_setting); description = CSTRING(limit_setting);
sliderSettings[] = {500, 12000, 10000, 0};
}; };
class GVAR(objectViewDistanceCoeff) { class GVAR(objectViewDistanceCoeff) {
category = CSTRING(Module_DisplayName); category = CSTRING(Module_DisplayName);

View File

@ -19,6 +19,6 @@ class ACE_Settings {
description = CSTRING(simulationInterval_Description); description = CSTRING(simulationInterval_Description);
typeName = "SCALAR"; typeName = "SCALAR";
value = 0.05; value = 0.05;
sliderSettings[] = {0, 0.2, 0.05, 1}; sliderSettings[] = {0, 0.2, 0.05, 2};
}; };
}; };