Exemplo n.º 1
0
 public override void onShowed()
 {
     if (uiData == null)
     {
         if (current != null)
         {
             current.onShowed();
         }
         else
         {
             tab.setSelectedIndex(0);
             OnSwitch(tab);
         }
     }
     else
     {
         int index = (int)uiData[0];
         if (uiData.Count > 1)
         {
             A3_LegionModel.getInstance().showtype = (int)uiData[1];
         }
         tab.setSelectedIndex(index);
         OnSwitch(tab);
     }
     if (teamList != null && (teamList == current || currentTeam == current))
     {
         TeamProxy.getInstance().SetTeamPanelInfo();
     }
     if (GRMap.GAME_CAMERA != null)
     {
         GRMap.GAME_CAMERA.SetActive(false);
     }
     Toclose = false;
     UiEventCenter.getInstance().onWinOpen(uiName);
 }
Exemplo n.º 2
0
 private void timeGo()
 {
     base.gameObject.SetActive(false);
     UiEventCenter.getInstance().onWinClosed(this.uiName);
     a3_task_auto.instance.stopAuto = false;
     this.is_show = false;
 }
Exemplo n.º 3
0
 public override void onShowed()
 {
     Refresh();
     A3_RankProxy.getInstance().addEventListener(A3_RankProxy.RANKADDLV, Refresh);
     A3_RankProxy.getInstance().addEventListener(A3_RankProxy.RANKREFRESH, Refresh);
     UiEventCenter.getInstance().onWinOpen(uiName);
 }
Exemplo n.º 4
0
        public override void onShowed()
        {
            instance = this;
            // getGameObjectByPath("linePanel").SetActive(false);
            firstRun = true;
            tab.setSelectedIndex(1, true);
            TickMgr.instance.addTick(tick);
            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_FUNCTIONBAR);
            GRMap.GAME_CAMERA.SetActive(false);
            m_goWorldmap.transform.FindChild("map/box_dxc").gameObject.SetActive(false);
            m_goWorldmap.transform.FindChild("map/box_ahsd").gameObject.SetActive(false);

            if (InterfaceMgr.getInstance().worldmap == true)
            {
                // m_goWorldmap.SetActive(true);

                //Debug.LogError("tttt");
                //changetab(0);
                tab.setSelectedIndex(0);
                //goTabrole.SetActive(false);
                //transform.FindChild("tab/world").gameObject
                //transform.FindChild("tab/world").GetComponent<Button>().interactable = true;
                //transform.FindChild("tab/map").GetComponent<Button>().interactable = false;
                //tab.create(getGameObjectByPath("tab"), gameObject, 0, 0, true);
                InterfaceMgr.getInstance().worldmap = false;
            }
            UiEventCenter.getInstance().onWinOpen(uiName);
        }
Exemplo n.º 5
0
        public override void onShowed()
        {
            if (getInstance == null)
            {
                return;
            }
            if (uiData != null && uiData.Count > 0)
            {
                int tpid = -1;
                if (uiData.Count > 1)
                {
                    tpid = (int)uiData[1];
                }

                onTab((string)uiData[0], tpid);
            }
            else
            {
                if (model.GetSummons().Count <= 0)
                {
                    onTab("tujian");
                }
                else
                {
                    onTab("shuxing");
                }
            }

            refresh_summon_list();

            UiEventCenter.getInstance().onWinOpen(uiName);
        }
Exemplo n.º 6
0
        void timeGo()
        {
            this.gameObject.SetActive(false);

            //触发新手指引
            UiEventCenter.getInstance().onWinClosed(uiName);
            a3_task_auto.instance.stopAuto     = false;
            a3_liteMinimap.instance.ZidongTask = false;
        }
Exemplo n.º 7
0
 public override void onClosed()
 {
     if (obj != null)
     {
         obj.SetActive(true);
     }
     //触发新手指引
     UiEventCenter.getInstance().onWinClosed(uiName);
 }
Exemplo n.º 8
0
        IEnumerator timeGo()
        {
            yield return(new WaitForSeconds(2.0f));

            this.gameObject.SetActive(false);
            if (PlayerModel.getInstance().up_lvl > 0 && PlayerModel.getInstance().pt_att > 0)
            {
                UiEventCenter.getInstance().onAddPoint();
            }
            FunctionOpenMgr.instance.onLvUp((int)PlayerModel.getInstance().up_lvl, (int)PlayerModel.getInstance().lvl, true);
        }
 public override void onShowed()
 {
     instance = this;
     RefreshHint();
     tab.setSelectedIndex(0);
     Refresh_huoyue_infos();
     Resresh_reward();
     a3_activeOnlineProxy.getInstance().addEventListener(a3_activeOnlineProxy.ACTIVELOTTERY, RefreshLottery);
     a3_activeOnlineProxy.getInstance().addEventListener(a3_activeOnlineProxy.ACTIVELOTTERYOVER, lotteryoner);
     UiEventCenter.getInstance().onWinOpen(uiName);
 }
Exemplo n.º 10
0
        private IEnumerator timeGo()
        {
            yield return(new WaitForSeconds(2f));

            this.gameObject.SetActive(false);
            bool flag = ModelBase <PlayerModel> .getInstance().up_lvl > 0u && ModelBase <PlayerModel> .getInstance().pt_att > 0;

            if (flag)
            {
                UiEventCenter.getInstance().onAddPoint();
            }
            FunctionOpenMgr.instance.onLvUp((int)ModelBase <PlayerModel> .getInstance().up_lvl, (int)ModelBase <PlayerModel> .getInstance().lvl, true);
            yield break;
        }
Exemplo n.º 11
0
        public override void onShowed()
        {
            instance = this;

            (CrossApp.singleton.getPlugin("processManager") as processManager).addProcess(process);

            A3_WingProxy.getInstance().addEventListener(A3_WingProxy.ON_STAGE_CHANGE, OnStageChange);

            A3_WingProxy.getInstance().addEventListener(A3_WingProxy.ON_SHOW_CHANGE, OnShowStageChange);
            A3_WingProxy.getInstance().addEventListener(A3_WingProxy.ON_STAGE_DIFT, OnStageNO);
            A3_WingProxy.getInstance().addEventListener(A3_WingProxy.ON_LEVEL_EXP_CHANGE, OnLevelExpChange);
            A3_WingProxy.getInstance().addEventListener(A3_WingProxy.ON_LEVEL_AUTO_UPGRADE, OnLevelExpChange);
            int curStage  = wingModel.Stage;
            int curLevel  = wingModel.Level;
            int showStage = wingModel.ShowStage;

            ShowStage_yuxuan = 0;
            curWing          = wingModel.dicWingsData[curStage];
            WingsData sData = wingModel.dicWingsData[curStage];

            InitExpSlider(wingModel.Stage, wingModel.Level, wingModel.Exp);

            CreatAllWingsIcon(curStage);

            ShowTitle(sData);
            RefreshAtt(curStage, curLevel);
            RefreshStar(curLevel);
            RefreshCostInfo(wingModel.Stage, wingModel.Level);
            OnSetIconBGImage(showStage);

            OnStageSliderSetting(curWing);
            RefreshPanel(curStage, curLevel);
            ShowPage(pageIndex);

            InitExpState();
            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_FUNCTIONBAR);
            transform.FindChild("ig_bg_bg").gameObject.SetActive(false);
            base.onShowed();

            GRMap.GAME_CAMERA.SetActive(false);

            CreatWingAvatar();

            UiEventCenter.getInstance().onWinOpen(uiName);
            setNeedNum_lvl();
            setNeedNum_stage();
            //CancelInvoke("showCam");
            //Invoke("showCam", 0.2f);
        }
Exemplo n.º 12
0
    public static void ResetAfterLoginCam()
    {
        InterfaceMgr.getInstance().DisposeUI(InterfaceMgr.RETURN_BT);
        GameObject.Destroy(m_curLoginCamObj.gameObject);

        m_curGameObj.SetActive(true);
        InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_NORMAL);
        NpcMgr.instance.can_touch = true;

        //用于新手指引第一个任务
        if (GameObject.Find("a3_everydayLogin(Clone)") == null)
        {
            UiEventCenter.getInstance().onWinClosed("a3_everydayLogin");
        }
    }
Exemplo n.º 13
0
 public override void onShowed()
 {
     if (uiData == null)
     {
         tc.setSelectedIndex(0, true);
     }
     else
     {
         int index = (int)uiData[0];
         tc.setSelectedIndex(index, true);
     }
     GRMap.GAME_CAMERA.SetActive(false);
     UiEventCenter.getInstance().onWinOpen(uiName);
     A3_RankProxy.getInstance().sendProxy(A3_RankProxy.ON_GET_ACHIEVEMENT_PRIZE);//获取玩家成就信息
 }
Exemplo n.º 14
0
        public override void onShowed()
        {
            instance = this;
            helpcon.SetActive(false);
            if (GRMap.GAME_CAMERA != null)
            {
                GRMap.GAME_CAMERA.SetActive(false);
            }

            scrollview_h_name.GetComponent <ScrollRect>().verticalNormalizedPosition = 1;
            divine_soul_nums();

            createAvatar();
            showAvatar(1);//默认第一个
            UiEventCenter.getInstance().onWinOpen(uiName);
        }
Exemplo n.º 15
0
 public override void onShowed()
 {
     this.transform.SetAsLastSibling();
     mojing_num          = 0;
     shengguanghuiji_num = 0;
     mifageli_num        = 0;
     //OnLoadItem_fenjie();
     foreach (int t in a3_BagModel.getInstance().jilu)
     {
         if (t == 1)
         {
             white.isOn = true; EquipsSureSell(1); OnLoadItem_fenjie();
         }
         if (t == 2)
         {
             green.isOn = true; EquipsSureSell(2); OnLoadItem_fenjie();
         }
         if (t == 3)
         {
             blue.isOn = true; EquipsSureSell(3); OnLoadItem_fenjie();
         }
         if (t == 4)
         {
             purple.isOn = true; EquipsSureSell(4); OnLoadItem_fenjie();
         }
         if (t == 5)
         {
             orange.isOn = true; EquipsSureSell(5); OnLoadItem_fenjie();
         }
         if (t == 6)
         {
             red.isOn = true; EquipsSureSell(6); OnLoadItem_fenjie();
         }
         if (t == 7)
         {
             save.isOn = true; save_fenjie(); Save();
         }
     }
     if (a3_BagModel.getInstance().jilu.Count <= 0)
     {
         white.isOn = false; green.isOn = false; blue.isOn = false; purple.isOn = false; orange.isOn = false; red.isOn = false;
     }
     UiEventCenter.getInstance().onWinOpen(uiName);
 }
Exemplo n.º 16
0
        public override void onShowed()
        {
            A3_PetProxy.getInstance().addEventListener(A3_PetProxy.EVENT_GET_LAST_TIME, getlastTime);
            //A3_PetProxy.getInstance().addEventListener(A3_PetProxy.EVENT_GET_PET, getPet);
            A3_PetProxy.getInstance().addEventListener(A3_PetProxy.EVENT_SHOW_PET, showPet);
            A3_PetProxy.getInstance().addEventListener(A3_PetProxy.EVENT_FEED_PET, feedPet);
            A3_PetProxy.getInstance().addEventListener(A3_PetProxy.EVENT_HAVE_PET, havePet);
            toback = false;
            UIClient.instance.addEventListener(UI_EVENT.ON_MONEY_CHANGE, onMoneyChange);
            refreshMoney();
            refreshGold();
            refreshGift();
            petgo.createAvatar();
            petgo.creatPetAvatar(petid);
            petgo.canshow = true;
            if (A3_PetModel.showbuy)
            {
                getGameObjectByPath("buyshow").SetActive(true);
            }
            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_FUNCTIONBAR);
            GRMap.GAME_CAMERA.SetActive(false);

            List <int> lst = new List <int>();

            lst.Clear();
            for (int i = 0; i < A3_PetModel.getInstance().petId.Count; i++)
            {
                lst.Add(A3_PetModel.getInstance().petId[i]);
            }
            if (lst.Contains(petid))
            {
                chosenpetBtnOnClick(transform.FindChild("scoll/cont/" + petid + "/icon_bg/icon").gameObject, false);
            }
            else
            {
                chosenpetBtnOnClick(transform.FindChild("scoll/cont/" + petid + "/lock").gameObject, true);
            }



            UiEventCenter.getInstance().onWinOpen(uiName);
        }
Exemplo n.º 17
0
        public override void onClosed()
        {
            if (!showed)
            {
                return;
            }
            showed = false;



            instance = null;
            bga.gameObject.SetActive(true);
            curState = 0;
            _handle  = null;

            UiEventCenter.getInstance().onMapChanged();



            base.onClosed();
        }
Exemplo n.º 18
0
        public override void onShowed()
        {
            Toclose = false;
            goback  = false;
            if (uiData != null && uiData.Count > 0)
            {
                string n = (string)uiData[0];
                onTab(n);
            }
            else
            {
                for (int i = 0; i < Con_view.transform.childCount; i++)
                {
                    if (Con_view.transform.GetChild(i).gameObject.activeSelf)
                    {
                        onTab(Con_view.transform.GetChild(i).gameObject.name);
                        break;
                    }
                }
            }

            UiEventCenter.getInstance().onWinOpen(uiName);
        }
Exemplo n.º 19
0
        public override void onShowed()
        {
            if (skill_a3._instance && skill_a3._instance.toshilian)
            {
                InterfaceMgr.getInstance().close(InterfaceMgr.SKILL_A3);
            }
            //into_God();
            //into_per();
            if (FunctionOpenMgr.instance.Check(FunctionOpenMgr.JL_SL))
            {
                getGameObjectByPath("btn/lockp").SetActive(false);
            }
            else
            {
                getGameObjectByPath("btn/lockp").SetActive(true);
            }
            A3_ygyiwuProxy.getInstance().addEventListener(A3_ygyiwuProxy.EVENT_YWINFO, refreshinfo);
            A3_ygyiwuProxy.getInstance().addEventListener(A3_ygyiwuProxy.EVENT_ZHISHIINFO, refoMy_yiwu);
            A3_ygyiwuProxy.getInstance().SendYGinfo(1);
            CloseIndex = 0;

            if (uiData != null && uiData.Count > 0)
            {
                index = (int)uiData[0];
            }
            else
            {
                index = 0;
            }
            ref_topText();
            GRMap.GAME_CAMERA.SetActive(false);
            InterfaceMgr.getInstance().changeState(InterfaceMgr.STATE_FUNCTIONBAR);
            transform.FindChild("ig_bg_bg").gameObject.SetActive(false);
            createAvatar();
            UiEventCenter.getInstance().onWinOpen(uiName);
            showIconHint();
        }
Exemplo n.º 20
0
        public override void onShowed()
        {
            isShowCompelet = true;

            SetState(false, InterfaceMgr.STATE_FUNCTIONBAR);

            CreatAvatar();

            if (_instance == null)
            {
                var id = A3_RideModel.getInstance().GetRideInfo().dress;

                CreatRideAvatar((int)id);

                _instance = this;
            }

            if (tab == null)
            {
                SetTabControl();
            }

            else
            {
                tab.setSelectedIndex(defaulSelect == -1 ? 0 : 0, true);
            }

            rideInfo.OnAddEventListener();
            rideModel.OnAddEventListener();
            rideWakan.OnAddEventListener();

            _rideAvatarMapping = new Dictionary <string, GameObject>();
            checkRideWakan();
            UiEventCenter.getInstance().onWinOpen(uiName);
            base.onShowed();
        }
Exemplo n.º 21
0
 override public void removeListener()
 {
     UiEventCenter.getInstance().removeEventListener(UiEventCenter.EVENT_FB_WIPEOUT_OVER, handle);
 }
Exemplo n.º 22
0
 public override void addListener()
 {
     UiEventCenter.getInstance().addEventListener(UiEventCenter.EVENT_WIN_CLOSE, new Action <GameEvent>(this.dohandle));
 }
Exemplo n.º 23
0
 public override void removeListener()
 {
     UiEventCenter.getInstance().removeEventListener(UiEventCenter.EVENT_FB_INITED, new Action <GameEvent>(this.handle));
 }
Exemplo n.º 24
0
 public override void addListener()
 {
     UiEventCenter.getInstance().addEventListener(UiEventCenter.EVENT_MAP_CHANGED, new Action <GameEvent>(this.handle));
 }
Exemplo n.º 25
0
 override public void removeListener()
 {
     UiEventCenter.getInstance().removeEventListener(UiEventCenter.EVENT_WIN_OPEN, doHandle);
 }
Exemplo n.º 26
0
 public override void addListener()
 {
     UiEventCenter.getInstance().addEventListener(UiEventCenter.EVENT_FB_WIPEOUT_OVER, new Action <GameEvent>(this.handle));
 }
Exemplo n.º 27
0
 override public void removeListener()
 {
     UiEventCenter.getInstance().removeEventListener(UiEventCenter.EVENT_FB_INITED, handle);
 }
Exemplo n.º 28
0
 override public void addListener()
 {
     UiEventCenter.getInstance().addEventListener(UiEventCenter.EVENT_FB_ANI_OVER, handle);
 }
Exemplo n.º 29
0
 public override void removeListener()
 {
     UiEventCenter.getInstance().removeEventListener(UiEventCenter.EVENT_WIN_OPEN, new Action <GameEvent>(this.doHandle));
 }
Exemplo n.º 30
0
 public override void removeListener()
 {
     UiEventCenter.getInstance().removeEventListener(UiEventCenter.EVENT_ADD_POINT, new Action <GameEvent>(base.onHanlde));
 }