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(); }
public void UpdateCamera(string scene_name, string section_name, GameSceneTables.SectionData section_data) { if (!section_data.type.IsDialog()) { VIEW_TYPE vIEW_TYPE = viewType; vIEW_TYPE = ((scene_name == "StatusScene" && section_name != "StatusToSmith" && section_name != "ItemStorageSell" && !section_name.Contains("Exchange")) ? VIEW_TYPE.STATUS : VIEW_TYPE.SMITH); if (viewType != vIEW_TYPE) { MoveCamera(viewType, vIEW_TYPE, viewMode, viewMode); viewType = vIEW_TYPE; } } }
static public bool isOnly(VIEW_TYPE _form_view_type) { switch (_form_view_type) { // 유일성 필요 case VIEW_TYPE.VIEW_HOME: case VIEW_TYPE.VIEW_ORDER_LIST: return(true); default: return(false); } }
private IEnumerator DoInitialize() { bool wait = true; MonoBehaviourSingleton <ShopManager> .I.SendGetGoldPurchaseItemList(delegate { ((_003CDoInitialize_003Ec__Iterator34) /*Error near IL_0031: stateMachine*/)._003Cwait_003E__0 = false; }); while (wait) { yield return((object)null); } if (_nativeStoreList != null && _nativeStoreList.shopList != null && _nativeStoreList.shopList.Count > 0) { _isFinishGetNativeProductlist = true; } else { List <string> item_ids = (from o in MonoBehaviourSingleton <ShopManager> .I.purchaseItemList.shopList select o.productId).ToList(); Native.GetProductDatas(string.Join("----", item_ids.ToArray())); } while (!_isFinishGetNativeProductlist) { yield return((object)null); } _purchaseGemList = (from o in MonoBehaviourSingleton <ShopManager> .I.purchaseItemList.shopList where o.productType == 1 select o).ToList(); _purchaseBundleList = (from o in MonoBehaviourSingleton <ShopManager> .I.purchaseItemList.shopList where o.productType == 2 select o).ToList(); _purchaseMaterialList = (from o in MonoBehaviourSingleton <ShopManager> .I.purchaseItemList.shopList where o.productType == 3 select o).ToList(); gemTab = GetCtrl(UI.OBJ_GEM_TAB); bundleTab = GetCtrl(UI.OBJ_BUNDLE_TAB); materialTab = GetCtrl(UI.OBJ_MATERIAL_TAB); MonoBehaviourSingleton <GoWrapManager> .I.trackEvent("IAP_open", "Functionality"); CheckHightlightBtnTab(); string pId = GameSection.GetEventData() as string; if (pId != null) { _viewType = VIEW_TYPE.BUNDLE; } base.Initialize(); }
public void SetAndCreateView(VIEW_TYPE type) { viewType = type; CreateView(); }
private void MoveCamera(VIEW_TYPE type_from, VIEW_TYPE type_to, VIEW_MODE mode_from, VIEW_MODE mode_to) { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0028: Unknown result type (might be due to invalid IL or missing references) //IL_002d: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_00e3: Unknown result type (might be due to invalid IL or missing references) //IL_00e8: Unknown result type (might be due to invalid IL or missing references) //IL_00fe: Unknown result type (might be due to invalid IL or missing references) //IL_00ff: Unknown result type (might be due to invalid IL or missing references) //IL_0101: Unknown result type (might be due to invalid IL or missing references) //IL_0106: Unknown result type (might be due to invalid IL or missing references) //IL_0108: Unknown result type (might be due to invalid IL or missing references) //IL_010d: Unknown result type (might be due to invalid IL or missing references) //IL_0117: Unknown result type (might be due to invalid IL or missing references) //IL_011c: Unknown result type (might be due to invalid IL or missing references) //IL_0129: Unknown result type (might be due to invalid IL or missing references) //IL_012e: Unknown result type (might be due to invalid IL or missing references) //IL_0133: Unknown result type (might be due to invalid IL or missing references) //IL_0138: Unknown result type (might be due to invalid IL or missing references) //IL_013d: Unknown result type (might be due to invalid IL or missing references) //IL_0142: Unknown result type (might be due to invalid IL or missing references) //IL_0143: Unknown result type (might be due to invalid IL or missing references) //IL_0144: Unknown result type (might be due to invalid IL or missing references) //IL_0145: Unknown result type (might be due to invalid IL or missing references) //IL_014a: Unknown result type (might be due to invalid IL or missing references) //IL_014b: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Unknown result type (might be due to invalid IL or missing references) //IL_0155: Unknown result type (might be due to invalid IL or missing references) //IL_015a: Unknown result type (might be due to invalid IL or missing references) //IL_015f: Unknown result type (might be due to invalid IL or missing references) //IL_0165: Unknown result type (might be due to invalid IL or missing references) //IL_0166: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Unknown result type (might be due to invalid IL or missing references) //IL_0170: Unknown result type (might be due to invalid IL or missing references) //IL_0172: Unknown result type (might be due to invalid IL or missing references) //IL_0174: Unknown result type (might be due to invalid IL or missing references) //IL_0181: Unknown result type (might be due to invalid IL or missing references) //IL_0186: Unknown result type (might be due to invalid IL or missing references) //IL_01a0: Unknown result type (might be due to invalid IL or missing references) //IL_01a5: Unknown result type (might be due to invalid IL or missing references) //IL_01aa: Unknown result type (might be due to invalid IL or missing references) //IL_01ab: Unknown result type (might be due to invalid IL or missing references) //IL_01c2: Unknown result type (might be due to invalid IL or missing references) //IL_01c7: Unknown result type (might be due to invalid IL or missing references) //IL_01cc: Unknown result type (might be due to invalid IL or missing references) //IL_01ce: Unknown result type (might be due to invalid IL or missing references) //IL_01d0: Unknown result type (might be due to invalid IL or missing references) //IL_01d1: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01db: Unknown result type (might be due to invalid IL or missing references) //IL_01fb: Unknown result type (might be due to invalid IL or missing references) //IL_0200: Unknown result type (might be due to invalid IL or missing references) //IL_0203: Unknown result type (might be due to invalid IL or missing references) //IL_0208: Unknown result type (might be due to invalid IL or missing references) //IL_020d: Unknown result type (might be due to invalid IL or missing references) //IL_022b: Unknown result type (might be due to invalid IL or missing references) //IL_0230: Unknown result type (might be due to invalid IL or missing references) //IL_029c: Unknown result type (might be due to invalid IL or missing references) //IL_02a1: Unknown result type (might be due to invalid IL or missing references) //IL_02a5: Unknown result type (might be due to invalid IL or missing references) //IL_02ab: Unknown result type (might be due to invalid IL or missing references) //IL_02cc: Unknown result type (might be due to invalid IL or missing references) //IL_02d1: Unknown result type (might be due to invalid IL or missing references) //IL_02d5: Unknown result type (might be due to invalid IL or missing references) //IL_02db: Unknown result type (might be due to invalid IL or missing references) //IL_034e: Unknown result type (might be due to invalid IL or missing references) //IL_0353: Unknown result type (might be due to invalid IL or missing references) //IL_0358: Unknown result type (might be due to invalid IL or missing references) //IL_035c: Unknown result type (might be due to invalid IL or missing references) //IL_0362: Unknown result type (might be due to invalid IL or missing references) Quaternion val = Quaternion.Euler(0f, parameter.playerRot, 0f); Vector3 val2; Quaternion end_value; float end_value2; if (type_to == VIEW_TYPE.STATUS) { Vector3 playerPos = parameter.playerPos; if (mode_to == VIEW_MODE.AVATAR) { val = Quaternion.Euler(0f, parameter.avatarPlayerRot, 0f); } if (equipSetData != null) { OutGameSettingsManager.StatusScene.EquipViewInfo equipViewInfo = null; if (equipInfo != null) { equipViewInfo = parameter.GetEquipViewInfo(equipInfo.tableData.type.ToString()); } if (equipViewInfo == null) { equipViewInfo = parameter.GetEquipViewInfo(EQUIP_SLOT.ToType((viewMode != VIEW_MODE.AVATAR) ? equipSetData.index : EQUIP_SLOT.AvatatToEquip(equipSetData.index)).ToString()); } Vector3 cameraTargetPos = equipViewInfo.cameraTargetPos; if (mode_to == VIEW_MODE.AVATAR) { cameraTargetPos.x = 0f; } playerPos = val * cameraTargetPos + playerPos; val2 = Quaternion.AngleAxis(0f - equipViewInfo.cameraXAngle, Vector3.get_right()) * Quaternion.AngleAxis(0f - equipViewInfo.cameraYAngle, Vector3.get_up()) * Vector3.get_forward(); val2 = val * val2; val2 = playerPos + val2 * equipViewInfo.cameraDistance; } else { Vector3 val3 = val * Vector3.get_forward(); val2 = playerPos + val3 * parameter.cameraTargetDistance + new Vector3(0f, parameter.cameraHeight, 0f); playerPos += new Vector3(0f, parameter.cameraTargetHeight, 0f); } end_value = Quaternion.LookRotation(playerPos - val2); end_value2 = parameter.cameraFieldOfView; } else { OutGameSettingsManager.SmithScene smithScene = MonoBehaviourSingleton <OutGameSettingsManager> .I.smithScene; val2 = smithScene.createCameraPos; end_value = Quaternion.Euler(smithScene.createCameraRot); end_value2 = smithScene.createCameraFieldOfView; val = Quaternion.Euler(0f, parameter.playerRot, 0f); } float num = parameter.cameraMoveTime; if (MonoBehaviourSingleton <TransitionManager> .I.isTransing && !MonoBehaviourSingleton <TransitionManager> .I.isChanging) { num = 0f; } cameraTurningMode = (num > 0f && type_from == type_to && type_from == VIEW_TYPE.STATUS && mode_from != mode_to); cameraPosAnim.Set(num, targetCameraTransform.get_position(), val2, null, default(Vector3), null); cameraPosAnim.Play(); cameraRotAnim.Set(num, targetCameraTransform.get_rotation(), end_value, null, default(Quaternion), null); cameraRotAnim.Play(); cameraFovAnim.Set(num, targetCamera.get_fieldOfView(), end_value2, null, 0f, null); cameraFovAnim.Play(); if (playerLoader != null && !playerLoader.isLoading) { playerRotAnim.Set(num * 1.25f, playerLoader.get_transform().get_rotation(), val, null, default(Quaternion), null); playerRotAnim.Play(); } }
private void setViewType(VIEW_TYPE _form_view_type) { m_form_view_type = _form_view_type; m_is_only = isOnly(m_form_view_type); }
protected void setBaseFormData(Form _owner, VIEW_TYPE _form_view_type) { setOwner(_owner); setViewType(_form_view_type); }
private void OnQuery_ON_NORMAL() { currentType = VIEW_TYPE.NORMAL; UpdateTab(); }
private void OnQuery_ON_EVENT() { currentType = VIEW_TYPE.EVENT_LIST; UpdateTab(); }
private void OnQuery_MATERIAL_TAB() { _viewType = VIEW_TYPE.MATERIAL; RefreshUI(); }
private void OnQuery_BUNDLE_TAB() { _viewType = VIEW_TYPE.BUNDLE; RefreshUI(); }
private void OnQuery_GEM_TAB() { _viewType = VIEW_TYPE.GEM; RefreshUI(); }