private void SetServerStatus(string text, string color) { string str = LocalizationUtils.Localize("d2788af7-8f66-4445-8154-d1e9c04af353"); string[] textArray1 = new string[] { str, ": <color=", color, ">", text, "</color>" }; this.serverStatus = string.Concat(textArray1); }
public void ShowReceivedMessage(ChatMessageReceivedEvent e, ChatNode chatNode, [JoinAll] SelfUserNode selfNode) { if (e.SystemMessage || !selfNode.blackList.BlockedUsers.Contains(e.UserId)) { ChatMessage message = new ChatMessage { Author = !e.SystemMessage ? e.UserUid : LocalizationUtils.Localize(this.systemMessageAuthorKey), AvatarId = e.UserAvatarId, Message = e.Message, Time = DateTime.Now.ToString("HH:mm"), System = e.SystemMessage, Self = (e.UserId == selfNode.Entity.Id) && !e.SystemMessage, ChatType = chatNode.chatChannel.ChatType, ChatId = chatNode.Entity.Id }; chatNode.chatChannel.AddMessage(message); base.ScheduleEvent(new RecievedLobbyChatMessageEvent(message), chatNode); } }
private void Awake() { this.mainText = LocalizationUtils.Localize(this.text.GetComponent <TMPLocalize>().TextUid); }