mirror of
https://github.com/osukey/osukey.git
synced 2025-05-31 02:17:34 +09:00
IsInSeason() -> IsInSeason
This commit is contained in:
parent
4e3fb615d2
commit
d19dd4eef6
@ -53,7 +53,7 @@ namespace osu.Game.Graphics.Backgrounds
|
|||||||
return new SeasonalBackground(url);
|
return new SeasonalBackground(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsInSeason() => DateTimeOffset.Now < endDate.Value;
|
public bool IsInSeason => DateTimeOffset.Now < endDate.Value;
|
||||||
}
|
}
|
||||||
|
|
||||||
[LongRunningLoad]
|
[LongRunningLoad]
|
||||||
|
@ -109,7 +109,7 @@ namespace osu.Game.Screens.Backgrounds
|
|||||||
switch (seasonalBackgroundMode.Value)
|
switch (seasonalBackgroundMode.Value)
|
||||||
{
|
{
|
||||||
case SeasonalBackgroundMode.Sometimes:
|
case SeasonalBackgroundMode.Sometimes:
|
||||||
if (seasonalBackgroundLoader.IsInSeason())
|
if (seasonalBackgroundLoader.IsInSeason)
|
||||||
goto case SeasonalBackgroundMode.Always;
|
goto case SeasonalBackgroundMode.Always;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user