예제 #1
0
    public void OnPopChange()
    {
        TimerManager.Instance.AddTimer(100, (seq) => {
            if (Data.noder != null)
            {
                m_lblOK.text = m_poplist.GetSelect();
                pickType     = (PickType)m_poplist.GetIndex();

                Debug.Log("pickType: " + pickType);

                Dialog.Instance.Show(10085, () =>
                {
                    NetCommand.Instance.StateOder(Data.noder.id.ToString(), (int)pickType, (str) =>
                    {
                        if (pickType == PickType.CANCEL)
                        {
                            Toast.Instance.Show(10086);
                        }
                        else
                        {
                            Toast.Instance.Show(10087);
                        }
                        GameBaseInfo.Instance.UpdateOrders((success) =>
                                                           NGUITools.FindInParents <OrderPage>(gameObject).RefreshList());
                    });
                }, () =>
                {
                    m_lblOK.text = m_poplist.items [0];
                    pickType     = PickType.SELF;
                });
            }
        });
    }
예제 #2
0
 public void OnPopChange()
 {
     m_type.text = m_poplist.GetSelect();
     pickType    = (PickType)m_poplist.GetIndex();
 }
예제 #3
0
 public void OnPopChange()
 {
     m_lblBase.text = m_poplist.GetSelect();
     m_Select       = m_poplist.GetIndex();
 }