public IXUIInput m_Input_RoleName = null; //角色名字 public override void Init() { base.Init(); #region 进入游戏按钮 this.m_Button_EnterGame = base.GetUIObject("pn_create2/bt_entergame") as IXUIButton; if (null == this.m_Button_EnterGame) { Debug.Log("this.ButtonEnterGame == null"); this.m_Button_EnterGame = WidgetFactory.CreateWidget <IXUIButton>(); } #endregion #region 退回登陆界面按钮 this.m_Button_BackLogin = base.GetUIObject("pn_create2/bt_backlogin") as IXUIButton; if (null == this.m_Button_BackLogin) { Debug.Log("this.m_Button_Back == null"); this.m_Button_BackLogin = WidgetFactory.CreateWidget <IXUIButton>(); } #endregion #region 进入修饰角色头发等按钮 this.m_Button_Next = base.GetUIObject("pn_create1/bt_next") as IXUIButton; if (this.m_Button_Next == null) { Debug.LogWarning("ButtonNext == null"); this.m_Button_Next = WidgetFactory.CreateWidget <IXUIButton>(); } #endregion #region 返回到选择角色职业按钮 this.m_Button_BackSelectRoleType = base.GetUIObject("pn_create2/bt_back") as IXUIButton; #endregion #region 人物选择按钮 /*this.m_Button_Explorer = base.GetUIObject("Explorer") as IXUICheckBox; * this.m_Button_Engineer = base.GetUIObject("Engineer") as IXUICheckBox; * this.m_Button_SoulHunter = base.GetUIObject("SoulHunter") as IXUICheckBox; * this.m_Button_Cultivator = base.GetUIObject("Cultivator") as IXUICheckBox; * this.m_Button_Magician = base.GetUIObject("Magician") as IXUICheckBox; * this.m_Button_WitchDoctor = base.GetUIObject("WitchDoctor") as IXUICheckBox; */ this.m_List_RoleType = base.GetUIObject("pn_create1/sp_link/sp_roletype_bg/tb_roletype") as IXUIList; #endregion #region 人物性别 /* this.m_Button_RoleMan = base.GetUIObject("Sex/Man") as IXUICheckBox; * this.m_Buttin_RoleWoman = base.GetUIObject("Sex/Woman") as IXUICheckBox; */ #endregion #region 人物介绍 this.m_Label_RoleIntroduce = base.GetUIObject("pn_create1/sp_intro") as IXUIGroup; #endregion #region 人物视频 this.m_Sprite_RoleMovie = base.GetUIObject("pn_create1/sp_intro/sp_video/tx_video") as IXUIPicture; #endregion #region 人物名字 this.m_Input_RoleName = base.GetUIObject("pn_create2/sp_link/ip_username") as IXUIInput; #endregion }
public override void Init() { base.Init(); this.m_Button_Enter = (base.GetUIObject("bt_entergame") as IXUIButton); if (null == this.m_Button_Enter) { Debug.Log("Button_Enter is null!"); this.m_Button_Enter = WidgetFactory.CreateWidget <IXUIButton>(); } this.m_Label_Ver = (base.GetUIObject("lb_version") as IXUILabel); if (null == this.m_Label_Ver) { Debug.Log("Anchor/Label_Ver is null!"); this.m_Label_Ver = WidgetFactory.CreateWidget <IXUILabel>(); } /*this.m_Group_Input = (base.GetUIObject("Scale/Group_Input") as IXUIGroup); * if (null == this.m_Group_Input) * { * Debug.Log("Group_Input is null!"); * this.m_Group_Input = WidgetFactory.CreateWidget<IXUIGroup>(); * } */ this.m_Checkbox_Remember = (base.GetUIObject("sp_input_bg/cb_remenber") as IXUICheckBox); if (null == this.m_Checkbox_Remember) { Debug.Log("Checkbox_Remember is null!"); this.m_Checkbox_Remember = WidgetFactory.CreateWidget <IXUICheckBox>(); } this.m_Label_Register = (base.GetUIObject("sp_input_bg/bt_regist") as IXUIButton); if (null == this.m_Label_Register) { Debug.Log("Group_Input/Account/Label_Register is null!"); this.m_Label_Register = WidgetFactory.CreateWidget <IXUIButton>(); } this.m_Label_Forget = (base.GetUIObject("sp_input_bg/bt_forget") as IXUIButton); if (null == this.m_Label_Forget) { Debug.Log("Group_Input/Account/Label_Forget is null!"); this.m_Label_Forget = WidgetFactory.CreateWidget <IXUIButton>(); } this.m_Input_ID = (base.GetUIObject("sp_input_bg/ip_username") as IXUIInput); if (null == this.m_Input_ID) { Debug.Log("Group_Input/Input_ID is null!"); this.m_Input_ID = WidgetFactory.CreateWidget <IXUIInput>(); } this.m_Input_PW = (base.GetUIObject("sp_input_bg/ip_password") as IXUIInput); if (null == this.m_Input_PW) { Debug.Log("Group_Input/Input_PW is null!"); this.m_Input_PW = WidgetFactory.CreateWidget <IXUIInput>(); } }