allowFadeMusic setting

This commit is contained in:
commy2 2018-01-02 14:57:19 +01:00
parent 7e3f36e23d
commit 6a70ab1ff4
4 changed files with 28 additions and 12 deletions

View File

@ -27,8 +27,6 @@ GVAR(statusEffect_isGlobal) = [];
GVAR(setHearingCapabilityMap) = [];
GVAR(setMusicVolume) = true;
//////////////////////////////////////////////////
// Set up PlayerChanged eventhandler for pre init (EH is installed in postInit)
//////////////////////////////////////////////////
@ -43,14 +41,6 @@ isHC = !hasInterface && !isDedicated; // deprecated because no tag
missionNamespace setVariable ["ACE_isHC", ACE_isHC];
uiNamespace setVariable ["ACE_isHC", ACE_isHC];
[
QGVAR(persistentLaserEnabled),
"CHECKBOX",
[localize LSTRING(SettingPersistentLaserName), localize LSTRING(SettingPersistentLaserDesc)],
localize LSTRING(ACEKeybindCategoryWeapons),
false,
false,
LINKFUNC(switchPersistentLaser)
] call CBA_settings_fnc_init;
#include "initSettings.sqf"
ADDON = true;

View File

@ -47,7 +47,7 @@ if (!_exists && _add) then {
// in game sounds
0 fadeSound _lowestVolume;
0 fadeRadio _lowestVolume;
if (GVAR(setMusicVolume)) then {
if (GVAR(allowFadeMusic)) then {
0 fadeMusic _lowestVolume;
};

View File

@ -0,0 +1,18 @@
[
QGVAR(persistentLaserEnabled),
"CHECKBOX",
[LSTRING(SettingPersistentLaserName), LSTRING(SettingPersistentLaserDesc)],
localize LSTRING(ACEKeybindCategoryWeapons),
false,
false,
LINKFUNC(switchPersistentLaser)
] call CBA_settings_fnc_init;
[
QGVAR(allowFadeMusic),
"CHECKBOX",
[LSTRING(AllowFadeMusic), LSTRING(AllowFadeMusicTooltip)],
localize LSTRING(ACEKeybindCategoryCommon),
true,
true
] call CBA_settings_fnc_init;

View File

@ -1151,5 +1151,13 @@
<Chinesesimp>重量:</Chinesesimp>
<Chinese>重量:</Chinese>
</Key>
<Key ID="STR_ACE_Common_AllowFadeMusic">
<English>Allow muting music</English>
<German>Erlaube Musik stummschalten</German>
</Key>
<Key ID="STR_ACE_Common_AllowFadeMusicTooltip">
<English>Allow ACE scripts to mute the music.</English>
<German>Erlaube ACE-Skripten, die Musik stumm zu schalten.</German>
</Key>
</Package>
</Project>