-
Notifications
You must be signed in to change notification settings - Fork 737
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NightVision - Add setting for shutter effects (#6134)
Also convert to cba settings Close #6119
- Loading branch information
1 parent
0eeccb1
commit 44b4ed7
Showing
5 changed files
with
68 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,17 @@ | ||
class ACE_Settings { | ||
class GVAR(disableNVGsWithSights) { | ||
category = CSTRING(Category); | ||
displayName = CSTRING(DisableNVGsWithSights_DisplayName); | ||
description = CSTRING(DisableNVGsWithSights_description); | ||
typeName = "BOOL"; | ||
value = 0; | ||
movedToSQF = 1; | ||
}; | ||
class GVAR(fogScaling) { | ||
category = CSTRING(Category); | ||
displayName = CSTRING(fogScaling_DisplayName); | ||
description = CSTRING(fogScaling_Description); | ||
typeName = "SCALAR"; | ||
value = 1; | ||
sliderSettings[] = {0, 2, 1, 1}; | ||
movedToSQF = 1; | ||
}; | ||
class GVAR(noiseScaling) { | ||
category = CSTRING(Category); | ||
displayName = CSTRING(noiseScaling_DisplayName); | ||
description = CSTRING(noiseScaling_Description); | ||
typeName = "SCALAR"; | ||
value = 1; | ||
sliderSettings[] = {0, 2, 1, 1}; | ||
movedToSQF = 1; | ||
}; | ||
class GVAR(effectScaling) { | ||
category = CSTRING(Category); | ||
displayName = CSTRING(effectScaling_DisplayName); | ||
description = CSTRING(effectScaling_Description); | ||
typeName = "SCALAR"; | ||
value = 1; | ||
sliderSettings[] = {0, 2, 1, 1}; | ||
movedToSQF = 1; | ||
}; | ||
class GVAR(aimDownSightsBlur) { | ||
category = CSTRING(Category); | ||
displayName = CSTRING(aimDownSightsBlur_DisplayName); | ||
typeName = "SCALAR"; | ||
value = 1; | ||
sliderSettings[] = {0, 2, 1, 1}; | ||
movedToSQF = 1; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,6 @@ PREP_RECOMPILE_START; | |
#include "XEH_PREP.hpp" | ||
PREP_RECOMPILE_END; | ||
|
||
#include "initSettings.sqf"; | ||
|
||
ADDON = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// CBA Settings [ADDON: ace_nightVision]: | ||
|
||
[ | ||
QGVAR(effectScaling), "SLIDER", | ||
[LSTRING(effectScaling_DisplayName), LSTRING(effectScaling_Description)], | ||
localize LSTRING(Category), | ||
[0,2,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] | ||
true, // isGlobal | ||
{[QGVAR(effectScaling), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; | ||
[ | ||
QGVAR(fogScaling), "SLIDER", | ||
[LSTRING(fogScaling_DisplayName), LSTRING(fogScaling_Description)], | ||
localize LSTRING(Category), | ||
[0,2,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] | ||
true, // isGlobal | ||
{[QGVAR(fogScaling), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(noiseScaling), "SLIDER", | ||
[LSTRING(noiseScaling_DisplayName), LSTRING(noiseScaling_Description)], | ||
localize LSTRING(Category), | ||
[0,2,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] | ||
true, // isGlobal | ||
{[QGVAR(noiseScaling), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(aimDownSightsBlur), "SLIDER", | ||
[LSTRING(aimDownSightsBlur_DisplayName)], | ||
localize LSTRING(Category), | ||
[0,2,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] | ||
true, // isGlobal | ||
{[QGVAR(aimDownSightsBlur), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(disableNVGsWithSights), "CHECKBOX", | ||
[LSTRING(DisableNVGsWithSights_DisplayName), LSTRING(DisableNVGsWithSights_description)], | ||
localize LSTRING(Category), | ||
false, // default value | ||
true, // isGlobal | ||
{[QGVAR(disableNVGsWithSights), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(shutterEffects), "CHECKBOX", | ||
[LSTRING(shutterEffects_DisplayName), LSTRING(shutterEffects_description)], | ||
localize LSTRING(Category), | ||
true, // default value | ||
false, // isGlobal | ||
{[QGVAR(shutterEffects), _this] call EFUNC(common,cbaSettings_settingChanged)} | ||
] call CBA_settings_fnc_init; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters