Make the Lobby Round Timer a bit clearer (#11977)

This commit is contained in:
Mervill
2022-10-22 14:52:34 -07:00
committed by GitHub
parent 9c27f8417b
commit 281b790067
2 changed files with 5 additions and 3 deletions

View File

@@ -128,7 +128,8 @@ namespace Content.Client.Lobby
if (_gameTicker.IsGameStarted)
{
_lobby!.StartTime.Text = string.Empty;
_lobby!.StationTime.Text = Loc.GetString("lobby-state-player-status-station-time", ("stationTime", _gameTiming.CurTime.Subtract(_gameTicker.RoundStartTimeSpan).ToString("hh\\:mm")));
var roundTime = _gameTiming.CurTime.Subtract(_gameTicker.RoundStartTimeSpan);
_lobby!.StationTime.Text = Loc.GetString("lobby-state-player-status-round-time", ("hours", roundTime.Hours), ("minutes", roundTime.Minutes));
return;
}
@@ -152,7 +153,7 @@ namespace Content.Client.Lobby
}
}
_lobby!.StationTime.Text = Loc.GetString("lobby-state-player-status-station-time", ("stationTime", TimeSpan.Zero.ToString("hh\\:mm")));
_lobby!.StationTime.Text = Loc.GetString("lobby-state-player-status-round-not-started");
_lobby!.StartTime.Text = Loc.GetString("lobby-state-round-start-countdown-text", ("timeLeft", text));
}