mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Login overlay should disappear when toolbar is hidden.
This commit is contained in:
@ -10,7 +10,7 @@ namespace osu.Game.Overlays.Toolbar
|
||||
{
|
||||
class ToolbarUserArea : Container
|
||||
{
|
||||
private LoginOverlay loginOverlay;
|
||||
public LoginOverlay LoginOverlay;
|
||||
private ToolbarUserButton button;
|
||||
|
||||
public override RectangleF BoundingBox => button.BoundingBox;
|
||||
@ -25,9 +25,9 @@ namespace osu.Game.Overlays.Toolbar
|
||||
Children = new Drawable[] {
|
||||
button = new ToolbarUserButton
|
||||
{
|
||||
Action = toggle,
|
||||
Action = () => LoginOverlay.ToggleVisibility(),
|
||||
},
|
||||
loginOverlay = new LoginOverlay
|
||||
LoginOverlay = new LoginOverlay
|
||||
{
|
||||
BypassAutoSizeAxes = Axes.Both,
|
||||
Position = new Vector2(0, 1),
|
||||
@ -37,10 +37,5 @@ namespace osu.Game.Overlays.Toolbar
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private void toggle()
|
||||
{
|
||||
loginOverlay.ToggleVisibility();
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user