1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-30 01:32:55 +08:00

Use BasicPopover for now

This commit is contained in:
Dean Herbert 2021-07-12 18:29:50 +09:00
parent 413f8adb36
commit bbc3a013c8

View File

@ -345,26 +345,24 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
}
}
public class PasswordEntryPopover : Popover
public class PasswordEntryPopover : BasicPopover
{
private readonly Room room;
[Resolved(canBeNull: true)]
private LoungeSubScreen lounge { get; set; }
public PasswordEntryPopover(Room room)
{
this.room = room;
}
[BackgroundDependencyLoader]
private void load(OsuColour colours)
{
OsuPasswordTextBox passwordTextbox;
Child = new Container
{
AutoSizeAxes = Axes.Both,
Children = new Drawable[]
{
new Box
{
Colour = Color4.OliveDrab,
RelativeSizeAxes = Axes.Both,
},
new FillFlowContainer
Child = new FillFlowContainer
{
Margin = new MarginPadding(10),
Spacing = new Vector2(5),
@ -383,12 +381,8 @@ namespace osu.Game.Screens.OnlinePlay.Lounge.Components
Action = () => lounge?.Join(room, passwordTextbox.Text)
}
}
},
}
};
}
protected override Drawable CreateArrow() => Drawable.Empty();
}
}
}