コード例 #1
0
    private void Click_Number(IUIObject _obj)
    {
        InputNumberDlg inputNumberDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.DLG_INPUTNUMBER) as InputNumberDlg;

        inputNumberDlg.SetCallback(new Action <InputNumberDlg, object>(this.On_InputData), null, new Action <InputNumberDlg, object>(this.OnClose_InputNumber), null);
        inputNumberDlg.SetMinMax(1L, (long)this.m_nMaxItemNum);
        inputNumberDlg.SetNum((long)this.m_nCurItemNum);
        inputNumberDlg.SetLocation(inputNumberDlg.GetLocationX(), inputNumberDlg.GetLocationY(), base.GetLocation().z - 2f);
    }
コード例 #2
0
    public void BtClickInputOpenItem(IUIObject obj)
    {
        if (this.m_eShowType == ItemBoxContinue_Dlg.SHOW_TYPE.ITEM_EXCHANGE)
        {
            return;
        }
        InputNumberDlg inputNumberDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.DLG_INPUTNUMBER) as InputNumberDlg;

        inputNumberDlg.SetCallback(new Action <InputNumberDlg, object>(this.On_InputData), null, new Action <InputNumberDlg, object>(this.On_Close_InputNumber), null);
        inputNumberDlg.SetMinMax(1L, (long)this.GetMaxItem());
        inputNumberDlg.SetNum((long)this.m_nItemOpenCount);
        inputNumberDlg.SetLocation(inputNumberDlg.GetLocationX(), inputNumberDlg.GetLocationY(), base.GetLocation().z - 2f);
    }