private bool ShowTextInLine(int index, string content, byte camp, InBattleInputChat.InBatChatEntity.EType type, ulong uid) { if (index < InBattleInputChat.CHAT_LINE_COUNT) { Text txtCom = null; this.GetCom(index, out txtCom); if (txtCom != null) { txtCom.text = content; return(true); } } return(false); }
public void Clear() { this.colorEnd = 0; this.ullUid = 0uL; this.camp = 0; this.type = InBattleInputChat.InBatChatEntity.EType.Normal; this.startIndex = 0; this.line1 = (this.line2 = string.Empty); this.rawText = string.Empty; this.bShow = false; this.m_maxCooldownTime = 0u; this.m_startCooldownTimestamp = 0uL; this.bLine1Colored = (this.bLine1Colored = false); }
public InBattleInputChat.InBatChatEntity ConstructEnt(string content, InBattleInputChat.InBatChatEntity.EType type = InBattleInputChat.InBatChatEntity.EType.System) { InBattleInputChat.InBatChatEntity validChatEntity = this.GetValidChatEntity(); validChatEntity.ullUid = 0uL; string text = string.Empty; if (type == InBattleInputChat.InBatChatEntity.EType.System) { text = "[系统]"; } validChatEntity.type = type; validChatEntity.rawText = string.Format("{0} {1}", text, content); validChatEntity.colorEnd = (byte)validChatEntity.rawText.get_Length(); return(validChatEntity); }
private bool ShowTextInLine(int index, string content, byte camp, InBattleInputChat.InBatChatEntity.EType type, ulong uid) { if (index >= InBattleInputChat.CHAT_LINE_COUNT) { return(false); } Text text = null; this.GetCom(index, out text); if (text != null) { text.set_text(content); return(true); } return(false); }