-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cookoff - Reword settings and move to cba (#6892)
* Cookoff - Reword settings and move to cba * Update stringtable.xml
- Loading branch information
1 parent
0052dd3
commit c7e6549
Showing
5 changed files
with
74 additions
and
63 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,18 @@ | ||
|
||
class ACE_Settings { | ||
class GVAR(enable) { | ||
category = CSTRING(displayName); | ||
displayName = CSTRING(enable_name); | ||
description = CSTRING(enable_tooltip); | ||
value = 0; | ||
typeName = "BOOL"; | ||
movedToSqf = 1; | ||
}; | ||
class GVAR(enableAmmobox) { | ||
category = CSTRING(displayName); | ||
displayName = CSTRING(enableBoxCookoff_name); | ||
description = CSTRING(enableBoxCookoff_tooltip); | ||
value = 1; | ||
typeName = "BOOL"; | ||
movedToSQF = 1; | ||
}; | ||
class GVAR(enableAmmoCookoff) { // For CBA Setting Switch: we can eliminate and just use (ammoCookoffDuration == 0) | ||
category = CSTRING(displayName); | ||
displayName = CSTRING(enableAmmoCookoff_name); | ||
description = CSTRING(enableAmmoCookoff_tooltip); | ||
value = 1; | ||
typeName = "BOOL"; | ||
movedToSQF = 1; | ||
}; | ||
class GVAR(ammoCookoffDuration) { | ||
category = CSTRING(displayName); | ||
displayName = CSTRING(ammoCookoffDuration_name); | ||
description = CSTRING(ammoCookoffDuration_tooltip); | ||
value = 1; | ||
typeName = "SCALAR"; | ||
sliderSettings[] = {0, 5, 1, 1}; | ||
movedToSQF = 1; | ||
}; | ||
class GVAR(probabilityCoef) { | ||
category = CSTRING(displayName); | ||
displayName = CSTRING(probabilityCoef_name); | ||
description = CSTRING(probabilityCoef_tooltip); | ||
value = 1; | ||
typeName = "SCALAR"; | ||
sliderSettings[] = {0, 5, 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// CBA Settings [ADDON: ace_cookoff]: | ||
|
||
[ | ||
QGVAR(enable), "CHECKBOX", | ||
[LSTRING(enable_hd_name), LSTRING(enable_hd_tooltip)], | ||
LSTRING(category_displayName), | ||
false, // default value | ||
true, // isGlobal | ||
{[QGVAR(enable), _this] call EFUNC(common,cbaSettings_settingChanged)}, | ||
true // Needs mission restart | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(enableAmmobox), "CHECKBOX", | ||
[LSTRING(enableBoxCookoff_name), LSTRING(enableBoxCookoff_tooltip)], | ||
LSTRING(category_displayName), | ||
true, // default value | ||
true, // isGlobal | ||
{[QGVAR(enableAmmobox), _this] call EFUNC(common,cbaSettings_settingChanged)}, | ||
true // Needs mission restart | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(enableAmmoCookoff), "CHECKBOX", | ||
[LSTRING(enableAmmoCookoff_name), LSTRING(enableAmmoCookoff_tooltip)], | ||
LSTRING(category_displayName), | ||
true, // default value | ||
true, // isGlobal | ||
{[QGVAR(enableAmmoCookoff), _this] call EFUNC(common,cbaSettings_settingChanged)}, | ||
true // Needs mission restart | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(ammoCookoffDuration), "SLIDER", | ||
[LSTRING(ammoCookoffDuration_name), LSTRING(ammoCookoffDuration_tooltip)], | ||
LSTRING(category_displayName), | ||
[0,5,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] | ||
true, // isGlobal | ||
{[QGVAR(ammoCookoffDuration), _this] call EFUNC(common,cbaSettings_settingChanged)}, | ||
true // Needs mission restart | ||
] call CBA_settings_fnc_init; | ||
|
||
[ | ||
QGVAR(probabilityCoef), "SLIDER", | ||
[LSTRING(probabilityCoef_name), LSTRING(probabilityCoef_tooltip)], | ||
LSTRING(category_displayName), | ||
[0,5,1,1], // [min, max, default value, trailing decimals (-1 for whole numbers only)] | ||
true, // isGlobal | ||
{[QGVAR(probabilityCoef), _this] call EFUNC(common,cbaSettings_settingChanged)}, | ||
true // Needs mission restart | ||
] 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