//判断 7天奖励 还是 每日签到
    public void ShowEveryDayNotice()
    {
        if (Core.Data.guideManger.isGuiding)
        {
            Debug.Log("GUide   is not  over  ");
            return;
        }

        if (NoticeManager.openAnnounce == true)
        {
            WXLAcitvityFactory.CreatActivity(ActivityItemType.gonggaoItem, null);
            NoticeManager.openAnnounce = false;
        }
        else
        {
            if (NoticeManager.openSign == true)
            {
//				if (NoticeManager.firstShowState == 1)
//				{
//                    //	UISevenDayRewardMain.OpenUI ();
//				}
//				else
                if (NoticeManager.firstShowState == 2)
                {
                    WXLAcitvityFactory.CreatActivity(ActivityItemType.qiandaoItem, (object)_TopRoot);
                }
                NoticeManager.openSign = false;
            }
        }
    }
Beispiel #2
0
 void UIInformationSure()
 {
     if (UICityFloorManager.Instance != null)
     {
         UICityFloorManager.Instance.gameObject.SetActive(false);
     }
     WXLAcitvityFactory.CreatActivity(ActivityItemType.levelRewardItem, DBUIController.mDBUIInstance._TopRoot, LevelRewardCallBack);
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="type">Type. 1 : bottom, 2: top</param>
 public void WillToMainView(ActivityItemType type, int Pos)
 {
     if (Pos == 1)
     {
         WXLAcitvityFactory.CreatActivity(type, localObj);
     }
     else
     {
         WXLAcitvityFactory.CreatActivity(type, (object)DBUIController.mDBUIInstance._TopRoot);
     }
 }
Beispiel #4
0
    public void Back_OnClick()
    {
        if (NoticeManager.openSign == true)
        {
//            if (NoticeManager.firstShowState == 1) {
//                UISevenDayRewardMain.OpenUI ();
//            } else
            if (NoticeManager.firstShowState == 2)
            {
                WXLAcitvityFactory.CreatActivity(ActivityItemType.qiandaoItem, (object)DBUIController.mDBUIInstance._TopRoot);
            }
        }
        AnnounceMrg.GetInstance().DeleteCell();
        Destroy(gameObject);
    }
    public void OnBtnMainViewID(int ide)
    {    //ide
        if (UIWXLActivityMainController.Instance != null && UIWXLActivityMainController.Instance.active == true && ide != SQYMainController.CLICK_HuoDong)
        {
            UIWXLActivityMainController.Instance.OnBtnClick();
        }

        switch (ide)
        {
        case SQYMainController.CLICK_HaoYou:
            SetViewState(EMViewState.S_Friend);
            break;

        case SQYMainController.CLICK_BeiBao:
            SetViewState(EMViewState.S_Bag, EMBoxType.LOOK_Charator);
            HiddenFor3D_UI();
            break;

        case SQYMainController.CLICK_MONSTER:
            SetViewState(EMViewState.S_Team_NoSelect);
            HiddenFor3D_UI(false);
            break;

        case SQYMainController.CLICK_ShenLong:
        {
            if (Core.Data.playerManager.RTData.curLevel < 15)
            {
                string strText = Core.Data.stringManager.getString(6054);
                strText = strText.Replace("#", "15");
                SQYAlertViewMove.CreateAlertViewMove(strText);
                return;
            }
            SetViewState(EMViewState.S_ShenLong);
        }
        break;

        case SQYMainController.CLICK_RECHARGE:
            UIDragonMallMgr.GetInstance().SetRechargeMainPanelActive();
            break;

        case SQYMainController.CLICK_FuBen:
            SetViewState(EMViewState.S_FuBen);
            break;

        case SQYMainController.CLICK_DuoBao:
            if (Core.Data.playerManager.RTData.curLevel < 10)
            {
                string strText = Core.Data.stringManager.getString(6054);
                strText = strText.Replace("#", "10");
                SQYAlertViewMove.CreateAlertViewMove(strText);
                return;
            }
            SetViewState(EMViewState.S_QiangDuo);
            break;

        case SQYMainController.CLICK_ShangCheng:
            if (!Core.Data.BuildingManager.ZhaoMuUnlock)
            {
                string strText = Core.Data.stringManager.getString(9111);
                strText = string.Format(strText, RED.GetChineseNum(4));
                SQYAlertViewMove.CreateAlertViewMove(strText);
                return;
            }
            SetViewState(EMViewState.S_ShangCheng);
            break;

        case SQYMainController.CLICK_HuoDong:
            //   RED.Log("  in huo dong");
            SetViewState(EMViewState.S_HuoDong);
            break;

        case SQYMainController.CLICK_XiaoXi:
            SetViewState(EMViewState.S_XiaoXi);
            break;

        case SQYMainController.CLICK_QiTianJiangLi:
            GetGiftPanelController.CreateUIRewardPanel(_bottomRoot);
            //WXLAcitvityFactory.CreatActivity (ActivityItemType.DailyGiftPanel,_bottomRoot,null);
            //SetViewState(EMViewState.S_SevenDaysReward);
            break;

        case SQYMainController.CLICK_RollAct:
            RouletteLogic.CreateRouleView();
            break;

        case SQYMainController.CLICK_SuperGift:
            UIBigWheel.OpenUI();
            HiddenFor3D_UI();
            break;

        case SQYMainController.CLICK_HappyScratch:
            UIGuaGuaLeMain.OpenUI();
            HiddenFor3D_UI();
            break;

        case SQYMainController.CLICK_GodGift:
            WXLAcitvityFactory.CreatActivity(ActivityItemType.RollGamblePanel, _bottomRoot, null);
            break;

        case SQYMainController.CLICK_RadarGroup:
            ComLoading.Open();
            //           SetViewState (EMViewState.S_HuoDong);
            ActivityNetController.GetInstance().OutRadarLoginMSG(null, OnGoToRadarGroup);
            break;

        case SQYMainController.CLICK_FIRSTRECHARGE:

            DBUIController.mDBUIInstance.HiddenFor3D_UI(false);
            UIFirstRechargePanel.OpenUI();
            UIFirstRecharge.OpenUI();
            Core.Data.rechargeDataMgr._IsOpenFirstScene = true;
            break;

        case SQYMainController.CLICK_ACTIVITY:

            HolidayActivityLogic._instence();
            break;

        case SQYMainController.CLICK_DragonBank:
            WXLAcitvityFactory.CreatActivity(ActivityItemType.DragonBank, _bottomRoot, null);
            break;
        }
    }
Beispiel #6
0
    protected override void OnEvent(EventTypeDefine p_e, object p_param)
    {
        switch (p_e)
        {
        case EventTypeDefine.Click_Activity:
            DBUIController.mDBUIInstance.OnBtnMainViewID(SQYMainController.CLICK_HuoDong);
            //          UIWXLActivityMainController.Instance.MoveToTarget();
            break;

        case EventTypeDefine.Click_ActivityGiftBag:
            ActivityNetController.GetInstance().GotLevelGiftRequest(Core.Data.playerManager.Lv);
            Core.Data.guideManger.HideGuide();
            break;

        case EventTypeDefine.Click_GetActivityGiftBag:
            //5级奖励包
//            ActivityNetController.GetInstance ().GotLevelGiftRequest (Core.Data.playerManager.Lv);
//            UIGuide.Instance.HideGuide();
            // LevelRewardCollection.OnClickGiftOnGuide ();
            break;

        case EventTypeDefine.Click_HideUIGuide:
            Core.Data.guideManger.HideGuide();
            break;

        case EventTypeDefine.Click_ExitLevelFiveReward:
            UILevelRewardController.Instance.OnBtnBack();
            break;

        case EventTypeDefine.Click_SigninButton:
            UIWXLActivityMainController.Instance.OnQiandao();
            break;

        case EventTypeDefine.Click_GetSigninRewardButton:
            if (UIDateSignController.Instance.ItemList != null)
            {
                int TN = NoticeManager.signtms;
                UIDateSignController.Instance.ItemList [TN].OnClickSignToday();
            }
            Core.Data.guideManger.HideGuide();
            break;

        case EventTypeDefine.Click_CloseSignin:
            UIDateSignController.Instance.OnBackBtn();
            break;

        case EventTypeDefine.Click_DayRewardButton:
            WXLAcitvityFactory.CreatActivity(ActivityItemType.DailyGiftPanel, (object)DBUIController.mDBUIInstance._TopRoot, null);
            break;

        case EventTypeDefine.Click_SevenRewardUI:
            //    ActivityNetController.GetInstance ().GetSevenDayReward ();
            Core.Data.guideManger.HideGuide();
            break;

        case EventTypeDefine.Click_CloseDayRewardPanel:
            DailyGiftController.Instance.OnClickBack();
            break;

        case EventTypeDefine.Sliding_Texture:
            Core.Data.guideManger.HideGuide();
            PVEDownloadCartoonController.Instance.RunToBottom();
            break;

        case EventTypeDefine.Click_CloseTexture:
            PVEDownloadCartoonController.Instance.CloseCartoonPanel();
            break;
        }
    }
Beispiel #7
0
 public void OnBtnGoDailySign()
 {
     WXLAcitvityFactory.CreatActivity(ActivityItemType.qiandaoItem, DBUIController.mDBUIInstance._TopRoot);
 }