mirror of
https://github.com/ppy/osu.git
synced 2025-01-31 17:52:54 +08:00
Cleanup
This commit is contained in:
parent
185a4c4d2e
commit
7ba32f2021
@ -196,11 +196,11 @@ namespace osu.Game.Screens.Multiplayer
|
|||||||
{
|
{
|
||||||
rulesetContainer = new Container
|
rulesetContainer = new Container
|
||||||
{
|
{
|
||||||
Size = new Vector2(ruleset_height),
|
AutoSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
gameTypeContainer = new Container
|
gameTypeContainer = new Container
|
||||||
{
|
{
|
||||||
Size = new Vector2(ruleset_height),
|
AutoSizeAxes = Axes.Both,
|
||||||
},
|
},
|
||||||
new Container
|
new Container
|
||||||
{
|
{
|
||||||
@ -263,7 +263,7 @@ namespace osu.Game.Screens.Multiplayer
|
|||||||
Width = 22f,
|
Width = 22f,
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
},
|
},
|
||||||
new Container
|
new Container //todo: team banners
|
||||||
{
|
{
|
||||||
Width = 38f,
|
Width = 38f,
|
||||||
RelativeSizeAxes = Axes.Y,
|
RelativeSizeAxes = Axes.Y,
|
||||||
@ -399,12 +399,17 @@ namespace osu.Game.Screens.Multiplayer
|
|||||||
private void displayUser(User value)
|
private void displayUser(User value)
|
||||||
{
|
{
|
||||||
host.Text = value.Username;
|
host.Text = value.Username;
|
||||||
flagContainer.Children = new[] { new DrawableFlag(value.Country?.FlagName ?? @"__") { RelativeSizeAxes = Axes.Both } };
|
flagContainer.Children = new[]
|
||||||
|
{
|
||||||
|
new DrawableFlag(value.Country?.FlagName ?? @"__")
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.Both,
|
||||||
|
},
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
private void displayStatus(RoomStatus value)
|
private void displayStatus(RoomStatus value)
|
||||||
{
|
{
|
||||||
if (value == null) return;
|
|
||||||
status.Text = value.Message;
|
status.Text = value.Message;
|
||||||
|
|
||||||
foreach (Drawable d in new Drawable[] { statusStrip, status })
|
foreach (Drawable d in new Drawable[] { statusStrip, status })
|
||||||
|
Loading…
Reference in New Issue
Block a user