public override void OnShow(object param)
        {
            base.OnShow(param);

            is_fast_buy = false;

            if (null != param)
            {
                is_fast_buy = (bool)param;
            }
            MainPanelInGameUILogic.Show();


            //MessageHandler.RegisterMessageHandler(MessageDefine.MarkeBuyResponse, OnResponse);
            MessageHandler.RegisterMessageHandler(MessageDefine.MarketResponse, OnResponse);
            m_close_btn.AddClickCallBack(btnClose);

            if (!ShopHelper.IsShopDataAvaliable(cate))
            {
                requestData();
            }
            else
            {
                ShopPropData crashdata = ShopHelper.getShopData(cate);
                InitData(crashdata);
            }
        }
Example #2
0
        public override void OnShow(object param)
        {
            base.OnShow(param);
            MainPanelInGameUILogic.Show();
            this.m_btnClose.AddClickCallBack(ClosePanel);
            //SetCloseBtnID("Button_close");
            UserBehaviorStatisticsModules.Instance.LogEvent(UBSEventKeyName.bag_in, 1, null);

            MessageHandler.RegisterMessageHandler(MessageDefine.SCPlayerPropResponse, PlayerPropRequestCallBack);
            MessageHandler.RegisterMessageHandler(MessageDefine.SCPlayerPropRecentResposne, PlayerPropRequestCallBack);
            GameEvents.UIEvents.UI_Bag_Event.OnPropCost       += BagCost;
            GameEvents.UIEvents.UI_Bag_Event.OnItemClick      += OnItemClick;
            GameEvents.UIEvents.UI_Bag_Event.GetCurrentBagType = GetCurrentBagType;
            m_chooseUIEffect.EffectPrefabName = "UI_xuanzhong.prefab";
            m_chooseUIEffect.Visible          = false;
            if (param != null)
            {
                PlayerPropRequestCallBack(param);
            }
            else
            {
                RefreshProps();
            }

            //CommonHelper.UItween(this.m_tweenPos);
        }
Example #3
0
 public override void OnShow(object param)
 {
     base.OnShow(param);
     MainPanelInGameUILogic.Show();
     //for (int i = 0; i < this.tweener.Length; i++)
     //{
     //    this.tweener[i].ResetAndPlay();
     //}
 }
 public override void OnHide()
 {
     base.OnHide();
     MainPanelInGameUILogic.Hide();
     //MessageHandler.UnRegisterMessageHandler(MessageDefine.MarkeBuyResponse, OnResponse);
     MessageHandler.UnRegisterMessageHandler(MessageDefine.MarketResponse, OnResponse);
     m_close_btn.RemoveClickCallBack(btnClose);
     m_grid_com.Clear();
 }
Example #5
0
        public override void OnHide()
        {
            base.OnHide();
            MainPanelInGameUILogic.Hide();
            this.m_ChooseEffect.Visible = false;

            m_curType  = ShopType.Prop;
            m_lastType = ShopType.None;
        }
Example #6
0
        //public override void OnShow(object param)
        //{

        //    if (param != null)
        //    {
        //        m_propdata = (ShopPropData)param;
        //    }

        //    base.OnShow(param);



        //    MainPanelInGameUILogic.Show();
        //    SetCloseBtnID("Button_close");



        //    m_ChooseEffect.EffectPrefabName = "UI_xuanzhong_shangcheng.prefab";
        //}

        public override void OnShow(object param)
        {
            m_propdata  = ShopHelper.getShopData(Category.Common);
            m_blackdata = ShopHelper.getShopData(Category.Black);

            base.OnShow(param);

            MainPanelInGameUILogic.Show();
            SetCloseBtnID("Button_close");



            m_ChooseEffect.EffectPrefabName = "UI_xuanzhong_shangcheng.prefab";
        }
Example #7
0
 public override void OnHide()
 {
     base.OnHide();
     MainPanelInGameUILogic.Hide();
     this.m_btnClose.RemoveClickCallBack(ClosePanel);
     MessageHandler.UnRegisterMessageHandler(MessageDefine.SCPlayerPropResponse, PlayerPropRequestCallBack);
     MessageHandler.UnRegisterMessageHandler(MessageDefine.SCPlayerPropRecentResposne, PlayerPropRequestCallBack);
     GameEvents.UIEvents.UI_Bag_Event.OnPropCost  -= BagCost;
     GameEvents.UIEvents.UI_Bag_Event.OnItemClick -= OnItemClick;
     m_CurrentBagType    = BagTypeEnum.Total;
     m_LastBagType       = BagTypeEnum.None;
     m_curPropData       = null;
     m_recentPropData    = null;
     m_needClearRecently = false;
 }
Example #8
0
 public override void OnHide()
 {
     base.OnHide();
     MainPanelInGameUILogic.Hide();
 }