Ejemplo n.º 1
0
 public void AddMythicSolTable(MythicSolTable info)
 {
     if (!this.m_kMythicSolTable.ContainsKey(info.m_nIDX))
     {
         this.m_kMythicSolTable.Add(info.m_nIDX, info);
     }
 }
 public override bool ParseDataFromNDT(TsDataReader dr)
 {
     foreach (TsDataReader.Row data in dr)
     {
         MythicSolTable mythicSolTable = new MythicSolTable();
         mythicSolTable.SetData(data);
         NrTSingleton <PointManager> .Instance.AddMythicSolTable(mythicSolTable);
     }
     return(true);
 }
Ejemplo n.º 3
0
    private void ClickAll(IUIObject obj)
    {
        MythicSolTable mythicSolTable = (MythicSolTable)this.m_itSelectItem.Data;

        if (mythicSolTable == null)
        {
            return;
        }
        this.m_nSelectItemNum = this.m_nTicketNum / mythicSolTable.m_nNeedNum;
        this.m_nGetItemNum    = this.m_nSelectItemNum * mythicSolTable.m_nExchangeNum;
        this.m_nUseTicketNum  = this.m_nSelectItemNum * mythicSolTable.m_nNeedNum;
        this.m_tfSellNum.Text = this.m_nGetItemNum.ToString();
        this.Set_UserItemNum();
    }
Ejemplo n.º 4
0
    public void OnInputNumber(InputNumberDlg a_cForm, object a_oObject)
    {
        MythicSolTable mythicSolTable = (MythicSolTable)this.m_itSelectItem.Data;

        if (mythicSolTable == null)
        {
            return;
        }
        long num = a_cForm.GetNum();

        this.m_nSelectItemNum = (int)num;
        this.m_nUseTicketNum  = this.m_nSelectItemNum * mythicSolTable.m_nNeedNum;
        this.m_nGetItemNum    = this.m_nSelectItemNum * mythicSolTable.m_nExchangeNum;
        this.m_tfSellNum.Text = this.m_nGetItemNum.ToString();
        NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.DLG_INPUTNUMBER);

        this.Set_UserItemNum();
    }
Ejemplo n.º 5
0
    private void Set_UserItemNum()
    {
        MythicSolTable mythicSolTable = (MythicSolTable)this.m_itSelectItem.Data;

        if (mythicSolTable == null)
        {
            return;
        }
        this.m_lbName.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromItem(mythicSolTable.m_nNeedItemUnique.ToString());

        string empty = string.Empty;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2272"),
            "count1",
            this.m_nUseTicketNum,
            "count2",
            this.m_nTicketNum
        });

        this.m_lbLimitTicketNum.Text = empty;
    }
Ejemplo n.º 6
0
    private void ClickList(IUIObject obj)
    {
        UIListItemContainer selectedItem = this.m_nlbList.SelectedItem;

        if (null == selectedItem)
        {
            return;
        }
        MythicSolTable mythicSolTable = (MythicSolTable)selectedItem.Data;

        if (mythicSolTable == null)
        {
            return;
        }
        this.m_nTicketNum = NkUserInventory.GetInstance().Get_First_ItemCnt(mythicSolTable.m_nNeedItemUnique);
        this.m_itSelectItem.SetItemTexture(mythicSolTable.m_nItemUnique);
        this.m_itSelectItem.Data  = mythicSolTable;
        this.m_nSelectItemUnique  = mythicSolTable.m_nItemUnique;
        this.m_nSelectItemIDX     = mythicSolTable.m_nIDX;
        this.m_nSelectItemNum     = 1;
        this.m_nGetItemNum        = this.m_nSelectItemNum * mythicSolTable.m_nExchangeNum;
        this.m_nUseTicketNum      = this.m_nSelectItemNum * mythicSolTable.m_nNeedNum;
        this.m_tfSellNum.MaxValue = (long)(this.m_nTicketNum / mythicSolTable.m_nNeedNum * mythicSolTable.m_nExchangeNum);
        if (0L >= this.m_tfSellNum.MaxValue)
        {
            this.m_btnSell.controlIsEnabled = false;
            this.m_nSelectItemNum           = 0;
        }
        else
        {
            this.m_btnSell.controlIsEnabled = true;
        }
        this.m_tfSellNum.Text        = this.m_nGetItemNum.ToString();
        this.m_lbSelectItemName.Text = NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(mythicSolTable.m_nItemUnique);

        this.Set_UserItemNum();
    }
Ejemplo n.º 7
0
    private void ClickSelectItem(IUIObject obj)
    {
        ItemTooltipDlg itemTooltipDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.ITEMTOOLTIP_DLG) as ItemTooltipDlg;

        if (this.m_itSelectItem.Data is ITEM)
        {
            ITEM pkItem = (ITEM)this.m_itSelectItem.Data;
            itemTooltipDlg.Set_Tooltip((G_ID)base.WindowID, pkItem, null, false);
        }
        else if (this.m_itSelectItem.Data is MythicSolTable)
        {
            MythicSolTable mythicSolTable = (MythicSolTable)this.m_itSelectItem.Data;
            ITEM           iTEM           = new ITEM();
            iTEM.Init();
            iTEM.m_nItemUnique = mythicSolTable.m_nItemUnique;
            iTEM.m_nItemNum    = mythicSolTable.m_nExchangeNum;
            itemTooltipDlg.Set_Tooltip((G_ID)base.WindowID, iTEM, null, false);
        }
        else
        {
            Debug.LogError("Can't Find Obj type");
            itemTooltipDlg.Close();
        }
    }