Ejemplo n.º 1
0
 private void SetUpWindow()
 {
     TextureManager.instance.Load(CMD_LoginCampaign.GetBgPathForFTP(this.loginBonus.backgroundImg), delegate(Texture2D texture)
     {
         if (texture != null)
         {
             this.backGround.mainTexture = texture;
         }
     }, 30f, true);
 }
Ejemplo n.º 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;
    }
Ejemplo n.º 3
0
 protected new void Start()
 {
     base.Start();
     this.bg = base.transform.Find(this.BG_PATH).GetComponent <UITexture>();
     TextureManager.instance.Load(CMD_LoginCampaign.GetBgPathForFTP(this.loginBonus.backgroundImg), delegate(Texture2D texture)
     {
         if (texture != null)
         {
             this.bg.mainTexture = texture;
         }
         else
         {
             NGUIUtil.ChangeUITextureFromFile(this.bg, this.BG_TEXTURE_PATH, false);
         }
     }, 30f, true);
 }