Cookoff - Reword settings and move to cba (#6892)

* Cookoff - Reword settings and move to cba

* Update stringtable.xml
This commit is contained in:
PabstMirror 2019-03-30 21:54:12 -05:00 committed by GitHub
parent 0052dd3af2
commit c7e6549eb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 74 additions and 63 deletions

View File

@ -1,40 +1,18 @@
class ACE_Settings { class ACE_Settings {
class GVAR(enable) { class GVAR(enable) {
category = CSTRING(displayName); movedToSqf = 1;
displayName = CSTRING(enable_name);
description = CSTRING(enable_tooltip);
value = 0;
typeName = "BOOL";
}; };
class GVAR(enableAmmobox) { class GVAR(enableAmmobox) {
category = CSTRING(displayName); movedToSQF = 1;
displayName = CSTRING(enableBoxCookoff_name);
description = CSTRING(enableBoxCookoff_tooltip);
value = 1;
typeName = "BOOL";
}; };
class GVAR(enableAmmoCookoff) { // For CBA Setting Switch: we can eliminate and just use (ammoCookoffDuration == 0) class GVAR(enableAmmoCookoff) { // For CBA Setting Switch: we can eliminate and just use (ammoCookoffDuration == 0)
category = CSTRING(displayName); movedToSQF = 1;
displayName = CSTRING(enableAmmoCookoff_name);
description = CSTRING(enableAmmoCookoff_tooltip);
value = 1;
typeName = "BOOL";
}; };
class GVAR(ammoCookoffDuration) { class GVAR(ammoCookoffDuration) {
category = CSTRING(displayName); movedToSQF = 1;
displayName = CSTRING(ammoCookoffDuration_name);
description = CSTRING(ammoCookoffDuration_tooltip);
value = 1;
typeName = "SCALAR";
sliderSettings[] = {0, 5, 1, 1};
}; };
class GVAR(probabilityCoef) { class GVAR(probabilityCoef) {
category = CSTRING(displayName); movedToSQF = 1;
displayName = CSTRING(probabilityCoef_name);
description = CSTRING(probabilityCoef_tooltip);
value = 1;
typeName = "SCALAR";
sliderSettings[] = {0, 5, 1, 1};
}; };
}; };

View File

@ -7,8 +7,8 @@ class Cfg3DEN {
class GVAR(enable) { class GVAR(enable) {
property = QGVAR(enable); property = QGVAR(enable);
control = "Checkbox"; control = "Checkbox";
displayName = CSTRING(enable_name); displayName = CSTRING(enable_hd_name);
tooltip = CSTRING(enable_tooltip); tooltip = CSTRING(enable_hd_tooltip);
expression = QUOTE(if !(_value) then {_this setVariable [ARR_3('%s',_value,true)];};); expression = QUOTE(if !(_value) then {_this setVariable [ARR_3('%s',_value,true)];};);
typeName = "BOOL"; typeName = "BOOL";
condition = "objectVehicle"; condition = "objectVehicle";

View File

@ -6,4 +6,6 @@ PREP_RECOMPILE_START;
#include "XEH_PREP.hpp" #include "XEH_PREP.hpp"
PREP_RECOMPILE_END; PREP_RECOMPILE_END;
#include "initSettings.sqf"
ADDON = true; ADDON = true;

View File

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

View File

@ -1,42 +1,22 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<Project name="ACE"> <Project name="ACE">
<Package name="CookOff"> <Package name="CookOff">
<Key ID="STR_ACE_CookOff_displayName"> <Key ID="STR_ACE_CookOff_category_displayName">
<English>Cook off</English> <English>ACE Cook off</English>
<Italian>Esplosione</Italian> <Italian>ACE Esplosione</Italian>
<Chinese>殉爆效果</Chinese> <Chinese>ACE 殉爆效果</Chinese>
<Chinesesimp>殉爆效果</Chinesesimp> <Chinesesimp>ACE 殉爆效果</Chinesesimp>
<Japanese>誘爆</Japanese> <Japanese>ACE 誘爆</Japanese>
<Korean>쿡오프</Korean> <Korean>ACE 쿡오프</Korean>
<German>Durchzündung</German> <German>ACE Durchzündung</German>
<French>Cook off</French> <French>ACE Cook off</French>
<Polish>Samozapłon</Polish> <Polish>ACE Samozapłon</Polish>
</Key> </Key>
<Key ID="STR_ACE_CookOff_enable_name"> <Key ID="STR_ACE_CookOff_enable_hd_name">
<English>Enable cook off</English> <English>Damage handling and turret effects</English>
<German>Durchzündung ermöglichen</German>
<Czech>Povolit explozi munice</Czech>
<Russian>Включить воспламенение</Russian>
<Japanese>誘爆を有効化</Japanese>
<Korean>쿡오프 현상 활성화</Korean>
<Polish>Aktywuj efekty samozapłonu amunicji</Polish>
<French>Activer le cook off</French>
<Italian>Abilita Esplosione</Italian>
<Chinese>開啟殉爆效果</Chinese>
<Chinesesimp>开启殉爆效果</Chinesesimp>
</Key> </Key>
<Key ID="STR_ACE_CookOff_enable_tooltip"> <Key ID="STR_ACE_CookOff_enable_hd_tooltip">
<English>Enables cook off and related vehicle destruction effects.</English> <English>Changes damage handling for cook off and turret explosion effects</English>
<German>Ermöglicht Durchzündung und zugehörige Fahrzeug-Zerstörungseffekte.</German>
<Czech>Povolí explozi munice a její následné ničivé efekty.</Czech>
<Russian>Включает воспламенение и сопутствующие эффекты повреждения техники.</Russian>
<Japanese>誘爆を有効化し、車両が誘爆によって破壊されていきます。</Japanese>
<Korean>쿡오프 현상을 활성화 하고 관련된 차량에 폭발 이펙트를 적용합니다.</Korean>
<Polish>Aktywuje efekt samozapłonu amunicji na zniszczonych pojazdach.</Polish>
<French>Active le cook-off (autocombustion des munitions) et les effets de destruction liés.</French>
<Italian>Abilita l'esplosione e i relativi effetti di distruzione del veicolo.</Italian>
<Chinese>開啟此功能後,將使有關載具在損毀時有殉爆的效果</Chinese>
<Chinesesimp>开启此功能后,将使有关载具在损毁时有殉爆的效果。</Chinesesimp>
</Key> </Key>
<Key ID="STR_ACE_CookOff_generic_turret_wreck"> <Key ID="STR_ACE_CookOff_generic_turret_wreck">
<English>Wreck (Turret)</English> <English>Wreck (Turret)</English>