Bricklayer.Client.Interface.LobbyWindow.ReplaceVariables C# (CSharp) Method

ReplaceVariables() private method

Replaces variables like "$Online" with text in the server info
private ReplaceVariables ( string infoText ) : string
infoText string
return string
        private string ReplaceVariables(string infoText)
        {
            //Replace variables in the info text
            LobbyScreen screen = Interface.MainWindow.ScreenManager.Current as LobbyScreen;
            infoText = infoText.Replace("$Online", screen.Online.ToString());
            infoText = infoText.Replace("$Name", screen.Name);
            infoText = infoText.Replace("$Rooms", screen.Rooms.Count.ToString());
            return infoText;
        }