public void EndSynchronizeServerBattle() { WaitUI.CloseUI(0u); NetworkManager.Instance.SendCacheData(ServerType.Data, new BattleReconnCacheConfirmReq()); InstanceManager.IsAIThinking = true; XInputManager.EnabledLogic = true; }
public void RefreshUI(OpenNpcShopRes down = null) { WaitUI.CloseUI(0u); this.ClearScroll(); if (down.shopInfo != null && down.shopInfo.goodsInfo != null) { int num = 0; for (int i = 0; i < down.shopInfo.goodsInfo.get_Count(); i++) { int itemId = down.shopInfo.goodsInfo.get_Item(i).itemId; Items items = DataReader <Items> .Get(itemId); if (items != null && (items.career == EntityWorld.Instance.EntSelf.TypeID || items.career == 0 || items.career == 999)) { num++; this.AddScrollCell(num, down.shopInfo.goodsInfo.get_Item(i)); } } } int childCount = this.m_itemlist.get_transform().get_childCount(); if (childCount > 0) { this.m_itemlist.get_transform().GetChild(0).GetComponent <NpcShopItem>().SelectItem(); } }
protected void OnWildBossCancelQueueUpRes(short state, WildBossCancelQueueUpRes down = null) { WaitUI.CloseUI(0u); if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } if (down == null) { return; } Debug.LogError("OnWildBossCancelQueueUpRes"); if (down.teamBoss) { this.IsMultiBossWaiting = false; this.MultiBossWaitingNum = -1; } else { this.IsSingleBossWaiting = false; this.SingleBossWaitingNum = -1; } if (InstanceManager.IsInSecurityCheck) { InstanceManager.ContinueSecurityCheck(); } }
protected void TryEndWait() { if (this.IsWaitingRankUpResult) { WaitUI.CloseUI(0u); this.IsWaitingRankUpResult = false; } }
private void DownFinish(bool isFinish) { WaitUI.CloseUI(0u); this.Downloading = false; this.IsFinish = isFinish; EventDispatcher.Broadcast <bool>(EventNames.Download_AnnouncementFile_Finish, this.IsFinish); Debug.Log("DownAnnouncementFileFinish:" + this.IsFinish); }
protected override void OnEnable() { base.OnEnable(); WaitUI.CloseUI(0u); base.get_transform().SetAsFirstSibling(); GuideUIView.IsDownOn = false; this.isClick = true; }
private void OnOpenRoomsUI() { WaitUI.CloseUI(0u); if (!UIManagerControl.Instance.IsOpen("HuntRoomUI")) { UIManagerControl.Instance.OpenUI("HuntRoomUI", null, false, UIType.NonPush); } }
private void OnEliteChallengeFirstRes(short state, EliteChallengeFirstRes down = null) { if (state != 0) { WaitUI.CloseUI(0u); StateManager.Instance.StateShow(state, 0); return; } }
protected void OnChallengeDefendFightRes(short state, DefendFightRes down = null) { WaitUI.CloseUI(0u); if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } }
protected void OnWildBossQueueUpDetailRes(short state, WildBossQueueUpDetailRes down = null) { if (state != 0) { WaitUI.CloseUI(0u); StateManager.Instance.StateShow(state, 0); return; } }
private void ChallengeExperienceRes(short state, ChallengeExperienceCopyRes down = null) { WaitUI.CloseUI(0u); if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } }
protected void OnClickCareerBtn(int index) { this.SetCareer(index); WaitUI.OpenUI(5000u); this.InitStage(delegate { WaitUI.CloseUI(0u); this.SetStage((this.CurCareer != this.DefaultCareer) ? 0 : this.DefauleStageIndex); }); }
private void OnProtectFightRes(short state, ProtectFightRes down = null) { if (state != 0) { WaitUI.CloseUI(0u); StateManager.Instance.StateShow(state, 0); return; } Debug.Log("返回进入护送矿车副本"); }
protected void OnClickChapterBtn(int index) { this.SetChapter(index); WaitUI.OpenUI(5000u); this.InitMission(delegate { WaitUI.CloseUI(0u); this.OnClickMissionBtn(0); }); }
protected override void OnEnable() { base.OnEnable(); CurrenciesUIViewModel.Show(true); CurrenciesUIViewModel.Instance.SetSubUI(true, ResourceManager.GetCodeSprite(110043), string.Empty, delegate { this.Show(false); SoundManager.SetBGMFade(true); }, false); this.SwitchToggle(1); WaitUI.CloseUI(0u); }
private void OnGetFriendProtectListRes(short state, GetFriendProtectListRes down = null) { WaitUI.CloseUI(0u); if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } this.TramcarFriendInfos = down.infoList; EventDispatcher.Broadcast(EventNames.OpenTramcarFriendList); Debug.Log("返回矿车好友列表"); }
protected override void OnEnable() { base.OnEnable(); CurrenciesUIViewModel.Show(true); CurrenciesUIViewModel.Instance.SetSubUI(true, ResourceManager.GetCodeSprite(110007), string.Empty, delegate { this.Show(false); UIStackManager.Instance.PopUIPrevious(base.uiType); }, false); this.RefreshTaskUI(); WaitUI.CloseUI(0u); }
private void OnOpenGrabPanelRes(short state, OpenGrabPanelRes down = null) { WaitUI.CloseUI(0u); if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } this.TramcarLootInfos = down.infoList; this.LootCountDown = down.lastGrabTime; EventDispatcher.Broadcast(EventNames.OpenTramcarLootList); Debug.Log("返回抢夺矿车列表"); }
private void OnEnterRoomRes(short state, EnterRoomRes down = null) { WaitUI.CloseUI(0u); if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } this.AreaId = this.mTempId[1]; this.RoomId = this.mTempId[2]; this.EnterTick = down.deadlineTime; Debug.Log("进入房间[<color=#ffffff>" + this.RoomId + "</color>]成功!"); }
protected override void OnEnable() { if (EliteInstanceDetailUI.IsOpenFromStack) { this.RefreshUI(EliteInstanceDetailUI.eliteCfgID); if (EliteInstanceDetailUI.m_eliteDataInfo != null) { this.OnRefreshDifficultyList(EliteInstanceDetailUI.m_eliteDataInfo); } } WaitUI.CloseUI(0u); this.CheckShowSEffecFX(); }
private void OnGetRanInfoRes(short state, GetRanInfoRes down = null) { WaitUI.CloseUI(0u); if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } if (down != null) { this.personal = down; EventDispatcher.Broadcast(EventNames.OnRankingPersonalPush); } }
protected void OnChallengeWildBossRes(short state, ChallengeWildBossRes down = null) { WaitUI.CloseUI(0u); if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } if (down == null) { return; } InstanceManager.ChangeInstanceManager(down.dungeonId, false); }
private void OnReChallengeRes(short state, ReChallengeRes down = null) { if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } LocalBattleHandler.Instance.ResetData(); LocalInstanceHandler.Instance.ResetData(); BattleBlackboard.Instance.ResetData(); GlobalBattleNetwork.Instance.ResetData(); BattleDmgCollectManager.Instance.ClearData(); EntityWorld.Instance.ClearAllMapObjects(); InstanceManager.SimulateEnterField(InstanceManager.CurrentInstanceData.type, null); InstanceManager.SimulateSwicthMap(InstanceManager.CurrentInstanceData.scene, LocalInstanceHandler.Instance.CreateSelfInfo(InstanceManager.CurrentInstanceData.type, InstanceManager.CurrentInstanceDataID, InstanceManager.CurrentInstanceData.scene, 0, 0, null, null, null), null, 0); WaitUI.CloseUI(0u); }
private void OnRechargeGoodsRes(short state, RechargeGoodsRes down = null) { WaitUI.CloseUI(0u); if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } if (down != null) { this.IsNeedRefresh = false; this.m_listRechargeGoodsInfo = new List <RechargeGoodsInfo>(); int sDKType = SDKManager.Instance.GetSDKType(); for (int i = 0; i < down.Info.get_Count(); i++) { if (down.Info.get_Item(i).channel == sDKType) { this.m_listRechargeGoodsInfo.Add(down.Info.get_Item(i)); } } if (this.m_listRechargeGoodsInfo.get_Count() == 0) { for (int j = 0; j < down.Info.get_Count(); j++) { if (down.Info.get_Item(j).channel == 0) { this.m_listRechargeGoodsInfo.Add(down.Info.get_Item(j)); } } } this.RechargeIds.Clear(); this.RechargeBoxs.Clear(); for (int k = 0; k < this.m_listRechargeGoodsInfo.get_Count(); k++) { RechargeGoodsInfo rechargeGoodsInfo = this.m_listRechargeGoodsInfo.get_Item(k); this.RechargeIds.Add(rechargeGoodsInfo.indexes); if (rechargeGoodsInfo.dropID.get_Count() > 0) { this.RechargeBoxs.Add(rechargeGoodsInfo.indexes); } } EventDispatcher.Broadcast("RechargeManager.RechargeGoodsInfoUpdate"); this.CheckBoxTips(); } }
public void OnPayToRechargeDiamondResp(SDKStatusCode code, string data) { Debug.Log(string.Concat(new object[] { "OnPayToRechargeDiamondResp : code = ", code, ", data = ", data })); WaitUI.CloseUI(0u); if (SDKManager.Instance.IsAndroidYSDK()) { this.OnPayToRechargeDiamondResp_YSDK(code, data); } else if (code != SDKStatusCode.SUCCESS) { } }
private void OnOpenShopRes(short state, OpenShopRes down = null) { WaitUI.CloseUI(0u); if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } if (down != null) { this.UpdateShops(down.shopInfos); for (int i = 0; i < down.shopInfos.get_Count(); i++) { this.UpdateFlagsToFlase(down.shopInfos.get_Item(i).shopId); } this.CheckBadgeTip(); } }
public void SetData(int theTypeID, int theDefaultCareer, int theCurState, List <int> completedTask) { this.TypeID = theTypeID; this.DefaultCareer = theDefaultCareer; this.DefaultStage = theCurState; if (!DataReader <JobIndex> .Contains(theTypeID)) { return; } JobIndex jobIndex = DataReader <JobIndex> .Get(theTypeID); WaitUI.OpenUI(5000u); this.InitCareerUnit(jobIndex.AdvancedJobId, delegate { WaitUI.CloseUI(0u); this.OnClickCareerBtn(this.DefauleCareerIndex); }); }
private void OnChallengeDungeonRes(short state, ChallengeDungeonRes down = null) { if (state == 0) { UIStackManager.Instance.PopUIIfTarget("InstanceDetailUI"); InstanceManager.ChangeInstanceManager(down.dungeonId, false); InstanceManager.SimulateEnterField(InstanceManager.CurrentInstanceData.type, null); InstanceManager.SimulateSwicthMap(InstanceManager.CurrentInstanceData.scene, LocalInstanceHandler.Instance.CreateSelfInfo(InstanceManager.CurrentInstanceData.type, InstanceManager.CurrentInstanceDataID, InstanceManager.CurrentInstanceData.scene, 0, 0, null, null, null), null, 0); BattleDmgCollectManager.Instance.ClearData(); EventDispatcher.Broadcast <bool>(EventNames.ChallengeDungeonResult, true); } else { StateManager.Instance.StateShow(state, 0); EventDispatcher.Broadcast <bool>(EventNames.ChallengeDungeonResult, false); } WaitUI.CloseUI(0u); }
private void OnOpenTramcarPanelRes(short state, OpenTramcarPanelRes down = null) { WaitUI.CloseUI(0u); if (state != 0) { StateManager.Instance.StateShow(state, 0); return; } this.TramcarRewards = down.item; this.CurQuality = down.curQuality; this.CurMapId = down.mapId; EventDispatcher.Broadcast(EventNames.OpenTramcarUI); Debug.LogFormat("护送矿车地图ID:{0}, 矿车品质:{1}", new object[] { this.CurMapId, this.CurQuality }); }
private void RefreshModel(BossBiaoQian config) { List <float> offset = config.modelOffset; WaitUI.OpenUI(0u); ModelDisplayManager.Instance.ShowModel(config.modelId, true, new Vector2(offset.get_Item(0), offset.get_Item(1)), delegate(int uid) { this.modelUid = uid; ActorModel uIModel = ModelDisplayManager.Instance.GetUIModel(uid); if (uIModel != null) { Vector3 localPosition = uIModel.get_transform().get_localPosition(); uIModel.get_transform().set_localPosition(new Vector3(localPosition.x, localPosition.y, offset.get_Item(2))); uIModel.get_transform().set_localEulerAngles(new Vector3(0f, config.modelAngle, 0f)); LayerSystem.SetGameObjectLayer(uIModel.get_gameObject(), "CameraRange", 2); } WaitUI.CloseUI(0u); }); }