Add current player count to lobby (#7402)
This commit is contained in:
@@ -45,11 +45,12 @@ namespace Content.Server.GameTicking
|
|||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var playerCount = $"{_playerManager.PlayerCount}";
|
||||||
var map = _gameMapManager.GetSelectedMap();
|
var map = _gameMapManager.GetSelectedMap();
|
||||||
var mapName = map?.MapName ?? Loc.GetString("game-ticker-no-map-selected");
|
var mapName = map?.MapName ?? Loc.GetString("game-ticker-no-map-selected");
|
||||||
var gmTitle = Loc.GetString(_preset.ModeTitle);
|
var gmTitle = Loc.GetString(_preset.ModeTitle);
|
||||||
var desc = Loc.GetString(_preset.Description);
|
var desc = Loc.GetString(_preset.Description);
|
||||||
return Loc.GetString("game-ticker-get-info-text",("mapName", mapName),("gmTitle", gmTitle),("desc", desc));
|
return Loc.GetString("game-ticker-get-info-text",("playerCount", playerCount),("mapName", mapName),("gmTitle", gmTitle),("desc", desc));
|
||||||
}
|
}
|
||||||
|
|
||||||
private TickerLobbyReadyEvent GetStatusSingle(ICommonSession player, LobbyPlayerStatus status)
|
private TickerLobbyReadyEvent GetStatusSingle(ICommonSession player, LobbyPlayerStatus status)
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ game-ticker-pause-start = Round start has been paused.
|
|||||||
game-ticker-pause-start-resumed = Round start countdown is now resumed.
|
game-ticker-pause-start-resumed = Round start countdown is now resumed.
|
||||||
game-ticker-player-join-game-message = Welcome to Space Station 14! If this is your first time playing, be sure to press F1 on your keyboard and read the game rules, and don't be afraid to ask for help in OOC.
|
game-ticker-player-join-game-message = Welcome to Space Station 14! If this is your first time playing, be sure to press F1 on your keyboard and read the game rules, and don't be afraid to ask for help in OOC.
|
||||||
game-ticker-get-info-text = Hi and welcome to [color=white]Space Station 14![/color]
|
game-ticker-get-info-text = Hi and welcome to [color=white]Space Station 14![/color]
|
||||||
|
The current player count is: [color=white]{$playerCount}[/color]
|
||||||
The current map is: [color=white]{$mapName}[/color]
|
The current map is: [color=white]{$mapName}[/color]
|
||||||
The current game mode is: [color=white]{$gmTitle}[/color].
|
The current game mode is: [color=white]{$gmTitle}[/color].
|
||||||
>[color=yellow]{$desc}[/color]
|
>[color=yellow]{$desc}[/color]
|
||||||
|
|||||||
Reference in New Issue
Block a user