コード例 #1
0
ファイル: ItemSellDlg.cs プロジェクト: parikharsh/GLOH_Source
    public void SetMultiItemBreakInfo(List <ITEM> l_cItem, ITEM TopItem, bool bRankItem, int ItemUnique, int ExpectMin, int ExpectMax)
    {
        if (TopItem == null || TopItem.m_nItemUnique <= 0)
        {
            return;
        }
        base.SetShowLayer(1, false);
        base.SetShowLayer(2, true);
        this.m_bSellOK.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("420"));
        this.m_bSellOK.RemoveValueChangedDelegate(new EZValueChangedDelegate(this.OnSellOKCheck));
        this.m_bSellOK.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnItemBreakOK));
        this.m_lTitle.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2958"));
        this.m_lBubbleText.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2959"));
        this.m_cAllItem  = l_cItem;
        this.m_bRankItem = bRankItem;
        this.m_cItem     = null;
        this.m_iItemIcon.SetItemTexture(TopItem);
        this.m_iItemIcon.c_cItemTooltip = TopItem;
        this.m_dIconBack.SetTexture(TopItem.GetRankImage());
        this.m_lItemName.Text = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(TopItem);

        string empty = string.Empty;
        int    num   = l_cItem.Count - 1;

        if (num > 0)
        {
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("295"),
                "count",
                num.ToString()
            });

            this.m_lItemCount.SetText(empty);
        }
        else
        {
            this.m_lItemCount.SetText(string.Empty);
        }
        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2951"),
            "itemname",
            NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(ItemUnique),
            "min",
            ExpectMin,
            "max",
            ExpectMax
        });

        this.m_lExpectNum.SetText(empty);
        this.m_dNpcImg.SetTexture(eCharImageType.LARGE, 242, -1, string.Empty);
    }
コード例 #2
0
ファイル: ItemSellDlg.cs プロジェクト: parikharsh/GLOH_Source
    public void SetMultiItemSellInfo(List <ITEM> l_cItem, int nAllMoney, ITEM TopItem, bool bRankItem)
    {
        if (TopItem == null || TopItem.m_nItemUnique <= 0)
        {
            return;
        }
        this.m_cAllItem      = l_cItem;
        this.m_nAllItemMoney = nAllMoney;
        this.m_bRankItem     = bRankItem;
        this.m_cItem         = null;
        this.m_iItemIcon.SetItemTexture(TopItem);
        this.m_iItemIcon.c_cItemTooltip = TopItem;
        this.m_dIconBack.SetTexture(TopItem.GetRankImage());
        this.m_lItemName.Text = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(TopItem);

        this.m_lSellGold.Text = Protocol_Item.Money_Format((long)nAllMoney);
        string empty = string.Empty;
        int    num   = l_cItem.Count - 1;

        if (num > 0)
        {
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("295"),
                "count",
                num.ToString()
            });

            this.m_lItemCount.SetText(empty);
        }
        else
        {
            this.m_lItemCount.SetText(string.Empty);
        }
        this.m_dNpcImg.SetTexture(eCharImageType.LARGE, 242, -1, string.Empty);
    }