Add current station time to game lobby (#9665)

Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
Jessica M
2022-07-30 19:55:43 -07:00
committed by GitHub
parent 3c3960e82e
commit ae4ca09a57
6 changed files with 11 additions and 3 deletions

View File

@@ -136,6 +136,7 @@ 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.RealTime.Subtract(_gameTicker.RoundStartTimeSpan).ToString("hh\\:mm")));
return;
}
@@ -159,6 +160,7 @@ namespace Content.Client.Lobby
}
}
_lobby.StationTime.Text = Loc.GetString("lobby-state-player-status-station-time", ("stationTime", TimeSpan.Zero.ToString("hh\\:mm")));
_lobby.StartTime.Text = Loc.GetString("lobby-state-round-start-countdown-text", ("timeLeft", text));
}