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:
parent
51cb288717
commit
3a906a89fc
@ -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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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 },
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user