private IEnumerator SetPointShopGetPointUI() { if (pointShopGetPointData != null && pointShopGetPointData.Count > 0) { LoadingQueue queue = new LoadingQueue(this); queue.Load(RESOURCE_CATEGORY.COMMON, ResourceName.GetPointIconImageName((int)pointShopGetPointData[0].pointShopId), false); if (queue.IsLoading()) { yield return((object)queue.Wait()); } SetActive((Enum)UI.OBJ_NORMAL_ROOT, true); SetLabelText((Enum)UI.LBL_POINT_NORMAL, string.Format(StringTable.Get(STRING_CATEGORY.POINT_SHOP, 2u), pointShopGetPointData[0].basePoint)); UITexture normalTex = GetCtrl(UI.TEX_NORMAL_ICON).GetComponent <UITexture>(); ResourceLoad.LoadPointIconImageTexture(normalTex, pointShopGetPointData[0].pointShopId); if (pointShopGetPointData.Count >= 2) { queue.Load(RESOURCE_CATEGORY.COMMON, ResourceName.GetPointIconImageName((int)pointShopGetPointData[1].pointShopId), false); if (queue.IsLoading()) { yield return((object)queue.Wait()); } SetActive((Enum)UI.OBJ_EVENT_ROOT, true); SetLabelText((Enum)UI.LBL_POINT_EVENT, string.Format(StringTable.Get(STRING_CATEGORY.POINT_SHOP, 2u), pointShopGetPointData[1].basePoint)); UITexture eventTex = GetCtrl(UI.TEX_EVENT_ICON).GetComponent <UITexture>(); ResourceLoad.LoadPointIconImageTexture(eventTex, pointShopGetPointData[1].pointShopId); } } }
private IEnumerator LoadPeopleWayPoint() { LoadingQueue load_queue = new LoadingQueue(this); string wayPointName = "PeopleWayPoints"; LoadObject lo_way_points = load_queue.Load(RESOURCE_CATEGORY.SYSTEM, "SystemOutGame", new string[1] { wayPointName }, false); if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } Transform wayPoints = ResourceUtility.Realizes(lo_way_points.loadedObject, this.get_transform(), -1); Utility.ForEach(wayPoints, delegate(Transform o) { if (o.get_name().StartsWith("LEAF")) { ((_003CLoadPeopleWayPoint_003Ec__IteratorA3) /*Error near IL_00ba: stateMachine*/)._003C_003Ef__this.leafPoints.Add(o.GetComponent <WayPoint>()); } else if (o.get_name() == "CENTER") { ((_003CLoadPeopleWayPoint_003Ec__IteratorA3) /*Error near IL_00ba: stateMachine*/)._003C_003Ef__this.centerPoint = o.GetComponent <WayPoint>(); } return(false); }); }
protected IEnumerator _Initialize() { questInfo = (GameSection.GetEventData() as QuestInfoData); if (questInfo.questData.tableData.questType == QUEST_TYPE.ORDER) { QuestItemInfo item = MonoBehaviourSingleton <InventoryManager> .I.GetQuestItem(questInfo.questData.tableData.questID); if (item != null) { GameSaveData.instance.RemoveNewIconAndSave(ITEM_ICON_TYPE.QUEST_ITEM, item.uniqueID); } } LoadingQueue load_queue = new LoadingQueue(this); if (questInfo != null) { EnemyTable.EnemyData enemy_data = Singleton <EnemyTable> .I.GetEnemyData((uint)questInfo.questData.tableData.GetMainEnemyID()); if (enemy_data != null) { EnemyLoader.CacheUIElementEffect(load_queue, enemy_data.element); } } load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_new"); load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_complete"); if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } }
private IEnumerator DoInitialize() { bool is_recv_quest = false; LoadingQueue load_queue = new LoadingQueue(this); load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_new"); load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_complete"); InitSearchParam(); QuestAcceptChallengeRoomCondition.ChallengeSearchRequestParam sendParam = new QuestAcceptChallengeRoomCondition.ChallengeSearchRequestParam(); int userLevel = sendParam.enemyLevel = GetEnemyLevelFromUserLevel(); MonoBehaviourSingleton <QuestManager> .I.SendGetChallengeList(sendParam, delegate { ((_003CDoInitialize_003Ec__Iterator6D) /*Error near IL_00a4: stateMachine*/)._003Cis_recv_quest_003E__0 = true; }, false); while (!is_recv_quest) { yield return((object)null); } this.StartCoroutine(CheckLimitQuestItem()); if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } base.Initialize(); }
private IEnumerator InitPortalStatusImpl(Action onComplete) { LoadingQueue loadQueue = new LoadingQueue(this); UIntKeyTable <LoadObject> loadTextures = new UIntKeyTable <LoadObject>(); for (int k = 0; k < locations.Length; k++) { FieldMapTable.FieldMapTableData tableData = locations[k].tableData; if (tableData != null && tableData.hasChildRegion && loadTextures.Get(tableData.iconId) == null) { loadTextures.Add(tableData.iconId, loadQueue.Load(RESOURCE_CATEGORY.DUNGEON_ICON, ResourceName.GetDungeonIcon(tableData.iconId), false)); } } if (loadQueue.IsLoading()) { yield return((object)loadQueue.Wait()); } for (int j = 0; j < locations.Length; j++) { FieldMapTable.FieldMapTableData tableData2 = locations[j].tableData; if (tableData2 != null && tableData2.hasChildRegion) { locations[j].icon = (loadTextures.Get(tableData2.iconId).loadedObject as Texture2D); } } for (int i = 0; i < portals.Length; i++) { RegionMapPortal portal = portals[i]; if (portal.IsVisited()) { portal.Open(); } } onComplete?.Invoke(); }
private IEnumerator DoInitalize() { LoadingQueue loadQueue = new LoadingQueue(this); loadQueue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, $"ef_ui_pointresult_{currentData.eventId:D8}"); if (loadQueue.IsLoading()) { yield return((object)loadQueue.Wait()); } SetVisibleWidgetEffect(UI.TXT_BANNER, $"ef_ui_pointresult_{currentData.eventId:D8}"); UIVisibleWidgetEffect visibleWidget = bannerCtrl.GetComponent <UIVisibleWidgetEffect>(); visibleWidget.SetRendererQueue(4000); PlayAudio(AUDIO.TITLE_LOGO); ResourceLoad.LoadEventBannerResultTexture(GetCtrl(UI.SPR_LOGO).GetComponent <UITexture>(), (uint)currentData.eventId); ResourceLoad.LoadEventBannerResultBGTexture(GetCtrl(UI.SPR_LOGO_BG).GetComponent <UITexture>(), (uint)currentData.eventId); TweenAlpha logoBGAlpha = GetCtrl(UI.SPR_LOGO_BG).GetComponent <TweenAlpha>(); if (logoBGAlpha != null) { logoBGAlpha.ResetToBeginning(); logoBGAlpha.PlayForward(); } base.Initialize(); }
private IEnumerator DoInitialize() { if (MonoBehaviourSingleton <InGameRecorder> .IsValid() && MonoBehaviourSingleton <InGameRecorder> .I.players.Count > 0) { LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo = load_queue.Load(RESOURCE_CATEGORY.UI, "QuestResultDirector", false); List <InGameRecorder.PlayerRecord> playerRecords = MonoBehaviourSingleton <InGameRecorder> .I.players; int m = 0; while (m < playerRecords.Count) { InGameRecorder.PlayerRecord p = playerRecords[m]; if (p == null || p.playerLoadInfo == null) { playerRecords.RemoveAt(m); } else { m++; } } players = MonoBehaviourSingleton <InGameRecorder> .I.CreatePlayerModels(); winnder_voice_id = 0; if (players != null) { winnder_voice_id = players[0].GetVoiceId(ACTION_VOICE_ID.HAPPY_01); load_queue.CacheActionVoice(winnder_voice_id, null); } if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } while (true) { bool wait = false; int l = 0; for (int k = players.Length; l < k; l++) { if (players[l].isLoading) { wait = true; break; } } if (!wait) { break; } yield return((object)null); } int j = 0; for (int i = players.Length; j < i; j++) { players[j].animator.set_applyRootMotion(false); } director = ResourceUtility.Realizes(lo.loadedObject, MonoBehaviourSingleton <StageManager> .I._transform, -1).GetComponent <QuestResultDirector>(); director.players = players; } base.Initialize(); }
private IEnumerator DoInitialize() { bool is_recv_quest = false; LoadingQueue load_queue = new LoadingQueue(this); load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_new"); load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_questselect_complete"); if (MonoBehaviourSingleton <QuestManager> .I.needRequestOrderQuestList) { MonoBehaviourSingleton <QuestManager> .I.SendGetQuestList(delegate { MonoBehaviourSingleton <QuestManager> .I.needRequestOrderQuestList = false; ((_003CDoInitialize_003Ec__Iterator71) /*Error near IL_0075: stateMachine*/)._003Cis_recv_quest_003E__0 = true; }); while (!is_recv_quest) { yield return((object)null); } } this.StartCoroutine(CheckLimitQuestItem()); sortSettings = SortSettings.CreateMemSortSettings(SortBase.DIALOG_TYPE.QUEST, SortSettings.SETTINGS_TYPE.ORDER_QUEST); SHOW_QUEST_REMAIN_LIMIT_SECOND = (float)TimeSpan.FromDays(5.0).TotalSeconds; sortSettings.indivComparison = Compare; if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } base.Initialize(); }
public IEnumerator DoInitialize() { currentType = VIEW_TYPE.NORMAL; currentPage = 1; bool hasList = false; LoadingQueue loadingQueue = new LoadingQueue(this); loadingQueue.Load(RESOURCE_CATEGORY.UI, "PointShopListItem", false); MonoBehaviourSingleton <UserInfoManager> .I.PointShopManager.SendGetPointShops(delegate(bool isSuccess, List <PointShop> resultList) { if (isSuccess) { ((_003CDoInitialize_003Ec__Iterator91) /*Error near IL_0073: stateMachine*/)._003C_003Ef__this.pointShop = resultList; foreach (PointShop item in ((_003CDoInitialize_003Ec__Iterator91) /*Error near IL_0073: stateMachine*/)._003C_003Ef__this.pointShop) { ((_003CDoInitialize_003Ec__Iterator91) /*Error near IL_0073: stateMachine*/)._003CloadingQueue_003E__1.Load(RESOURCE_CATEGORY.COMMON, ResourceName.GetPointIconImageName(item.pointShopId), false); } ((_003CDoInitialize_003Ec__Iterator91) /*Error near IL_0073: stateMachine*/)._003ChasList_003E__0 = true; } }); while (!hasList) { yield return((object)null); } if (loadingQueue.IsLoading()) { yield return((object)loadingQueue.Wait()); } base.Initialize(); }
protected override IEnumerator DoInitialize() { string resourceName = ResourceName.GetEventBG(eventData.bannerId); Hash128 hash = default(Hash128); if (MonoBehaviourSingleton <ResourceManager> .I.manifest != null) { hash = MonoBehaviourSingleton <ResourceManager> .I.manifest.GetAssetBundleHash(RESOURCE_CATEGORY.EVENT_BG.ToAssetBundleName(resourceName)); } if (MonoBehaviourSingleton <ResourceManager> .I.manifest == null || hash.get_isValid()) { LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_bg = load_queue.Load(RESOURCE_CATEGORY.EVENT_BG, resourceName, false); LoadObject lo_item = null; if (ShouldShowEventMapButton()) { lo_item = load_queue.Load(RESOURCE_CATEGORY.QUEST_ITEM, "QEM_10000000", false); } if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } SetTexture(texture: lo_bg.loadedObject as Texture2D, texture_enum: UI.TEX_EVENT_BG); if (lo_item != null && null != lo_item.loadedObject) { GameObject mapItemObj = lo_item.loadedObject as GameObject; mapItem = mapItemObj.get_transform(); } } GetDeliveryList(); EndInitialize(); }
private IEnumerator DoLoad(int npc_model_id, int layer, bool need_shadow, bool enable_light_probes, SHADER_TYPE shader_type, Action callback) { loadingQueue = new LoadingQueue(this); string model_name = ResourceName.GetNPCModel(npc_model_id); LoadObject lo_model = loadingQueue.LoadAndInstantiate(RESOURCE_CATEGORY.NPC_MODEL, model_name); string anim_name = ResourceName.GetNPCAnim(npc_model_id); LoadObject lo_anim = loadingQueue.Load(RESOURCE_CATEGORY.NPC_ANIM, anim_name, new string[1] { anim_name + "Ctrl" }, false); if (loadingQueue.IsLoading()) { yield return((object)loadingQueue.Wait()); } model = lo_model.Realizes(this.get_transform(), layer); if (model != null) { head = Utility.Find(model, "Head"); facial = model.GetComponentInChildren <NPCFacial>(); if (facial != null) { facial.animNode = Utility.Find(model, "Face"); } animator = model.GetComponentInChildren <Animator>(); if (lo_anim != null && animator != null) { animator.set_runtimeAnimatorController(lo_anim.loadedObjects[0].obj as RuntimeAnimatorController); } } PlayerLoader.SetLightProbes(model, enable_light_probes); renderers = model.GetComponentsInChildren <Renderer>(); int j = 0; for (int i = renderers.Length; j < i; j++) { if (renderers[j] is SkinnedMeshRenderer) { (renderers[j] as SkinnedMeshRenderer).set_localBounds(BOUNDS); } } switch (shader_type) { case SHADER_TYPE.LIGHTWEIGHT: ShaderGlobal.ChangeWantLightweightShader(renderers); break; case SHADER_TYPE.UI: ShaderGlobal.ChangeWantUIShader(renderers); break; } if (need_shadow) { shadow = PlayerLoader.CreateShadow(this.get_transform(), true, -1, shader_type == SHADER_TYPE.LIGHTWEIGHT); } coroutine = null; callback?.Invoke(); }
private IEnumerator DoInitialize() { bool is_recv_delivery = false; MonoBehaviourSingleton<QuestManager>.I.SendGetEventList(delegate { ((_003CDoInitialize_003Ec__IteratorBB)/*Error near IL_0035: stateMachine*/)._003Cis_recv_delivery_003E__0 = true; }); while (!is_recv_delivery) { yield return (object)null; } if (isInGame) { eventList = new List<Network.EventData>(MonoBehaviourSingleton<QuestManager>.I.eventList.Count); List<Network.EventData> allEventList = new List<Network.EventData>(MonoBehaviourSingleton<QuestManager>.I.eventList); for (int j = 0; j < allEventList.Count; j++) { if (allEventList[j].eventType != 4 && allEventList[j].eventType != 12 && allEventList[j].eventType != 15) { eventList.Add(allEventList[j]); } } } else { eventList = new List<Network.EventData>(MonoBehaviourSingleton<QuestManager>.I.eventList); } RemoveEndedEvents(); LoadingQueue loadingQueue = new LoadingQueue(this); bannerTable = new Dictionary<int, LoadObject>(eventList.Count); exploreClearedMap = new Dictionary<int, bool>(); for (int i = 0; i < eventList.Count; i++) { Network.EventData e = eventList[i]; if (!bannerTable.ContainsKey(e.bannerId)) { string bannerImg = ResourceName.GetEventBanner(e.bannerId); LoadObject obj = loadingQueue.Load(RESOURCE_CATEGORY.EVENT_ICON, bannerImg, false); bannerTable.Add(e.bannerId, obj); if (e.eventType == 15 && (int)MonoBehaviourSingleton<UserInfoManager>.I.userStatus.level < 50) { LoadDisableArenaBanner(loadingQueue); } if (e.eventType == 4) { yield return (object)this.StartCoroutine(GetExplorePoint(e.eventId)); } } } if (loadingQueue.IsLoading()) { yield return (object)loadingQueue.Wait(); } base.Initialize(); }
private IEnumerator DoLoadEffect() { LoadingQueue load_queue = new LoadingQueue(this); load_queue.CacheEffect(RESOURCE_CATEGORY.EFFECT_UI, "ef_ui_shieldgauge_01"); while (load_queue.IsLoading()) { yield return((object)null); } isLoadEffectComplete = true; }
private IEnumerator DoInitialize() { LoadingQueue loadingQueue = new LoadingQueue(this); loadingQueue.Load(RESOURCE_CATEGORY.COMMON, ResourceName.GetPointIconImageName(data.pointShopId), false); loadingQueue.Load(RESOURCE_CATEGORY.COMMON, ResourceName.GetPointSHopBGImageName(data.pointShopId), false); if (loadingQueue.IsLoading()) { yield return((object)loadingQueue.Wait()); } base.Initialize(); }
private IEnumerator DoInitialize() { LoadingQueue loadQueue = new LoadingQueue(this); Singleton <EquipItemTable> .I.CreateTableForEquipList(); if (loadQueue.IsLoading()) { yield return((object)loadQueue.Wait()); } base.Initialize(); }
protected IEnumerator LoadGachaGuaranteeCounter(Action <LoadObject> callback) { LoadingQueue loadQueue = new LoadingQueue(this); string imgName = nextGuachaGuarantee.GetTitleImageName(); LoadObject loadObject = loadQueue.Load(RESOURCE_CATEGORY.GACHA_GUARANTEE_COUNTER, imgName, false); if (loadQueue.IsLoading()) { yield return((object)loadQueue.Wait()); } callback(loadObject); }
protected override IEnumerator DoInitialize() { int regionId = (int)GameSection.GetEventData(); regionData = Singleton <RegionTable> .I.GetData((uint)regionId); bool needSummary = regionId != 0; SetActive((Enum)UI.BTN_SUMMARY, needSummary); LoadingQueue loadQueue = new LoadingQueue(this); string bannerName = ResourceName.GetAreaBG(regionId); LoadObject bannerObj = loadQueue.Load(RESOURCE_CATEGORY.AREA_BACKGROUND, bannerName, false); if (loadQueue.IsLoading()) { yield return((object)loadQueue.Wait()); } Texture2D bannerTex = bannerObj.loadedObject as Texture2D; if (bannerTex != null) { SetTexture((Enum)UI.TEX_AREA_BG, bannerTex); } if (ShouldShowEventMapButton()) { LoadObject item = loadQueue.Load(RESOURCE_CATEGORY.QUEST_ITEM, "QEM_10000001", false); if (loadQueue.IsLoading()) { yield return((object)loadQueue.Wait()); } SetTexture(texture: item.loadedObject as Texture2D, texture_enum: UI.TEX_EVENT_BG); if (item != null && null != item.loadedObject) { GameObject mapItemObj = item.loadedObject as GameObject; mapItem = mapItemObj.get_transform(); } } SetAreaName(); EndInitialize(); }
private IEnumerator DoInitialize() { LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_quest_chatitem = load_queue.Load(RESOURCE_CATEGORY.UI, "ChatItem", false); LoadObject lo_chat_stamp_listitem = load_queue.Load(RESOURCE_CATEGORY.UI, "ChatStampListItem", false); talkerName = GetTalkerName(MonoBehaviourSingleton <FriendManager> .I.talkUser.userId); SetLabelText((Enum)UI.Title_U, talkerName); SetLabelText((Enum)UI.Title_D, talkerName); nowPage = 0; loadedPage = -1; itemListData = new MessageItemListData(GetCtrl(UI.OBJ_ROOM_ITEM_LIST_ROOT).get_gameObject()); if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } chatItemPrefab = (lo_quest_chatitem.loadedObject as GameObject); chatStampListPrefab = (lo_chat_stamp_listitem.loadedObject as GameObject); SetSliderLimit(); DummyDragScroll.width = 410; ResetStampIdList(); Reset(); postMessageList.Clear(); UIScrollView scrollView = ScrollView; scrollView.onDragFinished = (UIScrollView.OnDragNotification)Delegate.Combine(scrollView.onDragFinished, new UIScrollView.OnDragNotification(OnDragFinished)); ChatInputFrame inputFrame = InputFrame; inputFrame.onChange = (Action)Delegate.Combine(inputFrame.onChange, (Action) delegate { ((_003CDoInitialize_003Ec__Iterator3D) /*Error near IL_01ea: stateMachine*/)._003C_003Ef__this.OnInput(); }); ChatInputFrame inputFrame2 = InputFrame; inputFrame2.onSubmit = (Action)Delegate.Combine(inputFrame2.onSubmit, (Action) delegate { ((_003CDoInitialize_003Ec__Iterator3D) /*Error near IL_0216: stateMachine*/)._003C_003Ef__this.OnTouchPost(); }); if (MonoBehaviourSingleton <FriendManager> .I.talkUser.userId == 0) { GetCtrl(UI.SCR_STAMP_LIST).get_gameObject().SetActive(false); GetCtrl(UI.OBJ_POST_FRAME).get_gameObject().SetActive(false); } else { updateStampList = true; AppMain i = MonoBehaviourSingleton <AppMain> .I; i.onDelayCall = (Action)Delegate.Combine(i.onDelayCall, new Action(InitStampList)); } base.Initialize(); }
private IEnumerator Loading() { renderTexture.enableTexture = false; if (userInfo != null && userIndex >= 0) { bool is_owner = userInfo.userId == MonoBehaviourSingleton <PartyManager> .I.GetOwnerUserId(); foreach (Transform item in model) { Transform t = item; Object.Destroy(t.get_gameObject()); } PlayerLoadInfo load_info = new PlayerLoadInfo(); load_info.Apply(userInfo, true, true, true, true); bool wait = true; loader = model.get_gameObject().AddComponent <PlayerLoader>(); loader.StartLoad(load_info, renderTexture.renderLayer, 90, false, false, false, false, false, false, true, true, SHADER_TYPE.UI, delegate { //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) ((_003CLoading_003Ec__Iterator105) /*Error near IL_0168: stateMachine*/)._003Cwait_003E__4 = false; float num = (((_003CLoading_003Ec__Iterator105) /*Error near IL_0168: stateMachine*/)._003C_003Ef__this.userInfo.sex != 0) ? MonoBehaviourSingleton <OutGameSettingsManager> .I.statusScene.playerScaleFemale : MonoBehaviourSingleton <OutGameSettingsManager> .I.statusScene.playerScaleMale; ((_003CLoading_003Ec__Iterator105) /*Error near IL_0168: stateMachine*/)._003C_003Ef__this.loader.get_transform().set_localScale(((_003CLoading_003Ec__Iterator105) /*Error near IL_0168: stateMachine*/)._003C_003Ef__this.loader.get_transform().get_localScale().Mul(new Vector3(num, num, num))); }, true, -1); int voice_id = -1; if (!is_owner) { voice_id = loader.GetVoiceId(ACTION_VOICE_EX_ID.ALLIVE_01); LoadingQueue lo_queue = new LoadingQueue(this); lo_queue.CacheActionVoice(voice_id, null); while (lo_queue.IsLoading()) { yield return((object)null); } } while (wait) { yield return((object)null); } animCtrl = PlayerAnimCtrl.Get(loader.animator, PlayerAnimCtrl.battleAnims[load_info.weaponModelID / 1000], null, OnAnimChange, OnAnimEnd); renderTexture.enableTexture = true; if (voice_id > 0) { SoundManager.PlayActionVoice(voice_id, 1f, 0u, null, null); } } }
private IEnumerator DoInitialize() { bool is_recv_delivery = false; MonoBehaviourSingleton <QuestManager> .I.SendGetExploreList(delegate { ((_003CDoInitialize_003Ec__IteratorFC) /*Error near IL_0031: stateMachine*/)._003Cis_recv_delivery_003E__0 = true; }); while (!is_recv_delivery) { yield return((object)null); } List <Network.EventData> allEventList = new List <Network.EventData>(MonoBehaviourSingleton <QuestManager> .I.eventList); eventList = new List <Network.EventData>(); for (int k = 0; k < allEventList.Count; k++) { if (allEventList[k].eventType == 4) { eventList.Add(allEventList[k]); } } for (int j = 0; j < allEventList.Count; j++) { if (allEventList[j].eventType == 12) { eventList.Add(allEventList[j]); } } RemoveEndedEvents(); LoadingQueue loadingQueue = new LoadingQueue(this); bannerTable = new Dictionary <int, LoadObject>(eventList.Count); for (int i = 0; i < eventList.Count; i++) { Network.EventData e = eventList[i]; if (!bannerTable.ContainsKey(e.bannerId)) { string bannerImg = ResourceName.GetEventBanner(e.bannerId); LoadObject obj = loadingQueue.Load(RESOURCE_CATEGORY.EVENT_ICON, bannerImg, false); bannerTable.Add(e.bannerId, obj); } } if (loadingQueue.IsLoading()) { yield return((object)loadingQueue.Wait()); } base.Initialize(); }
private IEnumerator Start() { LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_common_prefabs = load_queue.Load(RESOURCE_CATEGORY.SYSTEM, "SystemCommon", new string[2] { "MainCamera", "InputManager" }, false); LoadObject lo_field_map_table = load_queue.Load(RESOURCE_CATEGORY.TABLE, "FieldMapTable", false); LoadObject lo_portal_table = load_queue.Load(RESOURCE_CATEGORY.TABLE, "FieldMapPortalTable", false); LoadObject lo_enemy_pop_table = load_queue.Load(RESOURCE_CATEGORY.TABLE, "FieldMapEnemyPopTable", false); while (load_queue.IsLoading()) { yield return((object)null); } MonoBehaviourSingleton <AppMain> .I.get_gameObject().AddComponent <FieldManager>(); Singleton <FieldMapTable> .Create(); string csv3 = DataTableManager.Decrypt((lo_field_map_table.loadedObject as TextAsset).get_text()); Singleton <FieldMapTable> .I.CreateFieldMapTable(csv3); csv3 = DataTableManager.Decrypt((lo_portal_table.loadedObject as TextAsset).get_text()); Singleton <FieldMapTable> .I.CreatePortalTable(csv3); csv3 = DataTableManager.Decrypt((lo_enemy_pop_table.loadedObject as TextAsset).get_text()); Singleton <FieldMapTable> .I.CreateEnemyPopTable(csv3); if (Camera.get_main() != null) { Object.DestroyImmediate(Camera.get_main().get_gameObject()); } ResourceUtility.Realizes(lo_common_prefabs.loadedObjects[0].obj, MonoBehaviourSingleton <AppMain> .I._transform, -1); ResourceUtility.Realizes(lo_common_prefabs.loadedObjects[1].obj, MonoBehaviourSingleton <AppMain> .I._transform, -1); MonoBehaviourSingleton <AppMain> .I.SetMainCamera(Camera.get_main()); MonoBehaviourSingleton <AudioListenerManager> .I.SetFlag(AudioListenerManager.STATUS_FLAGS.CAMERA_MAIN_ACTIVE, true); MonoBehaviourSingleton <AppMain> .I.get_gameObject().AddComponent <WorldMapManager>(); MonoBehaviourSingleton <AppMain> .I.get_gameObject().AddComponent <FilterManager>(); MonoBehaviourSingleton <UIManager> .I.SetDisable(UIManager.DISABLE_FACTOR.INITIALIZE, false); MonoBehaviourSingleton <AppMain> .I.startScene = string.Empty; MonoBehaviourSingleton <GameSceneManager> .I.ChangeScene("Title", "Opening", UITransition.TYPE.CLOSE, UITransition.TYPE.OPEN, false); }
private IEnumerator LoadAndSetTips() { STRING_CATEGORY category = (!IsRush()) ? STRING_CATEGORY.TIPS : STRING_CATEGORY.RUSH_TIPS; int tips_count = StringTable.GetAllInCategory(category).Length; int tips_index; string tips; do { tips_index = Random.Range(1, tips_count + 1); if (MonoBehaviourSingleton <UserInfoManager> .IsValid() && MonoBehaviourSingleton <UserInfoManager> .I.userInfo.name == "/colopl_rob") { tips_index = 1; } Debug.Log((object)("Tip Counts: " + tips_count)); Debug.Log((object)("Tip_Index: " + tips_index)); tips = StringTable.Get(category, (uint)tips_index); }while ((string.IsNullOrEmpty(tips) || tips.Length <= 1) && tips_index != 1); LoadObject lo_image = null; if (!ResourceManager.internalMode) { LoadingQueue load_queue = new LoadingQueue(this); ResourceManager.enableCache = false; lo_image = ((!IsRush()) ? load_queue.Load(RESOURCE_CATEGORY.TIPS_IMAGE, ResourceName.GetTipsImage(tips_index), false) : load_queue.Load(RESOURCE_CATEGORY.RUSH_TIPS_IMAGE, ResourceName.GetRushTipsImage(tips_index), false)); ResourceManager.enableCache = true; if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } } if (lo_image != null && lo_image.loadedObject != null) { RemoveTexImage(); SetTexture((Enum)UI.TEX_IMAGE, lo_image.loadedObject as Texture); } string tips_title = string.Empty; string tips_desc = string.Empty; int br = tips.IndexOf('\n'); if (br >= 0) { tips_title = tips.Substring(0, br); tips_desc = tips.Substring(br + 1); } SetLabelText((Enum)UI.LBL_TIPS_TITLE, tips_title); SetLabelText((Enum)UI.LBL_TIPS_TITLE_REFLECT, tips_title); SetLabelText((Enum)UI.LBL_TIPS, tips_desc); }
private IEnumerator _LoadTutorialMessage(Action callback) { LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_tutorial = (!(tutorialMessage == null)) ? null : load_queue.Load(RESOURCE_CATEGORY.UI, "TutorialMessage", false); if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } if (lo_tutorial != null) { tutorialMessage = (CreatePrefabUI(lo_tutorial.loadedObject, null, null, false, base._transform, 6500, null) as TutorialMessage); } callback(); }
private IEnumerator LoadSE() { LoadingQueue loadQueue = new LoadingQueue(this); int[] seList = (int[])Enum.GetValues(typeof(SE)); int[] array = seList; foreach (int seId in array) { loadQueue.CacheSE(seId, null); } if (loadQueue.IsLoading()) { yield return((object)loadQueue.Wait()); } }
private IEnumerator LoadSE() { LoadingQueue load_queue = new LoadingQueue(this); int[] ids = (int[])Enum.GetValues(typeof(AUDIO)); int[] array = ids; foreach (int id in array) { load_queue.CacheSE(id, null); } if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } }
private IEnumerator LoadStamp(Transform root, int stampId) { LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_stamp = load_queue.LoadChatStamp(stampId, false); while (load_queue.IsLoading()) { yield return((object)null); } if (lo_stamp.loadedObject != null) { Texture2D stamp = lo_stamp.loadedObject as Texture2D; SetActive(root, UI.OBJ_SYMBOL, true); SetTexture(root, UI.TEX_STAMP, stamp); } }
private IEnumerator Start() { LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_event_banner = load_queue.LoadAndInstantiate(RESOURCE_CATEGORY.UI, "EventBanner"); if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } mEventBannerPrefab = (lo_event_banner.loadedObject as GameObject); AddPrefab(mEventBannerPrefab, lo_event_banner.PopInstantiatedGameObject()); mCenterOnChild1 = GetCtrl(UI.WRP_EVENT_BANNER1).GetComponent <UICenterOnChild>(); mCenterOnChild1.onCenter = OnCenter1; mCenterOnChild2 = GetCtrl(UI.WRP_EVENT_BANNER2).GetComponent <UICenterOnChild>(); mCenterOnChild2.onCenter = OnCenter2; }
private IEnumerator _SetFrame(string frameName) { if (!(mFrameName == frameName)) { LoadingQueue load = new LoadingQueue(this); LoadObject frameTexture = load.Load(RESOURCE_CATEGORY.DEGREE_FRAME, frameName, false); mFrame.set_enabled(false); if (load.IsLoading()) { yield return((object)load.Wait()); } mFrame.mainTexture = (frameTexture.loadedObject as Texture); mFrameName = frameName; mFrame.set_enabled(true); } }
private IEnumerator DoInitialize() { LoadingQueue loadQueue = new LoadingQueue(this); LoadObject loTex = loadQueue.Load(RESOURCE_CATEGORY.GACHA_POP_UP_ADVERTISEMENT, textureName, false); if (loadQueue.IsLoading()) { yield return((object)loadQueue.Wait()); } if (loTex.loadedObject != null) { SetTexture((Enum)UI.TEX_MAIN, loTex.loadedObject as Texture); } PlayTween((Enum)UI.OBJ_FRAME, true, (EventDelegate.Callback)null, false, 0); base.Initialize(); }
private IEnumerator DoLoad() { if (onLoadStart != null) { onLoadStart(); } LoadingQueue load_queue = new LoadingQueue(this); LoadObject lo_image = load_queue.Load(RESOURCE_CATEGORY.QUEST_LOCATION_IMAGE, ResourceName.GetQuestLocationImage(id), false); if (load_queue.IsLoading()) { yield return((object)load_queue.Wait()); } image = ResourceUtility.Realizes(lo_image.loadedObject, MonoBehaviourSingleton <StageManager> .I._transform, 5); QuestLocationImage c = image.GetComponent <QuestLocationImage>(); if (!(c == null)) { int w = uiTexture.width; int h = uiTexture.height; UIRenderTexture.ToRealSize(ref w, ref h); c.Init(w, h); Camera cam = image.GetComponent <Camera>(); if (!(cam == null)) { RenderTexture tex = cam.get_targetTexture(); if (!(tex == null)) { uiTexture.mainTexture = tex; FloatInterpolator anim = new FloatInterpolator(); anim.Set(0.25f, 0f, 1f, Curves.easeLinear, 0f, null); anim.Play(); while (anim.IsPlaying()) { yield return((object)null); uiTexture.alpha = anim.Update(); } if (onLoadComplete != null) { onLoadComplete(); } coroutine = null; } } } }