mirror of
https://github.com/ppy/osu.git
synced 2025-02-12 14:43:03 +08:00
Added windows title. Game can be exited now.
This commit is contained in:
parent
9b57c53976
commit
7bf8059df8
Binary file not shown.
@ -265,6 +265,9 @@ namespace osu.Game.GameModes.Menu
|
|||||||
//if (OsuGame.IdleTime > 6000 && State != MenuState.Exit)
|
//if (OsuGame.IdleTime > 6000 && State != MenuState.Exit)
|
||||||
// State = MenuState.Initial;
|
// State = MenuState.Initial;
|
||||||
|
|
||||||
|
if (state == MenuState.Exit && osuLogo.Alpha <= 0)
|
||||||
|
System.Environment.Exit(1);
|
||||||
|
|
||||||
iconFacade.Width = osuLogo.SizeForFlow * 0.5f;
|
iconFacade.Width = osuLogo.SizeForFlow * 0.5f;
|
||||||
base.Update();
|
base.Update();
|
||||||
}
|
}
|
||||||
|
@ -23,6 +23,8 @@ namespace osu.Game
|
|||||||
Window.Size = new Size(Config.Get<int>(OsuConfig.Width), Config.Get<int>(OsuConfig.Height));
|
Window.Size = new Size(Config.Get<int>(OsuConfig.Width), Config.Get<int>(OsuConfig.Height));
|
||||||
Window.OnSizeChanged += window_OnSizeChanged;
|
Window.OnSizeChanged += window_OnSizeChanged;
|
||||||
|
|
||||||
|
Window.Title = "osu!";
|
||||||
|
|
||||||
AddProcessingContainer(new RatioAdjust());
|
AddProcessingContainer(new RatioAdjust());
|
||||||
|
|
||||||
//Add(new FontTest());
|
//Add(new FontTest());
|
||||||
|
Loading…
Reference in New Issue
Block a user