Fix lobby countdown not showing hours (#33685)
This commit is contained in:
@@ -116,7 +116,7 @@ namespace Content.Client.Lobby
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Lobby!.StationTime.Text = Loc.GetString("lobby-state-player-status-round-not-started");
|
Lobby!.StationTime.Text = Loc.GetString("lobby-state-player-status-round-not-started");
|
||||||
string text;
|
string text;
|
||||||
|
|
||||||
if (_gameTicker.Paused)
|
if (_gameTicker.Paused)
|
||||||
@@ -136,6 +136,10 @@ namespace Content.Client.Lobby
|
|||||||
{
|
{
|
||||||
text = Loc.GetString(seconds < -5 ? "lobby-state-right-now-question" : "lobby-state-right-now-confirmation");
|
text = Loc.GetString(seconds < -5 ? "lobby-state-right-now-question" : "lobby-state-right-now-confirmation");
|
||||||
}
|
}
|
||||||
|
else if (difference.TotalHours >= 1)
|
||||||
|
{
|
||||||
|
text = $"{Math.Floor(difference.TotalHours)}:{difference.Minutes:D2}:{difference.Seconds:D2}";
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
text = $"{difference.Minutes}:{difference.Seconds:D2}";
|
text = $"{difference.Minutes}:{difference.Seconds:D2}";
|
||||||
|
|||||||
Reference in New Issue
Block a user