public override void Initialize() { //IL_0221: Unknown result type (might be due to invalid IL or missing references) SetActive((Enum)UI.OBJ_CHANGE, MonoBehaviourSingleton <LoungeMatchingManager> .I.IsInLounge()); SetActive((Enum)UI.OBJ_CREATE, !MonoBehaviourSingleton <LoungeMatchingManager> .I.IsInLounge()); if (MonoBehaviourSingleton <LoungeMatchingManager> .I.IsInLounge()) { GetCurrentLoungeSettings(); } else { CopyLoungeCreateRequestParam(); } levelNames = new List <string>(); levelList = new List <int>(); CreateLevelPopText(); for (int i = 0; i < levelList.Count; i++) { if (levelList[i] == createRequest.minLevel) { minLevelIndex = i; } if (levelList[i] == createRequest.maxLevel) { maxLevelIndex = i; } } capacityNames = new List <string>(); capacityList = new List <int>(); CreateCapacityPopText(); for (int j = 0; j < capacityList.Count; j++) { if (capacityList[j] == createRequest.capacity) { capacityIndex = j; break; } } labels = StringTable.GetAllInCategory(STRING_CATEGORY.LOUNGE_LABEL); if (labels.Length > (int)createRequest.label) { labelIndex = (int)createRequest.label; } lockNames = new List <string>(); lockNames.Add(base.sectionData.GetText("PUBLIC")); lockNames.Add(base.sectionData.GetText("LOCK")); lockIndex = (createRequest.isLock ? 1 : 0); if (string.IsNullOrEmpty(createRequest.loungeName)) { createRequest.SetLoungeName(base.sectionData.GetText("DEFAULT_LOUNGE_NAME")); } SetInput((Enum)UI.IPT_NAME, createRequest.loungeName, 16, (EventDelegate.Callback)OnChangeLoungeName); this.StartCoroutine(LoadStampList()); }
public override void Initialize() { CopyLoungeSearchRequestParam(); labels = StringTable.GetAllInCategory(STRING_CATEGORY.LOUNGE_LABEL); if (labels.Length > (int)searchRequest.label) { labelIndex = (int)searchRequest.label; } SetActive((Enum)UI.LBL_DEFAULT, string.IsNullOrEmpty(searchRequest.loungeName)); SetInput((Enum)UI.IPT_NAME, searchRequest.loungeName, 16, (EventDelegate.Callback)((LoungeConditionSettings)this).OnChangeLoungeName); GameSection.SetEventData(false); InitializeBase(); }
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); }