mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #6001 from acemod/fishykins-master
add allowFadeMusic setting
This commit is contained in:
commit
183fc93c5a
@ -41,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;
|
||||
|
@ -47,7 +47,9 @@ if (!_exists && _add) then {
|
||||
// in game sounds
|
||||
0 fadeSound _lowestVolume;
|
||||
0 fadeRadio _lowestVolume;
|
||||
if (GVAR(allowFadeMusic)) then {
|
||||
0 fadeMusic _lowestVolume;
|
||||
};
|
||||
|
||||
// Set Radio mod variables.
|
||||
ACE_player setVariable ["tf_globalVolume", _lowestVolume];
|
||||
|
18
addons/common/initSettings.sqf
Normal file
18
addons/common/initSettings.sqf
Normal 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;
|
@ -1151,5 +1151,13 @@
|
||||
<Chinesesimp>重量:</Chinesesimp>
|
||||
<Chinese>重量:</Chinese>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Common_AllowFadeMusic">
|
||||
<English>Allow turning down music</English>
|
||||
<German>Erlaube Musik leiser stellen</German>
|
||||
</Key>
|
||||
<Key ID="STR_ACE_Common_AllowFadeMusicTooltip">
|
||||
<English>Allow ACE scripts to turn down the music.</English>
|
||||
<German>Erlaube ACE-Skripten, die Musik leiser zu stellen.</German>
|
||||
</Key>
|
||||
</Package>
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user