mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 17:52:54 +08:00
Add christmas-specific logo heartbeat
This commit is contained in:
parent
dedf8ad093
commit
9baa56b0c8
@ -271,8 +271,16 @@ namespace osu.Game.Screens.Menu
|
|||||||
private void load(TextureStore textures, AudioManager audio)
|
private void load(TextureStore textures, AudioManager audio)
|
||||||
{
|
{
|
||||||
sampleClick = audio.Samples.Get(@"Menu/osu-logo-select");
|
sampleClick = audio.Samples.Get(@"Menu/osu-logo-select");
|
||||||
|
|
||||||
|
if (SeasonalUI.ENABLED)
|
||||||
|
{
|
||||||
|
sampleDownbeat = sampleBeat = audio.Samples.Get(@"Menu/osu-logo-heartbeat-bell");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
sampleBeat = audio.Samples.Get(@"Menu/osu-logo-heartbeat");
|
sampleBeat = audio.Samples.Get(@"Menu/osu-logo-heartbeat");
|
||||||
sampleDownbeat = audio.Samples.Get(@"Menu/osu-logo-downbeat");
|
sampleDownbeat = audio.Samples.Get(@"Menu/osu-logo-downbeat");
|
||||||
|
}
|
||||||
|
|
||||||
logo.Texture = textures.Get(@"Menu/logo");
|
logo.Texture = textures.Get(@"Menu/logo");
|
||||||
ripple.Texture = textures.Get(@"Menu/logo");
|
ripple.Texture = textures.Get(@"Menu/logo");
|
||||||
@ -303,6 +311,9 @@ namespace osu.Game.Screens.Menu
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
var channel = sampleBeat.GetChannel();
|
var channel = sampleBeat.GetChannel();
|
||||||
|
if (SeasonalUI.ENABLED)
|
||||||
|
channel.Frequency.Value = 0.99 + RNG.NextDouble(0.02);
|
||||||
|
else
|
||||||
channel.Frequency.Value = 0.95 + RNG.NextDouble(0.1);
|
channel.Frequency.Value = 0.95 + RNG.NextDouble(0.1);
|
||||||
channel.Play();
|
channel.Play();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user