1
0
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:
Jan-Eric Waclawski 2016-08-27 14:11:17 +02:00
parent 9b57c53976
commit 7bf8059df8
3 changed files with 5 additions and 0 deletions

Binary file not shown.

View File

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

View File

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