Ejemplo n.º 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;
        }
    }
Ejemplo n.º 2
0
    private void ShowText()
    {
        int count = this.mList.Count;

        for (int i = 0; i < count; i++)
        {
            CChatParser.LabelType labelType = this.mList[i];
            switch (labelType.type)
            {
            case CChatParser.InfoType.Text:
                this.CreateText(labelType.info);
                break;

            case CChatParser.InfoType.Face:
                this.CreateTextFace(labelType.info);
                break;

            case CChatParser.InfoType.Button:
                this.CreateButton(labelType.info);
                break;
            }
        }
        if (this.curEntNode != null)
        {
            this.curEntNode.final_width += 8f;
        }
    }