mirror of
https://github.com/ppy/osu.git
synced 2025-02-13 22:35:23 +08:00
Move ToolbarUserArea initialisation to BDL
This commit is contained in:
parent
777cdcbdc1
commit
0e04260b3c
@ -1,6 +1,7 @@
|
|||||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||||
|
|
||||||
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
using osu.Framework.Graphics.Containers;
|
using osu.Framework.Graphics.Containers;
|
||||||
using osu.Framework.Graphics.Primitives;
|
using osu.Framework.Graphics.Primitives;
|
||||||
@ -11,11 +12,12 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
internal class ToolbarUserArea : Container
|
internal class ToolbarUserArea : Container
|
||||||
{
|
{
|
||||||
public LoginOverlay LoginOverlay;
|
public LoginOverlay LoginOverlay;
|
||||||
private readonly ToolbarUserButton button;
|
private ToolbarUserButton button;
|
||||||
|
|
||||||
public override RectangleF BoundingBox => button.BoundingBox;
|
public override RectangleF BoundingBox => button.BoundingBox;
|
||||||
|
|
||||||
public ToolbarUserArea()
|
[BackgroundDependencyLoader]
|
||||||
|
private void load()
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Y;
|
RelativeSizeAxes = Axes.Y;
|
||||||
AutoSizeAxes = Axes.X;
|
AutoSizeAxes = Axes.X;
|
||||||
|
Loading…
Reference in New Issue
Block a user