1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-18 06:27:18 +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,
Origin = Anchor.CentreRight,
AutoSizeAxes = Axes.Both,
Direction = FillDirection.Horizontal,
Margin = new MarginPadding { Right = 10 },
Spacing = new Vector2(10),
Children = new Drawable[]
Margin = new MarginPadding { Right = 70 },
Child = userModsDisplay = new ModDisplay
{
userModsDisplay = new ModDisplay
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
Scale = new Vector2(0.5f),
ExpansionMode = ExpansionMode.AlwaysContracted,
DisplayUnrankedText = false,
ExpandOnAppear = false
},
userStateDisplay = new StateDisplay
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
AlwaysPresent = true
}
Scale = new Vector2(0.5f),
ExpansionMode = ExpansionMode.AlwaysContracted,
DisplayUnrankedText = false,
ExpandOnAppear = false
}
},
userStateDisplay = new StateDisplay
{
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
Margin = new MarginPadding { Right = 10 },
}
}
}