This commit is contained in:
RealFD 2021-11-06 00:28:30 +01:00
commit ee4e6f0ce2
4 changed files with 20 additions and 3 deletions

Binary file not shown.

View File

@ -37,5 +37,14 @@
"label": "Language",
"default": "EN",
"values": ["EN", "DE", "SK", "test2"]
},
"separator_d": {},
"Audio": { "type": "label" },
"audio_systemVoice": {
"label": "Turn on Rasis",
"type": "bool",
"default": false
}
}

View File

@ -35,8 +35,12 @@ local outroTransitionParticleSmallYellowRingAX = 1080;
local outroTransitionParticleSmallYellowRingBX = 1080;
local outroTransitionParticleSmallYellowRingCX = 1080;
if (game.GetSkinSetting('audio_systemVoice')) then
game.LoadSkinSample('gameplay/track_comp_rasis.wav');
else
game.LoadSkinSample('gameplay/track_comp.wav');
end
local compSfxPlayed = false;
local tickTransitions = function (deltaTime)
@ -173,9 +177,13 @@ end
local handleSounds = function ()
if not compSfxPlayed then
compSfxPlayed = true;
if (game.GetSkinSetting('audio_systemVoice')) then
game.PlaySample('gameplay/track_comp_rasis.wav');
else
game.PlaySample('gameplay/track_comp.wav');
end
end
end
local render = function (deltaTime)
tickTransitions(deltaTime);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 16 KiB