Пример #1
0
        private void DrawConfig()
        {
            GameDetails details  = _manager.DetailsOf(GameId);
            string      gameName = Check.NotNull(details?.Name) ? details?.Name : GameId;

            GetBroadcast(GameState.Editing).Content["config"].Draw(Name, Privacy, gameName, AllowSpectators, AllowInvites, AllowChat);
        }
Пример #2
0
        private void DrawHeader()
        {
            GameDetails gameDetails = _manager.DetailsOf(GameId);

            string gameName      = GameId;
            string playerCounter = $"**{Players.Count:##,0}** {Format.TryPluralize("player", Players.Count)}";

            if (gameDetails != null)
            {
                gameName      = gameDetails.Name;
                playerCounter = $"**{Players.Count:##,0}**/**{gameDetails.PlayerLimit:##,0}** {Format.TryPluralize("player", gameDetails.PlayerLimit)}";
            }

            GetBroadcast(GameState.Waiting).Content
            .GetComponent(LobbyVars.Header)
            .Draw(Name, Id, Format.Title(gameName, gameDetails?.Icon), playerCounter);
        }