protected override void InitWidget() { this.SKillView = this.mRoot.Find("SkillView").gameObject; this.SkillLearn = this.mRoot.Find("SkillLearn").gameObject; this.MySelf = this.mRoot.Find("MySelf").gameObject; this.ButtonSpeak = this.mRoot.Find("bt_voice").gameObject; GuideController.singleton.AddGuideEventButton(this.ButtonSpeak); this.SpeakMask = this.mRoot.Find("sp_black").gameObject; this.entity = new EntityLearn(); this.entity.Init(this.MySelf.transform); this.SpeakToken = this.mRoot.Find("sp_token").gameObject; this.m_Iamge_SkillIcon = this.mRoot.Find("SkillLearn/SkillIcon").GetComponent <Image>(); this.m_Text_SkillInfo = this.mRoot.Find("SkillLearn/SkillInfo/lb_info").GetComponent <Text>(); this.m_Text_SkillName = this.mRoot.Find("SkillLearn/SkillName/Text").GetComponent <Text>(); this.m_Text_Token = this.mRoot.Find("sp_token/lb_info").GetComponent <Text>(); this.m_Button_Close = this.mRoot.Find("SkillView/bt_close").GetComponent <Button>(); this.m_Button_Close.onClick.AddListener(this.OnClickButtonClose); GuideController.singleton.AddGuideEventButton(this.m_Button_Close.gameObject); this.m_List_Skills = this.mRoot.Find("SkillView/Viewport/Content").GetComponent <XUIList>(); this.m_List_Skills.RegisterListSelectEventHandler(this.OnSelectSkillItem); this.m_Button_Test = this.mRoot.Find("SkillLearn/bt_speakTest").GetComponent <Button>(); this.m_Button_Test.onClick.AddListener(this.OnClickButtonSpeakTest); GuideController.singleton.AddGuideEventButton(this.m_Button_Test.gameObject); this.m_Button_Learn = this.mRoot.Find("SkillLearn/bt_learn").GetComponent <Button>(); this.m_Button_Learn.onClick.AddListener(this.OnClickButtonSelfSpeak); GuideController.singleton.AddGuideEventButton(this.m_Button_Learn.gameObject); this.m_Button_Back = this.mRoot.Find("bt_back").GetComponent <Button>(); this.m_Button_Back.onClick.AddListener(this.OnClickButtonBack); GuideController.singleton.AddGuideEventButton(this.m_Button_Back.gameObject); }
protected override void InitWidget() { this.m_List_Level = this.mRoot.Find("list_level").GetComponent <XUIList>(); this.m_Button_Back = this.mRoot.Find("bt_back").GetComponent <Button>(); this.m_Button_EnterGame = this.mRoot.Find("bt_enter").GetComponent <Button>(); this.m_Button_Back.onClick.AddListener(this.OnclickBackButton); this.m_Button_EnterGame.onClick.AddListener(this.OnClickEnterGameButton); this.m_List_Level.RegisterListSelectEventHandler(this.OnSelectLevelListItem); }
protected override void InitWidget() { this.SpeechMask = this.mRoot.Find("sp_bg").gameObject; this.m_List_SkillItems = this.mRoot.Find("SkillView").GetComponent <XUIList>(); this.m_Text_WaveInfo = this.mRoot.Find("lb_waveInfo").GetComponent <Text>(); this.m_Text_LevelName = this.mRoot.Find("lb_levelName").GetComponent <Text>(); this.getMoneyAnim = this.mRoot.Find("guoguan").gameObject; this.getMoneyAnim.gameObject.SetActive(false); this.m_Button_GetMoney = this.mRoot.Find("guoguan/bt_sure").GetComponent <Button>(); this.m_Text_Money = this.mRoot.Find("guoguan/lb_num").GetComponent <Text>(); this.m_Button_GetMoney.onClick.AddListener(this.ShowNextLevelWindow); }
protected override void InitWidget() { this.m_Input_UsernameInput = this.mRoot.FindChild("Login/UserNameInput").GetComponent <UIInput>(); this.m_Input_PasswordInput = this.mRoot.FindChild("Login/PasswordInput").GetComponent <UIInput>(); this.m_Button_EnterGame = this.mRoot.FindChild("Login/LoginButton").GetComponent <UIButton>(); this.m_Button_ServerListButton = this.mRoot.FindChild("Select/Button/ServerListButton").GetComponent <UIButton>(); this.m_Button_Select = this.mRoot.FindChild("Select/Button/SelectButton").GetComponent <UIButton>(); this.m_Panel_Select = this.mRoot.FindChild("Select").GetComponent <UIPanel>(); this.m_List_Dianxin = this.mRoot.FindChild("Select/ServerList/Table/Dianxin/DianxinGrid").GetComponent <XUIList>(); this.m_List_Wangtong = this.mRoot.FindChild("Select/ServerList/Table/Wangtong/WangtongGrid").GetComponent <XUIList>(); this.m_Sprite_IconBG = this.mRoot.FindChild("Select/Signal/IconBG").GetComponent <XUISprite>(); this.m_Sprite_Icon = this.mRoot.FindChild("Select/Signal/IconAnim").GetComponent <XUISprite>(); this.m_Sprite_ServerName = this.mRoot.FindChild("Select/Signal/Name/ServerNameIcon").GetComponent <XUISprite>(); this.m_List_Dianxin.RegisterListOnClickEventHandler(new ListOnClickEventHandler(this.OnServerListItemClick)); UIEventListener.Get(this.m_Button_EnterGame.gameObject).onClick += OnLoginSumbit; UIEventListener.Get(this.m_Button_Select.gameObject).onClick += OnLoginServer; UIEventListener.Get(this.m_Button_ServerListButton.gameObject).onClick = (x) => { this.m_bShowServerList = !this.m_bShowServerList; ShowSelectServer(); }; }
public FlyTextManagerBase(XUIList uiList) { this.m_uiList = uiList; }
public SystemInfoFlyTextManager(XUIList list) : base(list) { this.m_fTotalTime = -1f; }
protected override void InitWidget() { this.List_SysInfo = this.mRoot.Find("list_sysInfo").GetComponent <XUIList>(); }