1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-14 13:27:19 +08:00

osu! can be exited now and has windows title

This replaces #11
This commit is contained in:
Jan-Eric Waclawski 2016-10-11 15:23:04 -04:00 committed by Drew DeVault
parent 5306141f5f
commit 47c16b7ac1
2 changed files with 4 additions and 0 deletions

View File

@ -282,6 +282,9 @@ namespace osu.Game.GameModes.Menu
//if (OsuGame.IdleTime > 6000 && State != MenuState.Exit)
// State = MenuState.Initial;
if (state == MenuState.Exit && osuLogo.Alpha <= 0)
Game.Exit();
iconFacade.Width = osuLogo.SizeForFlow * 0.5f;
base.Update();
}

View File

@ -31,6 +31,7 @@ namespace osu.Game
base.SetHost(host);
host.Size = new Vector2(Config.Get<int>(OsuConfig.Width), Config.Get<int>(OsuConfig.Height));
host.Window.Title = "osu!";
}
public override void Load()