mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:35:10 +08:00
Make OsuGame.ScreenChanged
private
and non-virtual
Just reducing complexity scope here.
This commit is contained in:
parent
1813d73d4f
commit
32c7a023f8
@ -1140,7 +1140,7 @@ namespace osu.Game
|
||||
MenuCursorContainer.CanShowCursor = (ScreenStack.CurrentScreen as IOsuScreen)?.CursorVisible ?? false;
|
||||
}
|
||||
|
||||
protected virtual void ScreenChanged(IScreen current, IScreen newScreen)
|
||||
private void screenChanged(IScreen current, IScreen newScreen)
|
||||
{
|
||||
skinEditor.Reset();
|
||||
|
||||
@ -1187,11 +1187,11 @@ namespace osu.Game
|
||||
}
|
||||
}
|
||||
|
||||
private void screenPushed(IScreen lastScreen, IScreen newScreen) => ScreenChanged(lastScreen, newScreen);
|
||||
private void screenPushed(IScreen lastScreen, IScreen newScreen) => screenChanged(lastScreen, newScreen);
|
||||
|
||||
private void screenExited(IScreen lastScreen, IScreen newScreen)
|
||||
{
|
||||
ScreenChanged(lastScreen, newScreen);
|
||||
screenChanged(lastScreen, newScreen);
|
||||
|
||||
if (newScreen == null)
|
||||
Exit();
|
||||
|
Loading…
Reference in New Issue
Block a user