Esempio n. 1
0
    private void ClickSell(IUIObject obj)
    {
        GS_POINT_BUY_REQ gS_POINT_BUY_REQ = new GS_POINT_BUY_REQ();

        if (this.m_eType == ExchangePointDlg.TYPE.TYPE_TICKET)
        {
            gS_POINT_BUY_REQ.nType       = 0;
            gS_POINT_BUY_REQ.nItemUnique = this.m_nSelectItemUnique;
            gS_POINT_BUY_REQ.nItemNum    = (long)this.m_nSelectItemNum;
        }
        else if (this.m_eType == ExchangePointDlg.TYPE.TYPE_EQUIPITEM)
        {
            bool flag = false;
            gS_POINT_BUY_REQ.nType = 1;
            for (int i = 0; i < 10; i++)
            {
                if (0L < this.m_nRemoveItemID[i])
                {
                    gS_POINT_BUY_REQ.nItemID[i] = this.m_nRemoveItemID[i];
                    ITEM itemFromItemID = NkUserInventory.instance.GetItemFromItemID(this.m_nRemoveItemID[i]);
                    if (itemFromItemID != null)
                    {
                        if (itemFromItemID.IsLock())
                        {
                            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("726"), SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE_GREEN);
                        }
                        else
                        {
                            int num = itemFromItemID.m_nOption[2];
                            if (num >= 4)
                            {
                                flag = true;
                            }
                        }
                    }
                }
                else
                {
                    gS_POINT_BUY_REQ.nItemID[i] = 0L;
                }
            }
            if (flag)
            {
                string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2251");

                string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("198");

                MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

                if (msgBoxUI != null)
                {
                    msgBoxUI.SetMsg(new YesDelegate(this.MsgBoxOKEvent), gS_POINT_BUY_REQ, null, null, textFromInterface, textFromMessageBox, eMsgType.MB_OK_CANCEL);
                    return;
                }
            }
        }
        SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_POINT_BUY_REQ, gS_POINT_BUY_REQ);
        TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "ETC", "COMMON-SUCCESS", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay));
    }
Esempio n. 2
0
    public void SelectItem()
    {
        UIListItemContainer selectItem = this.m_nlbItemList.GetSelectItem();

        if (null == selectItem)
        {
            return;
        }
        if (selectItem.Data == null)
        {
            return;
        }
        if (this.m_eAuctionRegisterType == AuctionDefine.eAUCTIONREGISTERTYPE.eAUCTIONREGISTERTYPE_ITEM)
        {
            ITEM iTEM = selectItem.data as ITEM;
            if (iTEM.IsLock())
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("726"), SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE_GREEN);
                return;
            }
            AuctionMainDlg auctionMainDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.AUCTION_MAIN_DLG) as AuctionMainDlg;

            if (auctionMainDlg != null)
            {
                auctionMainDlg.SetSelectItem(iTEM);
            }
        }
        else if (this.m_eAuctionRegisterType == AuctionDefine.eAUCTIONREGISTERTYPE.eAUCTIONREGISTERTYPE_SOL)
        {
            NkSoldierInfo nkSoldierInfo = selectItem.data as NkSoldierInfo;
            if (nkSoldierInfo.IsAtbCommonFlag(1L))
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("879"), SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE_GREEN);
            }
            else
            {
                AuctionMainDlg auctionMainDlg2 = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.AUCTION_MAIN_DLG) as AuctionMainDlg;

                if (auctionMainDlg2 != null)
                {
                    auctionMainDlg2.SetSelectSol(nkSoldierInfo);
                }
            }
        }
        NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.AUCTION_ITEMSELECT_DLG);
    }
Esempio n. 3
0
    public void SetAddItemInfo(ITEM InvenItem, ITEMINFO Iteminfo)
    {
        NewListItem newListItem   = new NewListItem(this.m_nlbItemList.ColumnNum, true, string.Empty);
        string      rankColorName = NrTSingleton <ItemManager> .Instance.GetRankColorName(InvenItem);

        newListItem.SetListItemData(0, true);
        newListItem.SetListItemData(1, InvenItem, null, null, null);
        newListItem.SetListItemData(2, rankColorName, null, null, null);
        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1026"),
            "count",
            InvenItem.m_nOption[7]
        });

        newListItem.SetListItemData(3, this.m_strText, null, null, null);
        newListItem.SetListItemData(4, string.Empty, null, new EZValueChangedDelegate(this.ClickDetailInfo), null);
        newListItem.SetListItemData(5, InvenItem.IsLock());
        newListItem.Data = InvenItem;
        this.m_nlbItemList.Add(newListItem);
    }
    private void ClickSell(IUIObject obj)
    {
        if (this.m_itSelectItem != null)
        {
            ITEM iTEM = this.m_itSelectItem.Data as ITEM;
            if (iTEM != null && iTEM.IsLock())
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("726"), SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE_GREEN);
                return;
            }
        }
        GS_EXCHANGE_JEWELRY_REQ gS_EXCHANGE_JEWELRY_REQ = new GS_EXCHANGE_JEWELRY_REQ();

        gS_EXCHANGE_JEWELRY_REQ.nIDX        = this.m_nSelectItemIDX;
        gS_EXCHANGE_JEWELRY_REQ.nType       = (int)this.m_eType;
        gS_EXCHANGE_JEWELRY_REQ.nItemUnique = this.m_nSelectItemUnique;
        gS_EXCHANGE_JEWELRY_REQ.nItemNum    = this.m_nGetItemNum;
        gS_EXCHANGE_JEWELRY_REQ.nSelectNum  = this.m_nSelectItemNum;
        string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2257");

        string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("204");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref textFromMessageBox, new object[]
        {
            textFromMessageBox,
            "targetname",
            NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(this.m_nSelectItemUnique),
            "count",
            this.m_nGetItemNum
        });

        MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

        if (msgBoxUI != null)
        {
            msgBoxUI.SetMsg(new YesDelegate(this.BuyItem), gS_EXCHANGE_JEWELRY_REQ, null, null, textFromInterface, textFromMessageBox, eMsgType.MB_OK_CANCEL);
        }
    }
Esempio n. 5
0
    private void ClickSell(IUIObject obj)
    {
        if (this.m_kSelectItem != null)
        {
            ITEM iTEM = this.m_kSelectItem.Data as ITEM;
            if (iTEM != null && iTEM.IsLock())
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("726"), SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE_GREEN);
                return;
            }
        }
        GuildWarExchangeTable guildWarExchangeTable = (GuildWarExchangeTable)this.m_kSelectItem.Data;

        if (guildWarExchangeTable == null)
        {
            return;
        }
        if (this.m_GuildWar_Exchange_Limit.ContainsKey(this.m_nSelectItemUnique) && this.m_GuildWar_Exchange_Limit[this.m_nSelectItemUnique].i32ExchangeLimit == 0)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("842"), SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE_GREEN);
            return;
        }
        if (guildWarExchangeTable.m_nExchangeLimit != -1)
        {
            if (this.m_GuildWar_Exchange_Limit.ContainsKey(this.m_nSelectItemUnique))
            {
                if (this.m_nSelectItemNum > this.m_GuildWar_Exchange_Limit[this.m_nSelectItemUnique].i32ExchangeLimit)
                {
                    Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("841"), SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE_GREEN);
                    return;
                }
            }
            else if (this.m_nSelectItemNum > guildWarExchangeTable.m_nExchangeLimit)
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("841"), SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE_GREEN);
                return;
            }
        }
        GS_EXCHANGE_GUILDWAR_CHECK_REQ gS_EXCHANGE_GUILDWAR_CHECK_REQ = new GS_EXCHANGE_GUILDWAR_CHECK_REQ();

        gS_EXCHANGE_GUILDWAR_CHECK_REQ.nItemUnique = this.m_nSelectItemUnique;
        gS_EXCHANGE_GUILDWAR_CHECK_REQ.nItemNum    = this.m_nSelectItemNum;
        string textFromInterface = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2257");

        string textFromMessageBox = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("204");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref textFromMessageBox, new object[]
        {
            textFromMessageBox,
            "targetname",
            NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(this.m_nSelectItemUnique),
            "count",
            this.m_nSelectItemNum
        });

        MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

        if (msgBoxUI != null)
        {
            msgBoxUI.SetMsg(new YesDelegate(this.BuyItem), gS_EXCHANGE_GUILDWAR_CHECK_REQ, null, null, textFromInterface, textFromMessageBox, eMsgType.MB_OK_CANCEL);
        }
    }
Esempio n. 6
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);
        }