Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
    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);
    }
Пример #4
0
    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);
    }