// Token: 0x06000E62 RID: 3682 RVA: 0x0017B2F4 File Offset: 0x001794F4 public override void OnOpen(int arg1, int arg2) { if (GUIManager.Instance.bOpenOnIPhoneX) { ((RectTransform)base.transform).offsetMin = new Vector2(-GUIManager.Instance.IPhoneX_DeltaX, 0f); ((RectTransform)base.transform).offsetMax = new Vector2(GUIManager.Instance.IPhoneX_DeltaX, 0f); } this.Transformer = base.transform.GetChild(0); this.Transformer.GetChild(4).GetComponent <CustomImage>().hander = this; this.Transformer.GetChild(4).GetComponent <UIButton>().m_Handler = this; this.Transformer.GetChild(11).GetComponent <UIButton>().m_Handler = this; this.Transformer.GetChild(7).GetChild(0).GetComponent <Text>().font = GUIManager.Instance.GetTTFFont(); this.m_InputBoxText[0] = this.Transformer.GetChild(7).GetChild(0).GetComponent <Text>(); this.Transformer.GetChild(8).GetComponent <Text>().font = GUIManager.Instance.GetTTFFont(); this.m_InputBoxText[1] = this.Transformer.GetChild(8).GetComponent <Text>(); this.Transformer.GetChild(5).GetChild(0).GetComponent <Text>().font = GUIManager.Instance.GetTTFFont(); this.m_InputBoxText[2] = this.Transformer.GetChild(5).GetChild(0).GetComponent <Text>(); this.m_character = this.Transformer.GetChild(12).GetComponent <Text>(); this.m_character.font = GUIManager.Instance.GetTTFFont(); this.m_content = this.Transformer.GetChild(5).GetChild(1).GetComponent <Text>(); this.m_content.font = GUIManager.Instance.GetTTFFont(); this.m_content.text = this.DM.mStringTable.GetStringByID(4613u); this.m_descript = this.Transformer.GetChild(13).GetComponent <Text>(); this.m_descript.font = GUIManager.Instance.GetTTFFont(); this.m_error = this.Transformer.GetChild(9).GetChild(0).GetComponent <Text>(); this.m_error.font = GUIManager.Instance.GetTTFFont(); this.m_input = this.Transformer.GetChild(5).GetChild(0).GetComponent <UIEmojiInput>(); this.m_input.onValueChange.AddListener(delegate(string input) { this.ValueChange(input); }); this.m_input.onValidateInput = new UIEmojiInput.OnValidateInput(this.OnValidateInput); this.m_butt = this.Transformer.GetChild(4).GetChild(0).GetComponent <Text>(); this.m_butt.font = GUIManager.Instance.GetTTFFont(); this.m_butt.text = this.DM.mStringTable.GetStringByID(4715u); this.m_butt.color = (((this.Type = (ECaseByCaseType)arg1) >= ECaseByCaseType.ECBCT_ReNickName) ? Color.white : this.m_error.color); this.Transformer.GetChild(10).gameObject.AddComponent <ArabicItemTextureRot>(); UnityEngine.Object.Destroy(base.transform.GetChild(0).GetChild(0).GetComponent <IgnoreRaycast>()); HelperUIButton helperUIButton = base.gameObject.AddComponent <HelperUIButton>(); helperUIButton.m_Handler = this; helperUIButton.m_BtnID1 = 22; ECaseByCaseType type = this.Type; switch (type) { case ECaseByCaseType.ECBCT_ReNickName: { this.m_descript.text = this.DM.mStringTable.GetStringByID(9069u); Text component = this.Transformer.GetChild(8).GetComponent <Text>(); string stringByID = this.DM.mStringTable.GetStringByID(9099u); this.Transformer.GetChild(7).GetChild(0).GetComponent <Text>().text = stringByID; component.text = stringByID; break; } case ECaseByCaseType.ECBCT_SaveTalent: { this.m_descript.text = this.DM.mStringTable.GetStringByID(9069u); Text component2 = this.Transformer.GetChild(8).GetComponent <Text>(); string stringByID = this.DM.mStringTable.GetStringByID(931u); this.Transformer.GetChild(7).GetChild(0).GetComponent <Text>().text = stringByID; component2.text = stringByID; break; } case ECaseByCaseType.ECBCT_EquipMemorySetup: { this.m_descript.text = this.DM.mStringTable.GetStringByID(9069u); Text component3 = this.Transformer.GetChild(8).GetComponent <Text>(); string stringByID = this.DM.mStringTable.GetStringByID(9704u); this.Transformer.GetChild(7).GetChild(0).GetComponent <Text>().text = stringByID; component3.text = stringByID; break; } default: if (type != ECaseByCaseType.ECBCT_AllianceRename) { if (type != ECaseByCaseType.ECBCT_AllianceTag) { this.Sending = Protocol._MSG_REQUEST_ROLE_RENAME; this.Checking = Protocol._MSG_REQUEST_ROLE_NAME_CHECK; this.m_content.text = this.DM.mStringTable.GetStringByID(4718u); this.m_descript.text = this.DM.mStringTable.GetStringByID(4615u); this.Transformer.GetChild(7).GetChild(0).GetComponent <Text>().text = this.DM.mStringTable.GetStringByID(4717u); this.Transformer.GetChild(8).GetComponent <Text>().text = this.DM.mStringTable.GetStringByID(4716u); } else { this.Checking = Protocol._MSG_REQUEST_ALLIANCE_TAGCHECK; this.Sending = Protocol._MSG_REQUEST_ALLIANCE_MODIFY_TAG; this.m_content.text = this.DM.mStringTable.GetStringByID(4617u); this.m_descript.text = this.DM.mStringTable.GetStringByID(4618u); Text component4 = this.Transformer.GetChild(8).GetComponent <Text>(); string stringByID = this.DM.mStringTable.GetStringByID(4616u); this.Transformer.GetChild(7).GetChild(0).GetComponent <Text>().text = stringByID; component4.text = stringByID; } } else { this.Checking = Protocol._MSG_REQUEST_ALLIANCE_NAMECHACK; this.Sending = Protocol._MSG_REQUEST_ALLIANCE_MODIFY_NAME; this.m_content.text = this.DM.mStringTable.GetStringByID(4613u); this.m_descript.text = this.DM.mStringTable.GetStringByID(4615u); Text component5 = this.Transformer.GetChild(8).GetComponent <Text>(); string stringByID = this.DM.mStringTable.GetStringByID(4612u); this.Transformer.GetChild(7).GetChild(0).GetComponent <Text>().text = stringByID; component5.text = stringByID; } break; case ECaseByCaseType.ECBCT_Preselectedteam: { this.m_descript.text = this.DM.mStringTable.GetStringByID(9069u); Text component6 = this.Transformer.GetChild(8).GetComponent <Text>(); string stringByID = this.DM.mStringTable.GetStringByID(992u); this.Transformer.GetChild(7).GetChild(0).GetComponent <Text>().text = stringByID; component6.text = stringByID; this.m_content.text = this.DM.mStringTable.GetStringByID(4617u); break; } } this.Invalid = this.Transformer.GetChild(9).gameObject; this.Tick = this.Transformer.GetChild(10).gameObject; this.door = (GUIManager.Instance.FindMenu(EGUIWindow.Door) as Door); }
// Token: 0x0600189E RID: 6302 RVA: 0x00295074 File Offset: 0x00293274 public override void OnOpen(int arg1, int arg2) { this.DM = DataManager.Instance; this.GM = GUIManager.Instance; this.m_transform = base.transform; this.tmpFont = this.GM.GetTTFFont(); UIText component = this.m_transform.GetChild(5).GetComponent <UIText>(); component.font = this.tmpFont; component.text = this.DM.mStringTable.GetStringByID(12027u); this.AllText.Add(component); this.DontHaveText = this.m_transform.GetChild(6).GetComponent <UIText>(); this.DontHaveText.font = this.tmpFont; this.DontHaveText.text = this.DM.mStringTable.GetStringByID(12030u); this.AllText.Add(this.DontHaveText); this.m_transform.GetChild(7).GetComponent <UIButton>().m_Handler = this; this.m_transform.GetChild(7).gameObject.AddComponent <ArabicItemTextureRot>(); this.m_transform.GetChild(8).GetChild(0).GetComponent <UIButton>().m_Handler = this; this.m_transform.GetChild(8).GetComponent <CustomImage>().hander = this; this.m_transform.GetChild(8).GetChild(0).GetComponent <CustomImage>().hander = this; if (this.GM.bOpenOnIPhoneX) { this.m_transform.GetChild(8).GetComponent <CustomImage>().enabled = false; } this.tFront1 = this.m_transform.GetChild(9); for (int i = 0; i < 3; i++) { this.Box[i].PressImage = this.tFront1.GetChild(i).GetComponent <Image>(); this.Box[i].PressImageSA = this.tFront1.GetChild(i).GetComponent <UISpritesArray>(); this.Box[i].ClockImage = this.tFront1.GetChild(i + 3).GetComponent <Image>(); this.Box[i].Clock2Image = this.tFront1.GetChild(i + 6).GetComponent <Image>(); this.Box[i].BtnTopText = this.tFront1.GetChild(i + 9).GetComponent <UIText>(); this.Box[i].BtnTopText.font = this.tmpFont; this.AllText.Add(this.Box[i].BtnTopText); this.Box[i].TotalTimeText = this.tFront1.GetChild(i + 12).GetComponent <UIText>(); this.Box[i].TotalTimeText.font = this.tmpFont; this.AllText.Add(this.Box[i].TotalTimeText); this.Box[i].OpenTimeText = this.tFront1.GetChild(i + 15).GetComponent <UIText>(); this.Box[i].OpenTimeText.font = this.tmpFont; this.AllText.Add(this.Box[i].OpenTimeText); this.Box[i].TimeStr = StringManager.Instance.SpawnString(15); } this.tFront1.GetChild(18).GetComponent <UIButton>().m_Handler = this; this.tFront1.GetChild(19).GetComponent <UIButton>().m_Handler = this; this.tFront1.GetChild(20).GetComponent <UIButton>().m_Handler = this; this.tFront1.GetChild(21).GetComponent <UIButton>().m_Handler = this; this.tFront1.GetChild(22).GetComponent <UIButton>().m_Handler = this; this.tFront1.GetChild(23).GetComponent <UIButton>().m_Handler = this; for (int j = 0; j < 3; j++) { this.Box[j].HintButton = this.tFront1.GetChild(24 + j).GetComponent <UIButton>(); this.Box[j].HintButton.m_Handler = this; UIButtonHint uibuttonHint = this.Box[j].HintButton.gameObject.AddComponent <UIButtonHint>(); uibuttonHint.m_eHint = EUIButtonHint.DownUpHandler; uibuttonHint.Parm1 = 12026; uibuttonHint.m_DownUpHandler = this; } this.tFront2 = this.m_transform.GetChild(10); HelperUIButton helperUIButton = this.tFront2.gameObject.AddComponent <HelperUIButton>(); helperUIButton.m_Handler = this; helperUIButton.m_BtnID1 = 2; helperUIButton.m_BtnID2 = 1; this.Front_TitleText = this.tFront2.GetChild(4).GetComponent <UIText>(); this.Front_TitleText.font = this.tmpFont; this.AllText.Add(this.Front_TitleText); this.Front_CheckText = this.tFront2.GetChild(8).GetChild(0).GetComponent <UIText>(); this.Front_CheckText.font = this.tmpFont; this.AllText.Add(component); this.Front_TotalTimeText = this.tFront2.GetChild(10).GetComponent <UIText>(); this.Front_TotalTimeText.font = this.tmpFont; this.Front_TotalTimeText.alignment = TextAnchor.MiddleCenter; this.AllText.Add(this.Front_TotalTimeText); this.Front_OpenTimeText = this.tFront2.GetChild(12).GetComponent <UIText>(); this.Front_OpenTimeText.font = this.tmpFont; this.AllText.Add(this.Front_OpenTimeText); this.Front_MessageText = this.tFront2.GetChild(13).GetComponent <UIText>(); this.Front_MessageText.font = this.tmpFont; this.Front_MessageText.text = this.DM.mStringTable.GetStringByID(12032u); this.AllText.Add(this.Front_MessageText); this.Front_ItemNameText = this.tFront2.GetChild(17).GetComponent <UIText>(); this.Front_ItemNameText.font = this.tmpFont; this.AllText.Add(this.Front_ItemNameText); this.Front_ItemCountText = this.tFront2.GetChild(18).GetComponent <UIText>(); this.Front_ItemCountText.font = this.tmpFont; this.AllText.Add(this.Front_ItemCountText); this.tFront2.GetChild(5).GetComponent <UIButton>().m_Handler = this; this.tFront2.GetChild(5).GetComponent <CustomImage>().hander = this; this.tFront2.GetChild(7).GetComponent <UIButton>().m_Handler = this; this.tFront2.GetChild(8).GetComponent <UIButton>().m_Handler = this; this.GM.InitianHeroItemImg(this.tFront2.GetChild(16), eHeroOrItem.Item, 10, 0, 0, 0, true, true, true, false); this.Front_ItemCountStr = StringManager.Instance.SpawnString(150); this.Front_HINTBtn = this.tFront2.GetChild(19).GetComponent <UIButton>(); this.Front_HINTBtn.m_Handler = this; this.Front_HINTBtn.m_BtnID2 = 2; UIButtonHint uibuttonHint2 = this.Front_HINTBtn.gameObject.AddComponent <UIButtonHint>(); uibuttonHint2.m_eHint = EUIButtonHint.DownUpHandler; uibuttonHint2.Parm1 = 12026; uibuttonHint2.m_DownUpHandler = this; this.tTimeObj = this.m_transform.GetChild(11); this.tTimeObj.GetChild(0).GetComponent <UIButton>().m_Handler = this; this.tTimeObj.GetChild(0).GetComponent <UIButton>().transition = Selectable.Transition.None; UIButtonHint uibuttonHint3 = this.tTimeObj.GetChild(0).gameObject.AddComponent <UIButtonHint>(); uibuttonHint3.m_eHint = EUIButtonHint.DownUpHandler; uibuttonHint3.Parm1 = 12048; uibuttonHint3.m_DownUpHandler = this; component = this.tTimeObj.GetChild(2).GetComponent <UIText>(); component.font = this.tmpFont; component.text = this.DM.mStringTable.GetStringByID(8110u); this.AllText.Add(component); this.CountTimeText = this.tTimeObj.GetChild(3).GetComponent <UIText>(); this.CountTimeText.font = this.tmpFont; this.AllText.Add(this.CountTimeText); this.CountTimeStr = StringManager.Instance.SpawnString(30); this.ActorT[0] = this.m_transform.GetChild(15); this.ActorT[1] = this.m_transform.GetChild(16); this.ActorT[2] = this.m_transform.GetChild(17); this.AB = AssetManager.GetAssetBundle("Role/darkbox", out this.AssetKey, false); if (this.AB != null) { this.AR = this.AB.LoadAsync("m", typeof(GameObject)); } if (this.GM.bOpenOnIPhoneX) { ((RectTransform)this.tFront2).offsetMin = new Vector2(-this.GM.IPhoneX_DeltaX, 0f); ((RectTransform)this.tFront2).offsetMax = new Vector2(this.GM.IPhoneX_DeltaX, 0f); } this.tFront2.GetComponent <RectTransform>().localPosition = Vector3.zero; this.tFront2.SetParent(this.GM.m_SecWindowLayer, false); this.CheckHaveText(); this.SetTimeText(); GUIManager.Instance.UpdateUI(EGUIWindow.Door, 1, 2); }