1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-31 16:32:55 +08:00

Add christmas-specific logo heartbeat

This commit is contained in:
Dean Herbert 2024-12-19 17:52:50 +09:00
parent dedf8ad093
commit 9baa56b0c8
No known key found for this signature in database

View File

@ -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();
} }