mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:12:56 +08:00
Add participant panel state
This commit is contained in:
parent
f5667125a0
commit
c744f77cfa
@ -126,6 +126,13 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
AddUntilStep("ready mark invisible", () => !this.ChildrenOfType<StateDisplay>().Single().IsPresent);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestToggleSpectateState()
|
||||
{
|
||||
AddStep("make user spectating", () => Client.ChangeState(MultiplayerUserState.Spectating));
|
||||
AddStep("make user idle", () => Client.ChangeState(MultiplayerUserState.Idle));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestCrownChangesStateWhenHostTransferred()
|
||||
{
|
||||
|
@ -135,6 +135,12 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Participants
|
||||
icon.Colour = colours.BlueLighter;
|
||||
break;
|
||||
|
||||
case MultiplayerUserState.Spectating:
|
||||
text.Text = "spectating";
|
||||
icon.Icon = FontAwesome.Solid.Eye;
|
||||
icon.Colour = colours.BlueLight;
|
||||
break;
|
||||
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(nameof(state), state, null);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user