Exemple #1
0
    private void ShowText()
    {
        int count = this.mList.get_Count();

        for (int i = 0; i < count; i++)
        {
            CChatParser.LabelType labelType = this.mList.get_Item(i);
            CChatParser.InfoType  type      = labelType.type;
            if (type != CChatParser.InfoType.Text)
            {
                if (type == CChatParser.InfoType.Face)
                {
                    this.CreateTextFace(labelType.info);
                }
            }
            else
            {
                this.CreateText(labelType.info);
            }
        }
        if (this.curEntNode != null)
        {
            this.curEntNode.final_width += 8f;
        }
    }
Exemple #2
0
 public CTextImageNode(string ct, CChatParser.InfoType type, float width, float height, float x, float y)
 {
     this.content = ct;
     this.type    = type;
     this.width   = width;
     this.height  = height;
     this.posX    = x;
     this.posY    = y;
 }
Exemple #3
0
 public LabelType(string text, CChatParser.InfoType tp)
 {
     this.info = text;
     this.type = tp;
 }