Пример #1
0
 public void OnBtnExitUp()
 {
     LoadingUIView.Open(false);
     BattlePassUIView.Instance.Show(false);
     if (this.exitCallback != null)
     {
         this.exitCallback.Invoke();
     }
 }
Пример #2
0
 protected void OnClickBtnExit(GameObject sender)
 {
     this.Show(false);
     LoadingUIView.Open(false);
     if (this.BtnExitAction != null)
     {
         this.BtnExitAction.Invoke();
     }
 }
Пример #3
0
 private void OnClickExitBtn(GameObject go)
 {
     LoadingUIView.Open(false);
     this.Show(false);
     if (this.ExitCallback != null)
     {
         this.ExitCallback.Invoke();
     }
 }
Пример #4
0
 private void Awake()
 {
     LoadingUIView.m_instance = this;
     base.AwakeBase(BindingContext.BindingContextMode.MonoBinding, false);
     this.m_Bg              = base.FindTransform("RawImage").GetComponent <RawImage>();
     this.m_spProgressBg    = base.FindTransform("Slider").GetComponent <Slider>();
     this.m_lblProgressText = base.FindTransform("ProgressText").GetComponent <Text>();
     this.m_lblTipsDescText = base.FindTransform("TipsDesc").GetComponent <Text>();
     this.mGoPrompt         = base.FindTransform("PromptDesc").get_gameObject();
     this.Point1            = base.FindTransform("point1");
 }
Пример #5
0
 public void OnStartLoad(int sceneID, List <MapObjInfo> otherObjs)
 {
     if (this.action_allResource_loaded_timer_id > 0u)
     {
         TimerHeap.DelTimer(this.action_allResource_loaded_timer_id);
         this.action_allResource_loaded_timer_id = 0u;
     }
     SoundManager.Instance.StopBGM(null);
     EntityWorld.Instance.ClearAllMapObjects();
     NPCManager.Instance.ClearAllNPCs();
     EventDispatcher.Broadcast <int, int>(SceneManagerEvent.UnloadScene, MySceneManager.Instance.CurSceneID, sceneID);
     if (!this.IsWorldMapSwitch(sceneID))
     {
         if (InstanceManager.CurrentInstanceType == InstanceType.Arena)
         {
             UIManagerControl.Instance.HideAllExcept(new string[]
             {
                 "LoadingUI",
                 "PVPVSUI"
             });
         }
         else
         {
             UIManagerControl.Instance.HideAllExcept(new string[]
             {
                 "LoadingUI"
             });
         }
         LoadingUIView.Open(false);
         this.isCurrentHasLoading = true;
         this.TrulyStartLoad(sceneID, otherObjs);
     }
     else
     {
         this.isCurrentHasLoading = false;
         FXSpineManager.Instance.ShowBattleStart1(sceneID, delegate
         {
             AssetLoader.UnloadUnusedAssets(delegate
             {
                 this.TrulyStartLoad(sceneID, otherObjs);
             });
         });
     }
 }
Пример #6
0
    public override void SetCommonLogic()
    {
        if (EntityWorld.Instance.EntSelf == null)
        {
            return;
        }
        bool flag = false;

        if (!this.HasEnteredCityBefore)
        {
            this.HasEnteredCityBefore = true;
            EventDispatcher.Broadcast("ReTriggerTaskOfLogin");
            if (Application.get_isMobilePlatform() && EntityWorld.Instance.EntSelf.Lv == 1)
            {
                flag = true;
            }
        }
        Action action = delegate
        {
            FXSpineManager.Instance.ShowBattleStart2(delegate
            {
                LoadingUIView.Close();
                TownUI.IsOpenAnimationOn = true;
                this.ShowTownUI();
                if (EntityWorld.Instance.EntSelf.IsNavigating)
                {
                    EventDispatcher.Broadcast(EventNames.BeginNav);
                }
                MySceneManager.Instance.PlayBGM();
                EventDispatcher.BroadcastAsync(CityManagerEvent.EnteredCity);
            });
        };

        if (flag)
        {
            ClientApp.Instance.PlayCGMovie(action);
        }
        else
        {
            action.Invoke();
        }
    }
Пример #7
0
 protected override void OnEnable()
 {
     base.get_transform().SetAsLastSibling();
     this.PlaySpine();
     LoadingUIView.SetProgress(0f);
     this.RandomTips();
     if (LoadingUIView.IsFromLogin)
     {
         ResourceManager.SetTexture(this.m_Bg, "load_login");
     }
     else
     {
         this.RandomBG();
     }
     this.CheckIsOpenWithPVPBattle();
     this.mGoPrompt.SetActive(LoadingUIView.IsShowPrompt);
     this.m_lblTipsDescText.get_gameObject().SetActive(!LoadingUIView.IsShowPrompt);
     GuideManager.Instance.out_system_lock = true;
     GuideUIView.IsDownOn = false;
 }
Пример #8
0
 private void OnEnable()
 {
     LoadingUIView.Close();
     UIManagerControl.Instance.OpenUI("SelectRoleUI", UINodesManager.NormalUIRoot, true, UIType.NonPush);
 }
Пример #9
0
 private void SetLoadingPercentage(float percent)
 {
     LoadingUIView.SetProgressInSmooth(percent);
 }