mirror of https://github.com/ppy/osu
Cleanup.
This commit is contained in:
parent
cbf188c293
commit
803bb3c780
|
@ -12,7 +12,6 @@ public class BackgroundScreenDefault : BackgroundScreen
|
||||||
private int currentDisplay;
|
private int currentDisplay;
|
||||||
private const int background_count = 5;
|
private const int background_count = 5;
|
||||||
|
|
||||||
|
|
||||||
private string backgroundName => $@"Menu/menu-background-{currentDisplay % background_count + 1}";
|
private string backgroundName => $@"Menu/menu-background-{currentDisplay % background_count + 1}";
|
||||||
|
|
||||||
private Background current;
|
private Background current;
|
||||||
|
@ -23,12 +22,12 @@ private void load()
|
||||||
display(new Background(backgroundName));
|
display(new Background(backgroundName));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void display(Background b)
|
private void display(Background newBackground)
|
||||||
{
|
{
|
||||||
current?.FadeOut(800, EasingTypes.OutQuint);
|
current?.FadeOut(800, EasingTypes.OutQuint);
|
||||||
current?.Expire();
|
current?.Expire();
|
||||||
|
|
||||||
Add(current = b);
|
Add(current = newBackground);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Next()
|
public void Next()
|
||||||
|
|
Loading…
Reference in New Issue