Merge branch 'master' into fix-invisible-marker

This commit is contained in:
Dan Balasescu 2017-09-27 14:53:58 +09:00 committed by GitHub
commit 5dceee2e36
2 changed files with 30 additions and 21 deletions

View File

@ -225,7 +225,7 @@ namespace osu.Game.Online.API
public APIState State public APIState State
{ {
get { return state; } get { return state; }
set private set
{ {
APIState oldState = state; APIState oldState = state;
APIState newState = value; APIState newState = value;

View File

@ -3,6 +3,7 @@
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Graphics; using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Game.Graphics; using osu.Game.Graphics;
using osu.Game.Overlays.Settings.Sections.General; using osu.Game.Overlays.Settings.Sections.General;
using OpenTK.Graphics; using OpenTK.Graphics;
@ -26,6 +27,12 @@ namespace osu.Game.Overlays
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
private void load(OsuColour colours) private void load(OsuColour colours)
{ {
Children = new Drawable[]
{
new OsuContextMenuContainer
{
Width = 360,
AutoSizeAxes = Axes.Y,
Children = new Drawable[] Children = new Drawable[]
{ {
new Box new Box
@ -34,9 +41,9 @@ namespace osu.Game.Overlays
Colour = Color4.Black, Colour = Color4.Black,
Alpha = 0.6f, Alpha = 0.6f,
}, },
new OsuContextMenuContainer new Container
{ {
Width = 360, RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y, AutoSizeAxes = Axes.Y,
Masking = true, Masking = true,
AutoSizeDuration = transition_time, AutoSizeDuration = transition_time,
@ -59,6 +66,8 @@ namespace osu.Game.Overlays
}, },
} }
} }
}
}
}; };
} }