1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 17:43:05 +08:00
This commit is contained in:
Dan Balasescu 2023-12-01 19:02:27 +09:00
parent 15c9416244
commit 1b0fc8ca9d
No known key found for this signature in database
2 changed files with 8 additions and 18 deletions

View File

@ -11,7 +11,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
{
public ConfirmAbortDialog(Action onConfirm, Action onCancel)
{
HeaderText = "Are you sure you want to go abort the match?";
HeaderText = "Are you sure you want to abort the match?";
Icon = FontAwesome.Solid.ExclamationTriangle;

View File

@ -155,19 +155,14 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
case MultiplayerUserState.Spectating:
case MultiplayerUserState.Ready:
Text = room.Host?.Equals(localUser) == true
Text = multiplayerClient.IsHost
? $"Start match {countText}"
: $"Waiting for host... {countText}";
break;
case MultiplayerUserState.Idle:
if (room.State == MultiplayerRoomState.Open || room.Host?.Equals(localUser) != true)
{
Text = "Ready";
break;
}
Text = "Abort!";
// Show the abort button for the host as long as gameplay is in progress.
case MultiplayerUserState when multiplayerClient.IsHost && room.State != MultiplayerRoomState.Open:
Text = "Abort the match";
break;
}
}
@ -207,20 +202,15 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match
case MultiplayerUserState.Spectating:
case MultiplayerUserState.Ready:
if (room?.Host?.Equals(localUser) == true && !room.ActiveCountdowns.Any(c => c is MatchStartCountdown))
if (multiplayerClient.IsHost && !room.ActiveCountdowns.Any(c => c is MatchStartCountdown))
setGreen();
else
setYellow();
break;
case MultiplayerUserState.Idle:
if (room.State == MultiplayerRoomState.Open || room.Host?.Equals(localUser) != true)
{
setGreen();
break;
}
// Show the abort button for the host as long as gameplay is in progress.
case MultiplayerUserState when multiplayerClient.IsHost && room.State != MultiplayerRoomState.Open:
setRed();
break;
}