1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-28 09:37:23 +08:00

Pin mod position in participant panels

This commit is contained in:
smoogipoo 2021-02-01 18:25:09 +09:00
parent 51cb288717
commit 3a906a89fc
2 changed files with 18 additions and 21 deletions

View File

@ -146,7 +146,11 @@ namespace osu.Game.Tests.Visual.Multiplayer
}); });
}); });
AddToggleStep("toggle ready state", v => Client.ChangeUserState(0, v ? MultiplayerUserState.Ready : MultiplayerUserState.Idle)); for (var i = MultiplayerUserState.Idle; i < MultiplayerUserState.Results; i++)
{
var state = i;
AddStep($"set state: {state}", () => Client.ChangeUserState(0, state));
}
} }
} }
} }

View File

@ -129,32 +129,25 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
} }
} }
}, },
new FillFlowContainer new Container
{ {
Anchor = Anchor.CentreRight, Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight, Origin = Anchor.CentreRight,
AutoSizeAxes = Axes.Both, AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal, Margin = new MarginPadding { Right = 70 },
Margin = new MarginPadding { Right = 10 }, Child = userModsDisplay = new ModDisplay
Spacing = new Vector2(10),
Children = new Drawable[]
{ {
userModsDisplay = new ModDisplay Scale = new Vector2(0.5f),
{ ExpansionMode = ExpansionMode.AlwaysContracted,
Anchor = Anchor.Centre, DisplayUnrankedText = false,
Origin = Anchor.Centre, ExpandOnAppear = false
Scale = new Vector2(0.5f),
ExpansionMode = ExpansionMode.AlwaysContracted,
DisplayUnrankedText = false,
ExpandOnAppear = false
},
userStateDisplay = new StateDisplay
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
AlwaysPresent = true
}
} }
},
userStateDisplay = new StateDisplay
{
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
Margin = new MarginPadding { Right = 10 },
} }
} }
} }