mirror of
https://github.com/ppy/osu
synced 2024-12-29 02:12:43 +00:00
Move toolbar to OsuGame.
This commit is contained in:
parent
f0681f35c4
commit
7db555be5d
@ -10,11 +10,14 @@ using osu.Framework.OS;
|
||||
using osu.Game.Graphics.Background;
|
||||
using osu.Game.GameModes.Play;
|
||||
using osu.Game.Graphics.Containers;
|
||||
using osu.Game.Overlays;
|
||||
|
||||
namespace osu.Game
|
||||
{
|
||||
public class OsuGame : OsuGameBase
|
||||
{
|
||||
public Toolbar Toolbar;
|
||||
|
||||
public override void SetHost(BasicGameHost host)
|
||||
{
|
||||
base.SetHost(host);
|
||||
@ -33,7 +36,8 @@ namespace osu.Game
|
||||
new Background()
|
||||
}
|
||||
},
|
||||
new MainMenu()
|
||||
new MainMenu(),
|
||||
Toolbar = new Toolbar(),
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -20,8 +20,6 @@ namespace osu.Game
|
||||
|
||||
public Options Options;
|
||||
public APIAccess API;
|
||||
public Toolbar Toolbar;
|
||||
|
||||
|
||||
protected override Container AddTarget => ratioContainer?.IsLoaded == true ? ratioContainer : base.AddTarget;
|
||||
|
||||
@ -50,7 +48,6 @@ namespace osu.Game
|
||||
{
|
||||
Children = new Drawable[]
|
||||
{
|
||||
Toolbar = new Toolbar(),
|
||||
Options = new Options(),
|
||||
new OsuCursorContainer()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user