Beispiel #1
0
    public override void ShowGUI()
    {
        Time.timeScale = 1f;
        GameObject gameObject = GUIManager.LoadCommonGUI("Parts/PartsMenu", base.gameObject);

        gameObject.transform.localPosition = new Vector3(0f, 0f, -300f);
        this.partsMenu = gameObject.GetComponent <PartsMenu>();
        this.CreateHomeUI();
        this.ServerRequest();
    }
Beispiel #2
0
    protected virtual IEnumerator CreateHomeData()
    {
        GUIPlayerStatus.RefreshParams_S(false);
        ClassSingleton <GUIMonsterIconList> .Instance.RefreshList(MonsterDataMng.Instance().GetMonsterDataList());

        ClassSingleton <FaceMissionAccessor> .Instance.faceMission.MissionTapCheck();

        ClassSingleton <FaceMissionAccessor> .Instance.faceMission.SetBadge(false);

        ClassSingleton <FacePresentAccessor> .Instance.facePresent.SetBadgeOnly();

        ClassSingleton <FaceNewsAccessor> .Instance.faceNews.SetBadgeOnly();

        ClassSingleton <PartsMenuFriendIconAccessor> .Instance.partsMenuFriendIcon.FrinedListCheck();

        if (ConstValue.IS_CHAT_OPEN != 1)
        {
            ClassSingleton <FaceChatNotificationAccessor> .Instance.faceChatNotification.gameObject.SetActive(false);
        }
        GUIFace.SetFacilityShopButtonBadge();
        PartsMenu.SetMenuButtonAlertBadge();
        this.DownloadMenuBanner();
        while (!TextureManager.instance.isLoadSaveData)
        {
            yield return(null);
        }
        GameWebAPI.RespDataCM_LoginBonus respDataCM_LoginBonus = DataMng.Instance().RespDataCM_LoginBonus;
        if (respDataCM_LoginBonus.loginBonus != null && respDataCM_LoginBonus.loginBonus.campaign != null)
        {
            GameWebAPI.RespDataCM_LoginBonus.LoginBonus[] campaign2 = respDataCM_LoginBonus.loginBonus.campaign;
            for (int i = 0; i < campaign2.Length; i++)
            {
                GameWebAPI.RespDataCM_LoginBonus.LoginBonus campaign = campaign2[i];
                bool   isLoadEnd = false;
                string path      = CMD_LoginCampaign.GetBgPathForFTP(campaign.backgroundImg);
                TextureManager.instance.Load(path, delegate(Texture2D texture)
                {
                    isLoadEnd = true;
                }, 30f, true);
                while (!isLoadEnd)
                {
                    yield return(null);
                }
            }
        }
        yield return(base.StartCoroutine(this.CreateFarm()));

        this.StartCacheBattle();
        this.StartCacheParty();
        LeadCapture.Instance.CheckCaptureUpdate();
        this.ShowCampaignFacilityIcon();
        yield break;
    }
Beispiel #3
0
    public override void ClosePanel(bool animation = true)
    {
        ClassSingleton <FaceMissionAccessor> .Instance.faceMission.SetBadge(true);

        ClassSingleton <FacePresentAccessor> .Instance.facePresent.SetBadgeOnly();

        GUIFace.SetFacilityShopButtonBadge();
        PartsMenu.SetMenuButtonAlertBadge();
        this.CloseAndFarmCamOn(animation);
        this.missionList.FadeOutAllListParts(null, false);
        this.missionList.SetHideScrollBarAllWays(true);
        this.csSelectPanelMissionSelect.FadeOutAllListParts(null, false);
        this.csSelectPanelMissionSelect.SetHideScrollBarAllWays(true);
    }
Beispiel #4
0
 private void EndMoved(int i)
 {
     if (this.mainParts.IsShow())
     {
         this.goMENU_BAR.transform.localRotation = Quaternion.Euler(0f, 0f, 180f);
         this.goNEW_ICON.SetActive(false);
         this._isShowed = true;
     }
     else
     {
         this.goMENU_BAR.transform.localRotation = Quaternion.Euler(0f, 0f, 0f);
         PartsMenu.SetMenuButtonAlertBadge();
         this._isShowed             = false;
         GUIManager.ExtBackKeyReady = true;
         GUIMain.GetUIRoot().BroadcastMessage("OnCloseMenuReceiver", SendMessageOptions.DontRequireReceiver);
     }
     GUICollider.EnableAllCollider("PartsMenu_Collider");
 }
 private void updateMenuAlertState(bool state)
 {
     if (this.updateTrainingMenuAlertState)
     {
         PartsMenu.SetTrainingAlertState(state);
     }
     if (this.updateClearMenuAlertState)
     {
         PartsMenu.SetClearAlertState(state);
     }
     if (this.updateEvolutionMenuAlertState)
     {
         PartsMenu.SetEvolutionAlertState(state);
     }
     if (this.updateTrainingMenuAlertState || this.updateClearMenuAlertState || this.updateEvolutionMenuAlertState)
     {
         PartsMenu.SetMenuButtonAlertBadge();
     }
 }
Beispiel #6
0
 private void OnDestroy()
 {
     GUIManager.SetActCallShowDialog(null);
     GUIManager.ExtBackKeyReady = true;
     PartsMenu.instance         = null;
 }
Beispiel #7
0
 private void Awake()
 {
     GUIManager.SetActCallShowDialog(new Action <CommonDialog>(this.SetZPos));
     this.SetBtnXYPos();
     PartsMenu.instance = this;
 }