public virtual void Clear()
 {
     this.reserveItems.Clear();
     base.ClearList(true);
     if (this.autoListBox)
     {
         for (int i = 0; i < this.maxLine; i++)
         {
             GameObject          gameObject          = new GameObject("ListItem");
             UIListItemContainer uIListItemContainer = gameObject.AddComponent <UIListItemContainer>();
             uIListItemContainer.isDraggable        = true;
             uIListItemContainer.AutoFindOuterEdges = false;
             string   backButtonName = UIScrollList.backButtonName;
             UIButton uIButton;
             if (string.Empty != this.selectStyle)
             {
                 uIButton = UICreateControl.Button(backButtonName, this.selectStyle, this.viewableArea.x, this.lineHeight);
             }
             else
             {
                 uIButton = UICreateControl.Button(backButtonName, "Com_B_ListBtnH", this.viewableArea.x, this.lineHeight);
             }
             uIButton.IsListButton    = true;
             uIButton.allwaysPlayAnim = true;
             uIListItemContainer.MakeChild(uIButton.gameObject);
             uIListItemContainer.SetControlIsEnabled(false);
             base.InsertItemDonotPosionUpdate(uIListItemContainer, i, null, true);
         }
         base.DonotCountRepositionItems();
     }
     this.callRepositionItems = false;
     this.clipWhenMoving      = true;
     this.startIndex          = 0;
 }
 public override void Start()
 {
     if (this.m_started)
     {
         return;
     }
     base.Start();
     if (Application.isPlaying)
     {
         base.gameObject.layer = GUICamera.UILayer;
         this.anchor           = SpriteRoot.ANCHOR_METHOD.UPPER_LEFT;
         base.SetTexture("Com_I_Transparent");
         this.upText            = UICreateControl.Label("upText", " ", false, this.width, this.fontSize, this.defaultFontEffect, SpriteText.Anchor_Pos.Upper_Left, SpriteText.Alignment_Type.Left, Color.white);
         this.upText.UpdateText = true;
         this.upText.gameObject.transform.parent        = base.transform;
         this.upText.gameObject.transform.localPosition = new Vector3(2f, -2f, -0.02f);
         this.downText            = UICreateControl.Label("downText", " ", false, this.width - 2f, this.fontSize, this.defaultFontEffect, SpriteText.Anchor_Pos.Upper_Right, SpriteText.Alignment_Type.Right, Color.white);
         this.downText.UpdateText = true;
         this.downText.gameObject.transform.parent        = base.transform;
         this.downText.gameObject.transform.localPosition = new Vector3(0f, -(this.height - this.fontSize - 2f), -0.02f);
         this.EventMark = UICreateControl.DrawTexture("EventMark", "Com_I_Transparent");
         this.EventMark.gameObject.transform.parent        = base.transform;
         this.EventMark.gameObject.transform.localPosition = new Vector3(0f, 0f, -0.02f);
         this.EventMark.Visible = false;
         if (this.container != null)
         {
             this.container.AddChild(this.upText.gameObject);
             this.container.AddChild(this.downText.gameObject);
             this.container.AddChild(this.EventMark.gameObject);
         }
         this.SetState(0);
     }
 }
        public static UIRadioBtn RadioBtn(Form form, string name, string imageKey, float width, float height)
        {
            UIBaseInfoLoader uIBaseInfoLoader = UIBaseFileManager.FindUIImageDictionary(name, imageKey);

            if (uIBaseInfoLoader == null)
            {
                return(null);
            }
            GameObject gameObject = new GameObject(name);
            UIRadioBtn uIRadioBtn = gameObject.AddComponent <UIRadioBtn>();

            uIRadioBtn.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
            uIRadioBtn.gameObject.layer = GUICamera.UILayer;
            uIRadioBtn.SetSpriteTile(uIBaseInfoLoader.Tile, uIBaseInfoLoader.UVs.width / (float)uIBaseInfoLoader.ButtonCount, uIBaseInfoLoader.UVs.height);
            uIRadioBtn.m_bPattern = uIBaseInfoLoader.Pattern;
            Material material = (Material)CResources.Load(uIBaseInfoLoader.Material);

            uIRadioBtn.Setup(width, height, material);
            float pixelToUVsWidth = UIBaseFileManager.GetPixelToUVsWidth(material, uIBaseInfoLoader.UVs.width / (float)uIBaseInfoLoader.ButtonCount);
            Rect  uvs             = new Rect(UIBaseFileManager.GetPixelToUVsWidth(material, uIBaseInfoLoader.UVs.x) - pixelToUVsWidth, 1f - UIBaseFileManager.GetPixelToUVsHeight(material, uIBaseInfoLoader.UVs.y + uIBaseInfoLoader.UVs.height), pixelToUVsWidth, UIBaseFileManager.GetPixelToUVsHeight(material, uIBaseInfoLoader.UVs.height));

            for (int i = 0; i <= (int)(uIBaseInfoLoader.ButtonCount - 1); i++)
            {
                uIRadioBtn.States[i].spriteFrames    = new CSpriteFrame[1];
                uIRadioBtn.States[i].spriteFrames[0] = new CSpriteFrame();
                uvs.x += pixelToUVsWidth;
                uIRadioBtn.States[i].spriteFrames[0].uvs = uvs;
                uIRadioBtn.animations[i].SetAnim(uIRadioBtn.States[i], i);
            }
            uIRadioBtn.autoResize           = false;
            uIRadioBtn.useParentForGrouping = false;
            uIRadioBtn.SetGroup(100 * form.WindowID);
            form.AddDictionaryControl(name, uIRadioBtn);
            form.InteractivePanel.MakeChild(uIRadioBtn.gameObject);
            uIRadioBtn.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
            uIRadioBtn.gameObject.layer = GUICamera.UILayer;
            UIButton uIButton = UICreateControl.Button(name + "OverButton", imageKey + "_over", uIRadioBtn.width, uIRadioBtn.height);

            if (null != uIButton)
            {
                uIButton.Start();
                BoxCollider component = uIButton.gameObject.GetComponent <BoxCollider>();
                if (null != component)
                {
                    UnityEngine.Object.Destroy(component);
                }
                form.InteractivePanel.MakeChild(uIButton.gameObject);
                uIRadioBtn.layers = new SpriteRoot[1];
                for (int j = 0; j < 1; j++)
                {
                    uIRadioBtn.layers[j]             = uIButton;
                    uIButton.transform.localPosition = uIRadioBtn.GetLocation();
                }
            }
            uIRadioBtn.Start();
            return(uIRadioBtn);
        }
        private void MakeLineItem(ref UIListItemContainer container, string index, TreeView.TreeNode node)
        {
            string   backButtonName = UIScrollList.backButtonName;
            UIButton uIButton;

            if (string.Empty != this.childImageStyle)
            {
                uIButton = UICreateControl.Button(backButtonName, this.childImageStyle, base.GetSize().x, this.lineHeight);
            }
            else
            {
                uIButton = UICreateControl.Button(backButtonName, "Com_B_ListBtnH", base.GetSize().x, this.lineHeight);
            }
            uIButton.EffectAni       = false;
            uIButton.IsListButton    = true;
            uIButton.allwaysPlayAnim = true;
            container.MakeChild(uIButton.gameObject);
            uIButton.gameObject.transform.localPosition = Vector3.zero;
            if (string.Empty != node.ImageKey)
            {
                base.name = "image";
                CheckBox checkBox = UICreateControl.CheckBox(base.name, node.ImageKey, 10f, 10f);
                container.MakeChild(checkBox.gameObject);
                checkBox.gameObject.transform.localPosition = new Vector3((float)node.Depth * this.depthX + this.childStartX, -this.LineHeight / 2f + 5f, -0.05f);
                this.addX = 12f;
            }
            if (this.useDepthCount)
            {
                for (int i = 0; i < TreeView.MAX_TEXT_NUM; i++)
                {
                    if (string.Empty != node.GetString(i))
                    {
                        base.name = "text" + i;
                        GameObject gameObject = new GameObject(base.name);
                        Label      label      = gameObject.AddComponent <Label>();
                        label.gameObject.layer = GUICamera.UILayer;
                        label.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                        container.MakeChild(label.gameObject);
                        label.CreateSpriteText();
                        float y = this.lineHeight / 2f * -1f;
                        if (null != label.spriteText)
                        {
                            if (i == 0)
                            {
                                label.SetAnchor(SpriteText.Anchor_Pos.Middle_Left);
                                label.SetAlignment(SpriteText.Alignment_Type.Left);
                                label.gameObject.transform.localPosition = new Vector3((float)node.Depth * this.depthX + this.childStartX + this.addX, y, 0f);
                                label.MaxWidth = this.viewableArea.x - label.gameObject.transform.localPosition.x;
                            }
                            else
                            {
                                if (this.childrenAlignment[i] == SpriteText.Alignment_Type.Left)
                                {
                                    label.SetAnchor(SpriteText.Anchor_Pos.Middle_Left);
                                    label.SetAlignment(this.childrenAlignment[i]);
                                }
                                else if (this.childrenAlignment[i] == SpriteText.Alignment_Type.Center)
                                {
                                    label.SetAnchor(SpriteText.Anchor_Pos.Middle_Center);
                                    label.SetAlignment(this.childrenAlignment[i]);
                                }
                                else if (this.childrenAlignment[i] == SpriteText.Alignment_Type.Right)
                                {
                                    label.SetAnchor(SpriteText.Anchor_Pos.Middle_Right);
                                    label.SetAlignment(this.childrenAlignment[i]);
                                }
                                label.gameObject.transform.localPosition = new Vector3(this.coulmnX[node.Depth, i], y, 0f);
                                label.MaxWidth = this.viewableArea.x - label.gameObject.transform.localPosition.x;
                            }
                            label.width     = this.coulmnWidth[node.Depth, i];
                            label.MultiLine = false;
                            label.SetFontEffect(this.fontEffect[node.Depth]);
                            label.SetCharacterSize(this.fontSize[node.Depth]);
                            label.SPOT = true;
                            label.Text = node.GetString(i);
                            label.BackGroundHide(true);
                        }
                    }
                }
            }
            else
            {
                base.name = "text" + base.Count.ToString();
                GameObject gameObject2 = new GameObject(base.name);
                Label      label2      = gameObject2.AddComponent <Label>();
                label2.gameObject.layer = GUICamera.UILayer;
                label2.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                label2.CreateSpriteText();
                container.MakeChild(label2.gameObject);
                float y2 = this.lineHeight / 2f * -1f;
                if (null != label2.spriteText)
                {
                    if (this.childAlignment == SpriteText.Alignment_Type.Left)
                    {
                        label2.SetAnchor(SpriteText.Anchor_Pos.Middle_Left);
                        label2.spriteText.transform.localPosition = new Vector3(this.childStartX + this.addX, y2, 0f);
                    }
                    else if (this.childAlignment == SpriteText.Alignment_Type.Right)
                    {
                        label2.SetAnchor(SpriteText.Anchor_Pos.Middle_Right);
                        label2.spriteText.transform.localPosition = new Vector3(this.viewableArea.x - 6f, y2, 0f);
                    }
                    else
                    {
                        label2.SetAnchor(SpriteText.Anchor_Pos.Middle_Center);
                        label2.spriteText.transform.localPosition = new Vector3(this.viewableArea.x / 2f, y2, 0f);
                    }
                    label2.SetAlignment(this.childAlignment);
                }
                label2.MaxWidth  = this.viewableArea.x - label2.spriteText.transform.localPosition.x;
                label2.MultiLine = false;
                label2.SPOT      = true;
                label2.SetFontEffect(this.FontEffect);
                label2.SetCharacterSize(15f);
                label2.Text = node.Text;
                label2.BackGroundHide(true);
            }
        }
        private UIListItemContainer MakeChildRootBase(string sChildRootName, TreeView.TreeNode node, bool haveCheckButton, float fontSize, SpriteText.Font_Effect fontEffect, string imageKey)
        {
            GameObject          gameObject          = new GameObject("ChildRoot_NameOnly");
            UIListItemContainer uIListItemContainer = gameObject.AddComponent <UIListItemContainer>();

            uIListItemContainer.gameObject.layer = GUICamera.UILayer;
            uIListItemContainer.Data             = node;
            uIListItemContainer.AddValueChangedDelegate(new EZValueChangedDelegate(this.ClickButton));
            string   name = UIScrollList.backButtonName;
            UIButton uIButton;

            if (string.Empty != this.parentImageStyle)
            {
                uIButton = UICreateControl.Button(name, this.parentImageStyle, this.viewableArea.x, this.lineHeight);
            }
            else
            {
                uIButton = UICreateControl.Button(name, "Com_B_ListBtnH", this.viewableArea.x, this.lineHeight);
            }
            uIButton.EffectAni       = false;
            uIButton.IsListButton    = true;
            uIButton.allwaysPlayAnim = true;
            uIListItemContainer.MakeChild(uIButton.gameObject);
            uIButton.gameObject.transform.localPosition = new Vector3(0f, 0f, 0f);
            DrawTexture drawTexture = null;
            float       x;

            if (this.checkButton)
            {
                name = "arrow";
                CheckBox checkBox = null;
                if (haveCheckButton)
                {
                    if (string.Empty != this.checkButtonStyle)
                    {
                        UIBaseInfoLoader uIBaseInfoLoader = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary(this.checkButtonStyle);

                        if (uIBaseInfoLoader != null)
                        {
                            checkBox = UICreateControl.CheckBox(name, this.checkButtonStyle, uIBaseInfoLoader.UVs.width / (float)uIBaseInfoLoader.ButtonCount, uIBaseInfoLoader.UVs.height);
                        }
                    }
                    else
                    {
                        checkBox = UICreateControl.CheckBox(name, "Win_I_ArrowBl", 12f, 10f);
                    }
                }
                else
                {
                    checkBox = UICreateControl.CheckBox(name, "Win_I_ListTreeN", 12f, 10f);
                }
                uIListItemContainer.MakeChild(checkBox.gameObject);
                checkBox.gameObject.transform.localPosition = new Vector3(11f, -8f, -0.05f);
                x = 24f;
                if (string.Empty != imageKey)
                {
                    drawTexture = UICreateControl.DrawTexture("image", imageKey);
                    uIListItemContainer.MakeChild(drawTexture.gameObject);
                    float num = 12f + checkBox.width + 2f;
                    float y   = (this.LineHeight - drawTexture.height) / 2f * -1f;
                    drawTexture.gameObject.transform.localPosition = new Vector3(num, y, -0.05f);
                    x = num + drawTexture.width + 2f;
                }
            }
            else if (string.Empty != imageKey)
            {
                if (haveCheckButton)
                {
                    UIBaseInfoLoader uIBaseInfoLoader2 = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary(this.checkButtonStyle);

                    if (uIBaseInfoLoader2 != null && this.checkButtonStyle == imageKey)
                    {
                        UIButton uIButton2 = UICreateControl.Button(name, imageKey, uIBaseInfoLoader2.UVs.width / (float)uIBaseInfoLoader2.ButtonCount, uIBaseInfoLoader2.UVs.height);
                        if (null != uIButton2)
                        {
                            uIListItemContainer.MakeChild(uIButton2.gameObject);
                            uIButton2.PlayAni(true);
                            float y2 = (this.LineHeight - uIButton2.height) / 2f * -1f;
                            uIButton2.gameObject.transform.localPosition = new Vector3(6f, y2, -0.05f);
                        }
                    }
                    x = 6f + uIBaseInfoLoader2.UVs.width / (float)uIBaseInfoLoader2.ButtonCount + 6f;
                }
                else
                {
                    drawTexture = UICreateControl.DrawTexture("image", imageKey);
                    if (null != drawTexture)
                    {
                        uIListItemContainer.MakeChild(drawTexture.gameObject);
                        float y3 = (this.LineHeight - drawTexture.height) / 2f * -1f;
                        drawTexture.gameObject.transform.localPosition = new Vector3(10f, y3, -0.05f);
                    }
                    x = 26f;
                }
            }
            else
            {
                x = 6f;
            }
            name = "text" + base.Count.ToString();
            GameObject gameObject2 = new GameObject(name);
            Label      label       = gameObject2.AddComponent <Label>();

            label.gameObject.layer = GUICamera.UILayer;
            uIListItemContainer.MakeChild(label.gameObject);
            label.width = this.viewableArea.x;
            label.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
            label.CreateSpriteText();
            float y4 = this.lineHeight / 2f * -1f;

            if (this.parentAlignment == SpriteText.Alignment_Type.Left)
            {
                label.spriteText.SetAnchor(SpriteText.Anchor_Pos.Middle_Left);
                label.spriteText.SetAlignment(this.parentAlignment);
                label.spriteText.transform.localPosition = new Vector3(x, y4, -0.02f);
            }
            else if (this.parentAlignment == SpriteText.Alignment_Type.Right)
            {
                label.spriteText.SetAnchor(SpriteText.Anchor_Pos.Middle_Right);
                label.spriteText.SetAlignment(this.parentAlignment);
                label.spriteText.transform.localPosition = new Vector3(this.viewableArea.x - 6f, y4, -0.02f);
                if (null != drawTexture)
                {
                    float num2 = this.viewableArea.x - 6f - label.spriteText.TotalWidth;
                    drawTexture.gameObject.transform.localPosition = new Vector3(num2 - 10f, drawTexture.gameObject.transform.localPosition.y, -0.05f);
                }
            }
            else
            {
                label.spriteText.SetAnchor(SpriteText.Anchor_Pos.Middle_Center);
                label.spriteText.SetAlignment(this.parentAlignment);
                label.spriteText.transform.localPosition = new Vector3(this.viewableArea.x / 2f, y4, -0.02f);
                if (null != drawTexture)
                {
                    float num3 = this.viewableArea.x / 2f - label.spriteText.TotalWidth;
                    drawTexture.gameObject.transform.localPosition = new Vector3(num3 - 10f, drawTexture.gameObject.transform.localPosition.y, -0.05f);
                }
            }
            label.MaxWidth  = this.viewableArea.x - label.spriteText.transform.localPosition.x;
            label.MultiLine = false;
            label.SPOT      = true;
            label.SetFontEffect(fontEffect);
            label.SetCharacterSize(fontSize);
            label.Text = sChildRootName;
            label.BackGroundHide(true);
            return(uIListItemContainer);
        }
        public override void Add(ListItem item)
        {
            GameObject          gameObject          = new GameObject("DropDownListItem" + base.Count.ToString());
            UIListItemContainer uIListItemContainer = gameObject.AddComponent <UIListItemContainer>();

            uIListItemContainer.Data               = item;
            uIListItemContainer.isDraggable        = true;
            uIListItemContainer.AutoFindOuterEdges = false;
            string   backButtonName = UIScrollList.backButtonName;
            UIButton uIButton;

            if (string.Empty != this.selectStyle)
            {
                uIButton = UICreateControl.Button(backButtonName, this.selectStyle, this.viewableArea.x, this.lineHeight);
            }
            else
            {
                uIButton = UICreateControl.Button(backButtonName, "Com_B_ListBtnH", this.viewableArea.x, this.lineHeight);
            }
            uIButton.EffectAni       = false;
            uIButton.IsListButton    = true;
            uIButton.allwaysPlayAnim = true;
            uIListItemContainer.MakeChild(uIButton.gameObject);
            uIButton.gameObject.transform.localPosition = Vector3.zero;
            float num  = this._offsetX;
            float num2 = -0.02f;

            for (int i = 0; i < this.currentColumnNum; i++)
            {
                string     name        = this.columnTitle + i.ToString();
                GameObject gameObject2 = new GameObject(name);
                num2 -= 0.01f;
                if (item.GetType(i) == ListItem.TYPE.IMAGE)
                {
                    DrawTexture drawTexture = gameObject2.AddComponent <DrawTexture>();
                    drawTexture.gameObject.layer = GUICamera.UILayer;
                    if (item.ColumnKey[i] is ITEM)
                    {
                        drawTexture.c_cItemTooltip = (ITEM)item.ColumnKey[i];
                    }
                    else if (item.ColumnKey[i] is long)
                    {
                        drawTexture.nItemUniqueTooltip = (int)item.ColumnKey[i];
                    }
                    if (this.useColumnRect)
                    {
                        drawTexture.width  = this.columnRect[i].width;
                        drawTexture.height = this.columnRect[i].height;
                    }
                    else
                    {
                        drawTexture.width  = (float)this.columnWidth[i];
                        drawTexture.height = this.lineHeight;
                    }
                    drawTexture.autoResize = false;
                    drawTexture.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                    UIBaseInfoLoader columnImageInfo = item.GetColumnImageInfo(i);
                    if (columnImageInfo != null && string.Empty != columnImageInfo.Material)
                    {
                        drawTexture.BaseInfoLoderImage = columnImageInfo;
                    }
                    else
                    {
                        drawTexture.SetTextureKey(item.GetColumnImageStr(i));
                    }
                    uIListItemContainer.MakeChild(drawTexture.gameObject);
                    if (this.useColumnRect)
                    {
                        drawTexture.gameObject.transform.localPosition = new Vector3(this.columnRect[i].x, -this.columnRect[i].y, num2);
                        BoxCollider boxCollider = (BoxCollider)drawTexture.gameObject.AddComponent(typeof(BoxCollider));
                        boxCollider.size   = new Vector3(this.columnRect[i].width, this.columnRect[i].height, 0f);
                        boxCollider.center = new Vector3(this.columnRect[i].x / 2f, -this.columnRect[i].y / 2f, 0f);
                    }
                    else
                    {
                        drawTexture.gameObject.transform.localPosition = new Vector3(num, 0f, -0.02f);
                        num += (float)this.columnWidth[i];
                        BoxCollider boxCollider2 = (BoxCollider)drawTexture.gameObject.AddComponent(typeof(BoxCollider));
                        boxCollider2.size   = new Vector3((float)this.columnWidth[i], this.lineHeight, 0f);
                        boxCollider2.center = new Vector3((float)(this.columnWidth[i] / 2), -this.lineHeight / 2f, num2);
                    }
                }
                else if (item.GetType(i) == ListItem.TYPE.TEXT)
                {
                    Label label = gameObject2.AddComponent <Label>();
                    label.gameObject.layer = GUICamera.UILayer;
                    label.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                    label.Data = item.ColumnKey[i];
                    float num3;
                    float y;
                    if (this.useColumnRect)
                    {
                        label.width  = this.columnRect[i].width;
                        label.height = this.columnRect[i].height;
                        num3         = this.columnRect[i].x;
                        y            = -1f * this.columnRect[i].y;
                    }
                    else
                    {
                        num3         = num;
                        y            = 0f;
                        label.width  = (float)this.columnWidth[i];
                        label.height = this.lineHeight;
                        num         += (float)this.columnWidth[i];
                    }
                    if (this.bUseSpotLabel)
                    {
                        label.MaxWidth  = (float)this.columnWidth[i];
                        label.multiLine = false;
                    }
                    label.Text = item.GetColumnStr(i);
                    if (this.bUseSpotLabel)
                    {
                        label.SPOT = true;
                    }
                    label.SetFontEffect(base.FontEffect);
                    label.BackGroundHide(true);
                    if (this.m_faFontSize[i] > 0f)
                    {
                        label.SetCharacterSize(this.m_faFontSize[i]);
                    }
                    if (label.spriteText)
                    {
                        if (this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Upper_Left || this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Middle_Left || this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Lower_Left)
                        {
                            label.SetAnchor(this.columnTextAnchor[i]);
                            label.SetAlignment(SpriteText.Alignment_Type.Left);
                            if (i == 0)
                            {
                                num3 += 6f;
                            }
                        }
                        else if (this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Upper_Center || this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Middle_Center || this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Lower_Center)
                        {
                            label.SetAnchor(this.columnTextAnchor[i]);
                            label.SetAlignment(SpriteText.Alignment_Type.Center);
                        }
                        else if (this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Upper_Right || this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Middle_Right || this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Lower_Right)
                        {
                            label.SetAnchor(this.columnTextAnchor[i]);
                            label.SetAlignment(SpriteText.Alignment_Type.Right);
                        }
                    }
                    uIListItemContainer.MakeChild(label.gameObject);
                    label.gameObject.transform.localPosition = new Vector3(num3, y, num2);
                }
                else if (item.GetType(i) == ListItem.TYPE.BUTTON)
                {
                    UIBaseInfoLoader uIBaseInfoLoader = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary(item.GetColumnImageStr(i));

                    if (uIBaseInfoLoader != null)
                    {
                        UIButton uIButton2 = gameObject2.AddComponent <UIButton>();
                        uIButton2.EffectAni = false;
                        uIButton2.CreateSpriteText();
                        uIButton2.gameObject.layer = GUICamera.UILayer;
                        uIButton2.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                        uIButton2.SetAnchor(SpriteText.Anchor_Pos.Middle_Center);
                        uIButton2.SetAlignment(SpriteText.Alignment_Type.Center);
                        uIButton2.AddValueChangedDelegate(item.GetColumnDelegate(i));
                        uIButton2.width  = this.columnRect[i].width;
                        uIButton2.height = this.columnRect[i].height;
                        uIButton2.Data   = item.ColumnKey[i];
                        uIButton2.SetSpriteTile(uIBaseInfoLoader.Tile, uIBaseInfoLoader.UVs.width / (float)uIBaseInfoLoader.ButtonCount, uIBaseInfoLoader.UVs.height);
                        Material material = (Material)CResources.Load(uIBaseInfoLoader.Material);
                        uIButton2.Setup(this.columnRect[i].width, this.columnRect[i].height, material);
                        float pixelToUVsWidth = UIBaseFileManager.GetPixelToUVsWidth(material, uIBaseInfoLoader.UVs.width / (float)uIBaseInfoLoader.ButtonCount);
                        Rect  rect            = new Rect(UIBaseFileManager.GetPixelToUVsWidth(material, uIBaseInfoLoader.UVs.x) - pixelToUVsWidth, 1f - UIBaseFileManager.GetPixelToUVsHeight(material, uIBaseInfoLoader.UVs.y + uIBaseInfoLoader.UVs.height), pixelToUVsWidth, UIBaseFileManager.GetPixelToUVsHeight(material, uIBaseInfoLoader.UVs.height));
                        Rect  uvs             = new Rect(rect);
                        uvs.x += pixelToUVsWidth;
                        for (int j = 0; j < 4; j++)
                        {
                            uIButton2.States[j].spriteFrames    = new CSpriteFrame[1];
                            uIButton2.States[j].spriteFrames[0] = new CSpriteFrame();
                            rect.x += pixelToUVsWidth;
                            if ((int)uIBaseInfoLoader.ButtonCount <= j)
                            {
                                uIButton2.States[j].spriteFrames[0].uvs = uvs;
                            }
                            else
                            {
                                uIButton2.States[j].spriteFrames[0].uvs = rect;
                            }
                            uIButton2.animations[j] = new UVAnimation();
                            uIButton2.animations[j].SetAnim(uIButton2.States[j], j);
                        }
                        uIButton2.autoResize = false;
                        uIButton2.Text       = item.GetColumnStr(i);
                        if (this.m_faFontSize[i] > 0f)
                        {
                            uIButton2.spriteText.SetCharacterSize(this.m_faFontSize[i]);
                        }
                        uIButton2.PlayAnim(0, 0);
                        uIListItemContainer.MakeChild(uIButton2.gameObject);
                        uIButton2.gameObject.transform.localPosition = new Vector3(this.columnRect[i].x, -this.columnRect[i].y, num2);
                    }
                }
            }
            uIListItemContainer.transform.position = Vector3.zero;
            if (null != base.GetItem(this.startIndex))
            {
                base.RemoveItemDonotPositionUpdate(this.startIndex, true);
                base.InsertItemDonotPosionUpdate(uIListItemContainer, this.startIndex, null, true);
            }
            else
            {
                base.InsertItemDonotPosionUpdate(uIListItemContainer, this.startIndex, null, true);
            }
            this.startIndex++;
        }
Beispiel #7
0
        public UIListItemContainer MakeListItem(int index, ImageSlot imageSlot, EZDragDropDelegate del, EZValueChangedDelegate tapDel, EZValueChangedDelegate mouseOutDel, EZValueChangedDelegate rightMouseDel)
        {
            string text = index.ToString();

            this.strBuilder.Length = 0;
            this.strBuilder.AppendFormat("{0}{1}", "ImageSlot", index);
            GameObject          gameObject          = new GameObject(this.strBuilder.ToString());
            UIListItemContainer uIListItemContainer = gameObject.AddComponent <UIListItemContainer>();

            if (null == uIListItemContainer)
            {
                return(null);
            }
            uIListItemContainer.Start();
            uIListItemContainer.AutoFindOuterEdges = false;
            uIListItemContainer.Data             = imageSlot;
            uIListItemContainer.gameObject.layer = GUICamera.UILayer;
            if (imageSlot.itemunique > 0)
            {
                uIListItemContainer.IsDraggable = true;
            }
            else
            {
                uIListItemContainer.IsDraggable = false;
            }
            if (!this.isDragging)
            {
                uIListItemContainer.IsDraggable = false;
            }
            uIListItemContainer.MouseOffset = (float)(this.slotWidth / 2);
            uIListItemContainer.SetDragDropDelegate(del);
            uIListItemContainer.SetValueChangedDelegate(tapDel);
            this.strBuilder.Length = 0;
            this.strBuilder.AppendFormat("{0}{1}", "backImage", text);
            GameObject  gameObject2 = new GameObject(this.strBuilder.ToString());
            DrawTexture drawTexture = gameObject2.AddComponent <DrawTexture>();

            drawTexture.SetUseBoxCollider(false);
            drawTexture.gameObject.layer = GUICamera.UILayer;
            drawTexture.width            = (float)this.slotWidth;
            drawTexture.height           = (float)this.slotHeight;
            if (imageSlot.WindowID == 260)
            {
                BoxCollider boxCollider = (BoxCollider)uIListItemContainer.gameObject.AddComponent(typeof(BoxCollider));
                if (!imageSlot.c_bDisable)
                {
                    drawTexture.SetTexture("Win_T_ItemEmpty");
                }
                else if (imageSlot.p_nAddEnableSlot > 0)
                {
                    drawTexture.SetTexture("Com_I_SlotUnlock");
                }
                else
                {
                    drawTexture.SetTexture("Com_I_SlotLock");
                }
                boxCollider.size   = new Vector3((float)this.slotWidth, (float)this.slotHeight, 0.01f);
                boxCollider.center = new Vector3((float)(this.slotWidth / 2), (float)(-(float)this.slotHeight / 2), 0f);
            }
            else if (!imageSlot.c_bDisable)
            {
                if (string.Empty != imageSlot.imageStr)
                {
                    drawTexture.SetTexture(imageSlot.imageStr);
                }
                else
                {
                    drawTexture.SetTexture("Com_I_Transparent");
                }
                BoxCollider boxCollider2 = (BoxCollider)uIListItemContainer.gameObject.AddComponent(typeof(BoxCollider));
                boxCollider2.size   = new Vector3((float)this.slotWidth, (float)this.slotHeight, 0.01f);
                boxCollider2.center = new Vector3((float)(this.slotWidth / 2), (float)(-(float)this.slotHeight / 2), 0f);
            }
            else if (imageSlot.p_nAddEnableSlot > 0)
            {
                drawTexture.SetTexture("Com_I_SlotUnlock");
            }
            else
            {
                drawTexture.SetTexture("Com_I_SlotLock");
            }
            drawTexture.autoResize = false;
            drawTexture.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
            uIListItemContainer.MakeChild(drawTexture.gameObject);
            ITEM iTEM = imageSlot.c_oItem as ITEM;

            if (iTEM != null && imageSlot.c_bDisable)
            {
                this.vectorValue.z = -0.05f;
            }
            else
            {
                this.vectorValue.z = 0f;
            }
            this.vectorValue.x = 0f;
            this.vectorValue.y = 0f;
            drawTexture.gameObject.transform.localPosition = this.vectorValue;
            if (imageSlot.ItemImage)
            {
                DrawTexture drawTexture2 = null;
                float       num          = 0f;
                float       num2         = 0f;
                if (0 < imageSlot.itemunique)
                {
                    this.strBuilder.Length = 0;
                    this.strBuilder.AppendFormat("{0}{1}", "image", text);
                    GameObject  gameObject3  = new GameObject(this.strBuilder.ToString());
                    DrawTexture drawTexture3 = gameObject3.AddComponent <DrawTexture>();
                    drawTexture2 = drawTexture3;
                    drawTexture3.SetUseBoxCollider(false);
                    drawTexture3.gameObject.layer = GUICamera.UILayer;
                    drawTexture3.autoResize       = false;
                    UIBaseInfoLoader texture = MsgHandler.HandleReturn <UIBaseInfoLoader>("GetItemTexture", new object[]
                    {
                        imageSlot.itemunique
                    });
                    if (100f < (float)this.slotWidth)
                    {
                        drawTexture3.width  = 100f;
                        drawTexture3.height = 100f;
                        num  = ((float)this.slotWidth - drawTexture3.width) / 2f;
                        num2 = -((float)this.slotHeight - drawTexture3.height) / 2f;
                    }
                    else
                    {
                        drawTexture3.width  = (float)this.slotWidth;
                        drawTexture3.height = (float)this.slotHeight;
                    }
                    drawTexture3.SetTexture(texture);
                    drawTexture3.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                    uIListItemContainer.MakeChild(drawTexture3.gameObject);
                    drawTexture3.gameObject.transform.localPosition = new Vector3(num, num2, -0.01f);
                    if (imageSlot.WindowID == 260)
                    {
                        DrawTexture drawTexture4 = UICreateControl.DrawTexture(UIScrollList.lockImageName, "Win_I_Lock01");
                        if (null != drawTexture4)
                        {
                            drawTexture4.UsedCollider(false);
                            uIListItemContainer.MakeChild(drawTexture4.gameObject);
                            drawTexture4.gameObject.transform.localPosition = new Vector3(0f, -((float)this.slotHeight - drawTexture4.height), -0.04f);
                            uIListItemContainer.SetLocked(iTEM.IsLock());
                        }
                        DrawTexture drawTexture5 = UICreateControl.DrawTexture(UIScrollList.selectImageName, "Com_I_Check");
                        if (null != drawTexture5)
                        {
                            drawTexture5.UsedCollider(false);
                            uIListItemContainer.MakeChild(drawTexture5.gameObject);
                            drawTexture5.Visible = false;
                            drawTexture5.gameObject.transform.localPosition = new Vector3(((float)this.slotWidth - drawTexture5.width) / 2f, -((float)this.slotHeight - drawTexture5.height) / 2f, -0.05f);
                        }
                        DrawTexture drawTexture6 = UICreateControl.DrawTexture(UIScrollList.backButtonName, "Win_T_BK");
                        if (null != drawTexture6)
                        {
                            drawTexture6.SetAlpha(0.9f);
                            drawTexture6.SetSize((float)this.slotWidth, (float)this.slotHeight);
                            drawTexture6.UsedCollider(true);
                            uIListItemContainer.MakeChild(drawTexture6.gameObject);
                            drawTexture6.Visible = false;
                            drawTexture6.gameObject.transform.localPosition = new Vector3(((float)this.slotWidth - drawTexture6.width) / 2f, -((float)this.slotHeight - drawTexture6.height) / 2f, -0.12f);
                        }
                        DrawTexture drawTexture7 = UICreateControl.DrawTexture(UIScrollList.BreakItemImageName, "Win_T_RD");
                        if (null != drawTexture7)
                        {
                            drawTexture7.SetAlpha(0.5f);
                            drawTexture7.SetSize((float)(this.slotWidth - 10), (float)(this.slotHeight - 10));
                            drawTexture7.UsedCollider(false);
                            uIListItemContainer.MakeChild(drawTexture7.gameObject);
                            drawTexture7.gameObject.transform.localPosition = new Vector3(((float)this.slotWidth - drawTexture7.width) / 2f, -((float)this.slotHeight - drawTexture7.height) / 2f, -0.05f);
                            uIListItemContainer.SetBreak(iTEM.IsBreak());
                        }
                    }
                    else if (imageSlot.WindowID == 82)
                    {
                        DrawTexture drawTexture8 = UICreateControl.DrawTexture(UIScrollList.BreakItemImageName, "Win_T_RD");
                        if (null != drawTexture8)
                        {
                            drawTexture8.SetAlpha(0.5f);
                            drawTexture8.SetSize((float)this.slotWidth, (float)this.slotHeight);
                            drawTexture8.UsedCollider(false);
                            uIListItemContainer.MakeChild(drawTexture8.gameObject);
                            drawTexture8.gameObject.transform.localPosition = new Vector3(((float)this.slotWidth - drawTexture8.width) / 2f, -((float)this.slotHeight - drawTexture8.height) / 2f, -0.05f);
                            uIListItemContainer.SetBreak(iTEM.m_nDurability == 0);
                        }
                    }
                }
                if (iTEM != null)
                {
                    if (iTEM.m_nItemUnique != 70000 || null != drawTexture2)
                    {
                    }
                    int num3 = iTEM.m_nOption[2];
                    UIBaseInfoLoader uIBaseInfoLoader = MsgHandler.HandleReturn <UIBaseInfoLoader>("GetLegendItemGrade", new object[]
                    {
                        iTEM.m_nItemUnique
                    });
                    if (uIBaseInfoLoader != null)
                    {
                        if (string.Compare(MsgHandler.HandleReturn <string>("RankStateString", new object[]
                        {
                            num3
                        }), "best") == 0 && null != drawTexture2)
                        {
                            drawTexture2.data = imageSlot.WindowID;
                            NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_WEAPON_GOOD", drawTexture2, new Vector2(drawTexture2.width, drawTexture2.height));

                            drawTexture2.AddGameObjectDelegate(new EZGameObjectDelegate(this.ItemEffect));
                        }
                        string @string = NrTSingleton <UIDataManager> .Instance.GetString("rank", text);

                        GameObject  gameObject4  = new GameObject(@string);
                        DrawTexture drawTexture9 = gameObject4.AddComponent <DrawTexture>();
                        drawTexture9.SetUseBoxCollider(false);
                        drawTexture9.gameObject.layer = GUICamera.UILayer;
                        drawTexture9.autoResize       = false;
                        drawTexture9.width            = uIBaseInfoLoader.UVs.width;
                        drawTexture9.height           = uIBaseInfoLoader.UVs.height;
                        drawTexture9.SetTexture(uIBaseInfoLoader);
                        drawTexture9.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                        uIListItemContainer.MakeChild(drawTexture9.gameObject);
                        drawTexture9.gameObject.transform.localPosition = new Vector3(2f + num, -2f + num2, -0.02f);
                        drawTexture9.DeleteSpriteText();
                    }
                    else if ("true" == MsgHandler.HandleReturn <string>("IsRank", new object[]
                    {
                        iTEM.m_nItemUnique
                    }) && num3 >= 1)
                    {
                        if (string.Compare(MsgHandler.HandleReturn <string>("RankStateString", new object[]
                        {
                            num3
                        }), "best") == 0 && null != drawTexture2)
                        {
                            drawTexture2.data = imageSlot.WindowID;
                            NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_WEAPON_GOOD", drawTexture2, new Vector2(drawTexture2.width, drawTexture2.height));

                            drawTexture2.AddGameObjectDelegate(new EZGameObjectDelegate(this.ItemEffect));
                        }
                        string text2 = MsgHandler.HandleReturn <string>("ChangeRankToString", new object[]
                        {
                            num3
                        });
                        UIBaseInfoLoader uIBaseInfoLoader2 = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary("Win_I_WorrGrade" + text2.ToUpper());

                        if (uIBaseInfoLoader2 != null)
                        {
                            string string2 = NrTSingleton <UIDataManager> .Instance.GetString("rank", text);

                            GameObject  gameObject5   = new GameObject(string2);
                            DrawTexture drawTexture10 = gameObject5.AddComponent <DrawTexture>();
                            drawTexture10.SetUseBoxCollider(false);
                            drawTexture10.gameObject.layer = GUICamera.UILayer;
                            drawTexture10.autoResize       = false;
                            drawTexture10.width            = 20f;
                            drawTexture10.height           = 20f;
                            drawTexture10.SetTexture(uIBaseInfoLoader2);
                            drawTexture10.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                            uIListItemContainer.MakeChild(drawTexture10.gameObject);
                            drawTexture10.gameObject.transform.localPosition = new Vector3(2f + num, -2f + num2, -0.02f);
                        }
                    }
                    if ("true" == MsgHandler.HandleReturn <string>("IsRank", new object[]
                    {
                        iTEM.m_nItemUnique
                    }))
                    {
                        string string3 = NrTSingleton <UIDataManager> .Instance.GetString("num", text);

                        Label label = UICreateControl.Label(string3, NrTSingleton <UIDataManager> .Instance.GetString("Lv.", MsgHandler.HandleReturn <string>("GetUseMinLevel", new object[]
                        {
                            iTEM
                        })), false, (float)this.slotWidth - num - 2f, 20f, 20f, SpriteText.Font_Effect.Black_Shadow_Small, SpriteText.Anchor_Pos.Upper_Right, string.Empty);
                        label.Visible = true;
                        uIListItemContainer.MakeChild(label.gameObject);
                        label.gameObject.transform.localPosition = new Vector3(0f, -((float)this.slotHeight - label.spriteText.TotalHeight + num2), -0.02f);
                    }
                    else
                    {
                        string string4 = NrTSingleton <UIDataManager> .Instance.GetString("num", text);

                        Label label2 = UICreateControl.Label(string4, imageSlot.Num, false, (float)this.slotWidth - num - 2f, 20f, 20f, SpriteText.Font_Effect.Black_Shadow_Small, SpriteText.Anchor_Pos.Upper_Right, string.Empty);
                        label2.Visible = true;
                        uIListItemContainer.MakeChild(label2.gameObject);
                        label2.gameObject.transform.localPosition = new Vector3(0f, -((float)this.slotHeight - label2.spriteText.TotalHeight + num2), -0.02f);
                    }
                }
                if (imageSlot.CoolTime != Vector2.zero)
                {
                    string      name          = "delayImage";
                    GameObject  gameObject6   = new GameObject(name);
                    DrawTexture drawTexture11 = gameObject6.AddComponent <DrawTexture>();
                    if (iTEM != null)
                    {
                        drawTexture11.data = imageSlot.CoolTime;
                    }
                    else
                    {
                        drawTexture11.data = Vector2.zero;
                    }
                    drawTexture11.SetUseBoxCollider(false);
                    drawTexture11.gameObject.layer = GUICamera.UILayer;
                    drawTexture11.width            = (float)this.slotWidth;
                    drawTexture11.height           = (float)this.slotHeight;
                    drawTexture11.SetTexture("Win_T_CPortDeathI");
                    drawTexture11.autoResize = false;
                    drawTexture11.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                    uIListItemContainer.MakeChild(drawTexture11.gameObject);
                    drawTexture11.gameObject.transform.localPosition = new Vector3(0f, (float)(-(float)this.slotHeight), -0.1f);
                    drawTexture11.Visible = false;
                }
            }
            else if (0 < imageSlot.itemunique)
            {
                string string5 = NrTSingleton <UIDataManager> .Instance.GetString("image", text);

                GameObject  gameObject7   = new GameObject(string5);
                DrawTexture drawTexture12 = gameObject7.AddComponent <DrawTexture>();
                drawTexture12.SetUseBoxCollider(false);
                drawTexture12.gameObject.layer = GUICamera.UILayer;
                drawTexture12.autoResize       = false;
                UIBaseInfoLoader texture2 = MsgHandler.HandleReturn <UIBaseInfoLoader>("GetBattleSkillIconTexture", new object[]
                {
                    imageSlot.itemunique
                });
                drawTexture12.width  = 100f;
                drawTexture12.height = 100f;
                drawTexture12.SetTexture(texture2);
                drawTexture12.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                uIListItemContainer.MakeChild(drawTexture12.gameObject);
                drawTexture12.gameObject.transform.localPosition = new Vector3(1f, -1f, -0.01f);
                if (imageSlot.c_bDisable || imageSlot.LevelUP)
                {
                    GameObject  gameObject8   = new GameObject(string5);
                    DrawTexture drawTexture13 = gameObject8.AddComponent <DrawTexture>();
                    drawTexture13.SetUseBoxCollider(false);
                    drawTexture13.gameObject.layer = GUICamera.UILayer;
                    drawTexture13.autoResize       = false;
                    drawTexture13.width            = (float)this.slotWidth;
                    drawTexture13.height           = (float)this.slotHeight;
                    if (imageSlot.c_bDisable)
                    {
                        drawTexture13.SetTexture("Win_T_CoverBL");
                    }
                    else if (imageSlot.LevelUP)
                    {
                        drawTexture13.SetTexture("Com_I_LvUPIcon");
                    }
                    drawTexture13.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                    uIListItemContainer.MakeChild(drawTexture13.gameObject);
                    drawTexture13.gameObject.transform.localPosition = new Vector3(1f, -1f, -0.02f);
                }
            }
            return(uIListItemContainer);
        }
        public UIListItemContainer CreateContainer(ListItem item)
        {
            GameObject          gameObject          = new GameObject("ListItem");
            UIListItemContainer uIListItemContainer = gameObject.AddComponent <UIListItemContainer>();

            uIListItemContainer.Data               = item.Key;
            uIListItemContainer.isDraggable        = true;
            uIListItemContainer.AutoFindOuterEdges = false;
            string   backButtonName = UIScrollList.backButtonName;
            UIButton uIButton;

            if (this.orientation == UIScrollList.ORIENTATION.VERTICAL)
            {
                if (string.Empty != this.selectStyle)
                {
                    uIButton = UICreateControl.Button(backButtonName, this.selectStyle, this.viewableArea.x, this.lineHeight);
                }
                else
                {
                    uIButton = UICreateControl.Button(backButtonName, "Com_B_ListBtnH", this.viewableArea.x, this.lineHeight);
                }
            }
            else if (this.orientation == UIScrollList.ORIENTATION.HORIZONTAL)
            {
                if (string.Empty != this.selectStyle)
                {
                    uIButton = UICreateControl.Button(backButtonName, this.selectStyle, this.lineHeight, this.viewableArea.y);
                }
                else
                {
                    uIButton = UICreateControl.Button(backButtonName, "Com_B_ListBtnH", this.lineHeight, this.viewableArea.y);
                }
            }
            else if (string.Empty != this.selectStyle)
            {
                uIButton = UICreateControl.Button(backButtonName, this.selectStyle, this.viewableArea.x, this.lineHeight);
            }
            else
            {
                uIButton = UICreateControl.Button(backButtonName, "Com_B_ListBtnH", this.viewableArea.x, this.lineHeight);
            }
            uIButton.EffectAni       = false;
            uIButton.IsListButton    = true;
            uIButton.allwaysPlayAnim = true;
            uIListItemContainer.MakeChild(uIButton.gameObject);
            uIButton.gameObject.transform.localPosition = Vector3.zero;
            float num  = this._offsetX;
            float num2 = 0f;

            for (int i = 0; i < this.currentColumnNum; i++)
            {
                string name = this.columnTitle;
                num2 -= 0.2f;
                if (item.GetType(i) == ListItem.TYPE.IMAGE)
                {
                    GameObject  gameObject2 = new GameObject(name);
                    DrawTexture drawTexture = gameObject2.AddComponent <DrawTexture>();
                    drawTexture.gameObject.layer = GUICamera.UILayer;
                    drawTexture.Data             = item.ColumnKey[i];
                    if (this.useColumnRect)
                    {
                        if (item.ColumnKey[i] is float)
                        {
                            drawTexture.width  = (float)item.ColumnKey[i];
                            drawTexture.height = this.columnRect[i].height;
                        }
                        else
                        {
                            drawTexture.width  = this.columnRect[i].width;
                            drawTexture.height = this.columnRect[i].height;
                        }
                    }
                    else
                    {
                        drawTexture.width  = (float)this.columnWidth[i];
                        drawTexture.height = this.lineHeight;
                    }
                    ITEM iTEM = item.ColumnKey[i] as ITEM;
                    if (iTEM != null)
                    {
                        if (iTEM.m_nItemUnique == 70000)
                        {
                            NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_UI_HEARTS_STONE", drawTexture, new Vector2(drawTexture.width, drawTexture.height));
                        }
                        int num3 = iTEM.m_nOption[2];
                        if (string.Compare(MsgHandler.HandleReturn <string>("RankStateString", new object[]
                        {
                            num3
                        }), "best") == 0)
                        {
                            NrTSingleton <FormsManager> .Instance.AttachEffectKey("FX_WEAPON_GOOD", drawTexture, new Vector2(drawTexture.width, drawTexture.height));
                        }
                    }
                    if (item.ColumnKey[i] is ITEM)
                    {
                        drawTexture.c_cItemTooltip = (ITEM)item.ColumnKey[i];
                    }
                    else if (item.ColumnKey[i] is int)
                    {
                        drawTexture.nItemUniqueTooltip = (int)item.ColumnKey[i];
                    }
                    else if (item.ColumnKey[i] is string)
                    {
                        drawTexture.ToolTip = (string)item.ColumnKey[i];
                    }
                    if (item.ColumnKey2[i] is ITEM)
                    {
                        drawTexture.c_cItemSecondTooltip = (ITEM)item.ColumnKey2[i];
                    }
                    drawTexture.autoResize = false;
                    drawTexture.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                    UIBaseInfoLoader columnImageInfo = item.GetColumnImageInfo(i);
                    if (columnImageInfo != null && string.Empty != columnImageInfo.Material)
                    {
                        drawTexture.BaseInfoLoderImage = columnImageInfo;
                    }
                    else
                    {
                        drawTexture.SetTextureKey(item.GetColumnImageStr(i));
                    }
                    float num4 = item.Get_Alpha(i);
                    if (num4 > 0f)
                    {
                        drawTexture.SetAlpha(num4);
                    }
                    uIListItemContainer.MakeChild(drawTexture.gameObject);
                    if (this.useColumnRect)
                    {
                        drawTexture.Setup(drawTexture.width, drawTexture.height);
                        drawTexture.gameObject.transform.localPosition = new Vector3(this.columnRect[i].x, -this.columnRect[i].y, num2);
                        BoxCollider component = drawTexture.gameObject.GetComponent <BoxCollider>();
                        if (null != component)
                        {
                            component.size   = new Vector3(this.columnRect[i].width, this.columnRect[i].height, 0f);
                            component.center = new Vector3(this.columnRect[i].x / 2f, -this.columnRect[i].y / 2f, 0f);
                        }
                    }
                    else
                    {
                        drawTexture.Setup((float)this.columnWidth[i], this.lineHeight);
                        drawTexture.gameObject.transform.localPosition = new Vector3(num, 0f, -0.02f);
                        num += (float)this.columnWidth[i];
                        BoxCollider component2 = drawTexture.gameObject.GetComponent <BoxCollider>();
                        if (null != component2)
                        {
                            component2.size   = new Vector3((float)this.columnWidth[i], this.lineHeight, 0f);
                            component2.center = new Vector3((float)(this.columnWidth[i] / 2), -this.lineHeight / 2f, num2);
                        }
                    }
                    drawTexture.AddValueChangedDelegate(item.GetColumnDelegate(i));
                }
                else if (item.GetType(i) == ListItem.TYPE.TEXT)
                {
                    GameObject gameObject3 = new GameObject(name);
                    Label      label       = gameObject3.AddComponent <Label>();
                    label.customCollider   = true;
                    label.gameObject.layer = GUICamera.UILayer;
                    label.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                    label.Data = item.ColumnKey[i];
                    float x;
                    float y;
                    if (this.useColumnRect)
                    {
                        label.width  = this.columnRect[i].width;
                        label.height = this.columnRect[i].height;
                        x            = this.columnRect[i].x;
                        y            = -1f * this.columnRect[i].y;
                    }
                    else
                    {
                        x            = num;
                        y            = 0f;
                        label.width  = (float)this.columnWidth[i];
                        label.height = this.lineHeight;
                        num         += (float)this.columnWidth[i];
                    }
                    label.CreateSpriteText();
                    label.MaxWidth = label.width;
                    if (this.bUseMultiLine[i])
                    {
                        label.MultiLine = true;
                    }
                    else
                    {
                        label.MultiLine = false;
                        if (this.bUseSpotLabel)
                        {
                            label.SPOT = true;
                        }
                        else
                        {
                            label.SPOT = this.columSpot[i];
                        }
                    }
                    label.Text = item.GetColumnStr(i);
                    label.SetFontEffect(this.FontEffect);
                    label.BackGroundHide(true);
                    if (this.m_faFontSize[i] > 0f)
                    {
                        label.SetCharacterSize(this.m_faFontSize[i]);
                    }
                    if (label.spriteText)
                    {
                        if (this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Upper_Left || this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Middle_Left || this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Lower_Left)
                        {
                            label.SetAnchor(this.columnTextAnchor[i]);
                            label.SetAlignment(SpriteText.Alignment_Type.Left);
                        }
                        else if (this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Upper_Center || this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Middle_Center || this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Lower_Center)
                        {
                            label.SetAnchor(this.columnTextAnchor[i]);
                            label.SetAlignment(SpriteText.Alignment_Type.Center);
                        }
                        else if (this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Upper_Right || this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Middle_Right || this.columnTextAnchor[i] == SpriteText.Anchor_Pos.Lower_Right)
                        {
                            label.SetAnchor(this.columnTextAnchor[i]);
                            label.SetAlignment(SpriteText.Alignment_Type.Right);
                        }
                    }
                    uIListItemContainer.MakeChild(label.gameObject);
                    label.gameObject.transform.localPosition = new Vector3(x, y, num2);
                }
                else if (item.GetType(i) == ListItem.TYPE.BUTTON)
                {
                    UIBaseInfoLoader uIBaseInfoLoader = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary(item.GetColumnImageStr(i));

                    if (uIBaseInfoLoader != null)
                    {
                        GameObject gameObject4 = new GameObject(name);
                        UIButton   uIButton2   = gameObject4.AddComponent <UIButton>();
                        uIButton2.CreateSpriteText();
                        uIButton2.gameObject.layer = GUICamera.UILayer;
                        uIButton2.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                        uIButton2.SetAnchor(SpriteText.Anchor_Pos.Middle_Center);
                        uIButton2.SetAlignment(SpriteText.Alignment_Type.Center);
                        uIButton2.AddValueChangedDelegate(item.GetColumnDelegate(i));
                        uIButton2.width  = this.columnRect[i].width;
                        uIButton2.height = this.columnRect[i].height;
                        uIButton2.Data   = item.ColumnKey[i];
                        uIButton2.SetSpriteTile(uIBaseInfoLoader.Tile, uIBaseInfoLoader.UVs.width / (float)uIBaseInfoLoader.ButtonCount, uIBaseInfoLoader.UVs.height);
                        Material material = CResources.Load(uIBaseInfoLoader.Material) as Material;
                        uIButton2.Setup(this.columnRect[i].width, this.columnRect[i].height, material);
                        float pixelToUVsWidth = UIBaseFileManager.GetPixelToUVsWidth(material, uIBaseInfoLoader.UVs.width / (float)uIBaseInfoLoader.ButtonCount);
                        Rect  rect            = new Rect(UIBaseFileManager.GetPixelToUVsWidth(material, uIBaseInfoLoader.UVs.x) - pixelToUVsWidth, 1f - UIBaseFileManager.GetPixelToUVsHeight(material, uIBaseInfoLoader.UVs.y + uIBaseInfoLoader.UVs.height), pixelToUVsWidth, UIBaseFileManager.GetPixelToUVsHeight(material, uIBaseInfoLoader.UVs.height));
                        Rect  uvs             = new Rect(rect);
                        uvs.x += pixelToUVsWidth;
                        if (TsPlatform.IsMobile)
                        {
                            if (uIBaseInfoLoader.ButtonCount == 4)
                            {
                                for (int j = 0; j < 4; j++)
                                {
                                    uIButton2.States[j].spriteFrames    = new CSpriteFrame[1];
                                    uIButton2.States[j].spriteFrames[0] = new CSpriteFrame();
                                    rect.x += pixelToUVsWidth;
                                    uIButton2.States[j].spriteFrames[0].uvs = rect;
                                    uIButton2.animations[j].SetAnim(uIButton2.States[j], j);
                                }
                            }
                            else if (uIBaseInfoLoader.ButtonCount == 3)
                            {
                                rect.x += pixelToUVsWidth;
                                uIButton2.States[0].spriteFrames        = new CSpriteFrame[1];
                                uIButton2.States[0].spriteFrames[0]     = new CSpriteFrame();
                                uIButton2.States[0].spriteFrames[0].uvs = uvs;
                                uIButton2.animations[0] = new UVAnimation();
                                uIButton2.animations[0].SetAnim(uIButton2.States[0], 0);
                                uIButton2.States[1].spriteFrames        = new CSpriteFrame[1];
                                uIButton2.States[1].spriteFrames[0]     = new CSpriteFrame();
                                uIButton2.States[1].spriteFrames[0].uvs = uvs;
                                uIButton2.animations[1].SetAnim(uIButton2.States[1], 1);
                                rect.x += pixelToUVsWidth;
                                uIButton2.States[2].spriteFrames        = new CSpriteFrame[1];
                                uIButton2.States[2].spriteFrames[0]     = new CSpriteFrame();
                                uIButton2.States[2].spriteFrames[0].uvs = rect;
                                uIButton2.animations[2].SetAnim(uIButton2.States[2], 2);
                                rect.x += pixelToUVsWidth;
                                uIButton2.States[3].spriteFrames        = new CSpriteFrame[1];
                                uIButton2.States[3].spriteFrames[0]     = new CSpriteFrame();
                                uIButton2.States[3].spriteFrames[0].uvs = rect;
                                uIButton2.animations[3].SetAnim(uIButton2.States[3], 3);
                            }
                            else if (uIBaseInfoLoader.ButtonCount == 2)
                            {
                                rect.x += pixelToUVsWidth;
                                uIButton2.States[0].spriteFrames        = new CSpriteFrame[1];
                                uIButton2.States[0].spriteFrames[0]     = new CSpriteFrame();
                                uIButton2.States[0].spriteFrames[0].uvs = uvs;
                                uIButton2.animations[0].SetAnim(uIButton2.States[0], 0);
                                rect.x += pixelToUVsWidth;
                                uIButton2.States[1].spriteFrames        = new CSpriteFrame[1];
                                uIButton2.States[1].spriteFrames[0]     = new CSpriteFrame();
                                uIButton2.States[1].spriteFrames[0].uvs = uvs;
                                uIButton2.animations[1].SetAnim(uIButton2.States[1], 1);
                                uIButton2.States[2].spriteFrames        = new CSpriteFrame[1];
                                uIButton2.States[2].spriteFrames[0]     = new CSpriteFrame();
                                uIButton2.States[2].spriteFrames[0].uvs = rect;
                                uIButton2.animations[2].SetAnim(uIButton2.States[2], 2);
                                uIButton2.States[3].spriteFrames        = new CSpriteFrame[1];
                                uIButton2.States[3].spriteFrames[0]     = new CSpriteFrame();
                                uIButton2.States[3].spriteFrames[0].uvs = uvs;
                                uIButton2.animations[3].SetAnim(uIButton2.States[3], 3);
                            }
                            else
                            {
                                for (int k = 0; k < 4; k++)
                                {
                                    uIButton2.States[k].spriteFrames    = new CSpriteFrame[1];
                                    uIButton2.States[k].spriteFrames[0] = new CSpriteFrame();
                                    rect.x += pixelToUVsWidth;
                                    if ((int)uIBaseInfoLoader.ButtonCount <= k)
                                    {
                                        uIButton2.States[k].spriteFrames[0].uvs = uvs;
                                    }
                                    else
                                    {
                                        uIButton2.States[k].spriteFrames[0].uvs = rect;
                                    }
                                    uIButton2.animations[k].SetAnim(uIButton2.States[k], k);
                                }
                            }
                        }
                        else
                        {
                            for (int l = 0; l < 4; l++)
                            {
                                uIButton2.States[l].spriteFrames    = new CSpriteFrame[1];
                                uIButton2.States[l].spriteFrames[0] = new CSpriteFrame();
                                rect.x += pixelToUVsWidth;
                                if ((int)uIBaseInfoLoader.ButtonCount <= l)
                                {
                                    uIButton2.States[l].spriteFrames[0].uvs = uvs;
                                }
                                else
                                {
                                    uIButton2.States[l].spriteFrames[0].uvs = rect;
                                }
                                uIButton2.animations[l].SetAnim(uIButton2.States[l], l);
                            }
                        }
                        uIButton2.autoResize = false;
                        if (string.Empty != item.GetColumnStr(i))
                        {
                            uIButton2.Text = item.GetColumnStr(i);
                            if (this.m_faFontSize[i] > 0f)
                            {
                                uIButton2.SetCharacterSize(this.m_faFontSize[i]);
                            }
                        }
                        else
                        {
                            uIButton2.DeleteSpriteText();
                        }
                        uIButton2.PlayAnim(0, 0);
                        if (item.ColumnKey[i] is bool && !(bool)item.ColumnKey[i])
                        {
                            uIButton2.controlIsEnabled = false;
                        }
                        uIListItemContainer.MakeChild(uIButton2.gameObject);
                        uIButton2.gameObject.transform.localPosition = new Vector3(this.columnRect[i].x, -this.columnRect[i].y, num2);
                    }
                }
                else if (item.GetType(i) == ListItem.TYPE.ITEM)
                {
                    GameObject  gameObject5 = new GameObject(name);
                    ItemTexture itemTexture = gameObject5.AddComponent <ItemTexture>();
                    itemTexture.Layer = GUICamera.UILayer;
                    ITEM iTEM2 = item.ColumnKey[i] as ITEM;
                    if (this.useColumnRect)
                    {
                        itemTexture.width  = this.columnRect[i].width;
                        itemTexture.height = this.columnRect[i].height;
                    }
                    else
                    {
                        itemTexture.width  = (float)this.columnWidth[i];
                        itemTexture.height = this.lineHeight;
                    }
                    if (iTEM2.m_nItemUnique == 70000)
                    {
                        this.SetSlotEffect("FX_UI_HEARTS_STONE", itemTexture, new Vector2(itemTexture.width, itemTexture.height));
                    }
                    int num5 = iTEM2.m_nOption[2];
                    if (string.Compare(MsgHandler.HandleReturn <string>("RankStateString", new object[]
                    {
                        num5
                    }), "best") == 0)
                    {
                        this.SetSlotEffect("FX_WEAPON_GOOD", itemTexture, new Vector2(itemTexture.width, itemTexture.height));
                        if (item.GetGameObjectDelegate() != null)
                        {
                            itemTexture.AddGameObjectDelegate(item.GetGameObjectDelegate());
                        }
                    }
                    itemTexture.autoResize = false;
                    itemTexture.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                    float num6 = item.Get_Alpha(i);
                    if (num6 > 0f)
                    {
                        itemTexture.SetAlpha(num6);
                    }
                    uIListItemContainer.MakeChild(itemTexture.gameObject);
                    if (this.useColumnRect)
                    {
                        itemTexture.Setup(this.columnRect[i].width, this.columnRect[i].height);
                        itemTexture.gameObject.transform.localPosition = new Vector3(this.columnRect[i].x, -this.columnRect[i].y, num2);
                        BoxCollider boxCollider = (BoxCollider)itemTexture.gameObject.AddComponent(typeof(BoxCollider));
                        if (boxCollider != null)
                        {
                            boxCollider.size   = new Vector3(this.columnRect[i].width, this.columnRect[i].height, 0f);
                            boxCollider.center = new Vector3(this.columnRect[i].x / 2f, -this.columnRect[i].y / 2f, 0f);
                        }
                    }
                    else
                    {
                        itemTexture.Setup((float)this.columnWidth[i], this.lineHeight);
                        itemTexture.gameObject.transform.localPosition = new Vector3(num, 0f, -0.02f);
                        num += (float)this.columnWidth[i];
                        BoxCollider boxCollider2 = (BoxCollider)itemTexture.gameObject.AddComponent(typeof(BoxCollider));
                        boxCollider2.size   = new Vector3((float)this.columnWidth[i], this.lineHeight, 0f);
                        boxCollider2.center = new Vector3((float)(this.columnWidth[i] / 2), -this.lineHeight / 2f, num2);
                    }
                    itemTexture.Start();
                    itemTexture.SetItemTexture(item.ColumnKey[i] as ITEM, false, true, 1f);
                    if (item.p_bIsTooltip[i] && item.ColumnKey[i] is ITEM)
                    {
                        itemTexture.c_cItemTooltip = (ITEM)item.ColumnKey[i];
                    }
                    if (item.p_bIsSecondTooltip[i] && item.ColumnKey2[i] is ITEM)
                    {
                        itemTexture.c_cItemSecondTooltip = (ITEM)item.ColumnKey2[i];
                    }
                    itemTexture.AddValueChangedDelegate(item.GetColumnDelegate(i));
                }
                else if (item.GetType(i) == ListItem.TYPE.SOLDIER)
                {
                    GameObject  gameObject6  = new GameObject(name);
                    ItemTexture itemTexture2 = gameObject6.AddComponent <ItemTexture>();
                    itemTexture2.Layer = GUICamera.UILayer;
                    if (this.useColumnRect)
                    {
                        itemTexture2.width  = this.columnRect[i].width;
                        itemTexture2.height = this.columnRect[i].height;
                    }
                    else
                    {
                        itemTexture2.width  = (float)this.columnWidth[i];
                        itemTexture2.height = this.lineHeight;
                    }
                    itemTexture2.autoResize = false;
                    itemTexture2.SetAnchor(SpriteRoot.ANCHOR_METHOD.UPPER_LEFT);
                    float num7 = item.Get_Alpha(i);
                    if (num7 > 0f)
                    {
                        itemTexture2.SetAlpha(num7);
                    }
                    uIListItemContainer.MakeChild(itemTexture2.gameObject);
                    if (this.useColumnRect)
                    {
                        itemTexture2.Setup(this.columnRect[i].width, this.columnRect[i].height);
                        itemTexture2.gameObject.transform.localPosition = new Vector3(this.columnRect[i].x, -this.columnRect[i].y, num2);
                        BoxCollider boxCollider3 = (BoxCollider)itemTexture2.gameObject.AddComponent(typeof(BoxCollider));
                        boxCollider3.size   = new Vector3(this.columnRect[i].width, this.columnRect[i].height, 0f);
                        boxCollider3.center = new Vector3(this.columnRect[i].x / 2f, -this.columnRect[i].y / 2f, 0f);
                    }
                    else
                    {
                        itemTexture2.Setup((float)this.columnWidth[i], this.lineHeight);
                        itemTexture2.gameObject.transform.localPosition = new Vector3(num, 0f, -0.02f);
                        num += (float)this.columnWidth[i];
                        BoxCollider boxCollider4 = (BoxCollider)itemTexture2.gameObject.AddComponent(typeof(BoxCollider));
                        boxCollider4.size   = new Vector3((float)this.columnWidth[i], this.lineHeight, 0f);
                        boxCollider4.center = new Vector3((float)(this.columnWidth[i] / 2), -this.lineHeight / 2f, num2);
                    }
                    itemTexture2.Start();
                    if (item.ColumnKey[i] is int)
                    {
                        int charkind = (int)item.ColumnKey[i];
                        itemTexture2.SetSolImageTexure(eCharImageType.SMALL, charkind, -1);
                    }
                    else if (item.ColumnKey[i] is NkListSolInfo)
                    {
                        NkListSolInfo solInfo = item.ColumnKey[i] as NkListSolInfo;
                        itemTexture2.SetSolImageTexure(eCharImageType.SMALL, solInfo);
                    }
                }
                else if (item.GetType(i) == ListItem.TYPE.PROGRESSBAR)
                {
                    GameObject    gameObject7   = new GameObject(name);
                    UIProgressBar uIProgressBar = gameObject7.AddComponent <UIProgressBar>();
                    uIProgressBar.gameObject.layer = GUICamera.UILayer;
                    uIProgressBar.width            = this.columnRect[i].width;
                    uIProgressBar.height           = this.columnRect[i].height;
                    UIBaseInfoLoader uIBaseInfoLoader2 = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary(item.GetColumnImageStr(i));

                    uIProgressBar.SetSpriteTile(uIBaseInfoLoader2.Tile, uIBaseInfoLoader2.UVs.width / (float)uIBaseInfoLoader2.ButtonCount, uIBaseInfoLoader2.UVs.height);
                    Material material2 = CResources.Load(uIBaseInfoLoader2.Material) as Material;
                    uIProgressBar.Setup(this.columnRect[i].width, this.columnRect[i].height, material2);
                    Rect uvs2 = new Rect(UIBaseFileManager.GetPixelToUVsWidth(material2, uIBaseInfoLoader2.UVs.x), 1f - UIBaseFileManager.GetPixelToUVsHeight(material2, uIBaseInfoLoader2.UVs.y + uIBaseInfoLoader2.UVs.height), UIBaseFileManager.GetPixelToUVsWidth(material2, uIBaseInfoLoader2.UVs.width), UIBaseFileManager.GetPixelToUVsHeight(material2, uIBaseInfoLoader2.UVs.height));
                    uIProgressBar.States[0].spriteFrames        = new CSpriteFrame[1];
                    uIProgressBar.States[0].spriteFrames[0]     = new CSpriteFrame();
                    uIProgressBar.States[0].spriteFrames[0].uvs = uvs2;
                    uIProgressBar.animations[0].SetAnim(uIProgressBar.States[0], 0);
                    uIBaseInfoLoader2.Initialize();
                    if (NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary(item.GetColumnImageStr2(i), ref uIBaseInfoLoader2))
                    {
                        uvs2 = new Rect(UIBaseFileManager.GetPixelToUVsWidth(material2, uIBaseInfoLoader2.UVs.x), 1f - UIBaseFileManager.GetPixelToUVsHeight(material2, uIBaseInfoLoader2.UVs.y + uIBaseInfoLoader2.UVs.height), UIBaseFileManager.GetPixelToUVsWidth(material2, uIBaseInfoLoader2.UVs.width), UIBaseFileManager.GetPixelToUVsHeight(material2, uIBaseInfoLoader2.UVs.height));
                        uIProgressBar.States[1].spriteFrames        = new CSpriteFrame[1];
                        uIProgressBar.States[1].spriteFrames[0]     = new CSpriteFrame();
                        uIProgressBar.States[1].spriteFrames[0].uvs = uvs2;
                        uIProgressBar.animations[1].SetAnim(uIProgressBar.States[1], 1);
                    }
                    uIProgressBar.autoResize = false;
                    uIProgressBar.anchor     = SpriteRoot.ANCHOR_METHOD.UPPER_LEFT;
                    uIProgressBar.PlayAnim(0, 0);
                    uIProgressBar.Value = (float)item.ColumnKey[i];
                    uIListItemContainer.MakeChild(uIProgressBar.gameObject);
                    uIProgressBar.gameObject.transform.localPosition = new Vector3(this.columnRect[i].x, -this.columnRect[i].y, num2);
                }
            }
            return(uIListItemContainer);
        }