private bool OnClickCheckBoxWitchDoctor(IXUICheckBox checkBox) { if (checkBox.bChecked) { } return(true); }
public override void Init() { base.Init(); #region 开始匹配按钮 this.m_Button_StartMatch = base.GetUIObject("LastStep/StartMatch") as IXUIButton; if (this.m_Button_StartMatch == null) { Debug.Log("LastStep/StartMatch == null"); } #endregion #region 游戏模式选择,人机,匹配,新手 this.m_CheckBox_Match = base.GetUIObject("ModeSelect/Match") as IXUICheckBox; this.m_CheckBox_AI = base.GetUIObject("ModeSelect/ComputerAI") as IXUICheckBox; this.m_CheckBox_Training = base.GetUIObject("ModeSelect/Training") as IXUICheckBox; this.m_CheckBox_Custom = base.GetUIObject("ModeSelect/Custom") as IXUICheckBox; #endregion #region 游戏类型选择,经典和大乱斗;游戏地图选择;游戏匹配类型选择,排位和匹配 this.m_CheckBox_Classis = base.GetUIObject("MatchInterface/GameMode/Classis") as IXUICheckBox; this.m_CheckBox_Mass = base.GetUIObject("MatchInterface/GameMode/Mass") as IXUICheckBox; this.m_CheckBox_Map1 = base.GetUIObject("MatchInterface/GameMap/Map1") as IXUICheckBox; this.m_CheckBox_Map2 = base.GetUIObject("MatchInterface/GameMap/Map2") as IXUICheckBox; this.m_CheckBox_MatchMode = base.GetUIObject("MatchInterface/GameMode/MatchMode") as IXUICheckBox; this.m_CheckBox_RankMode = base.GetUIObject("MatchInterface/GameMode/RankMode") as IXUICheckBox; #endregion }
private bool OnClickCheckBoxCultivator(IXUICheckBox checkBox) { if (checkBox.bChecked) { } return(true); }
private bool OnClickCheckBoxSoulHunter(IXUICheckBox checkBox) { if (checkBox.bChecked) { } return(true); }
private bool OnClickCheckBoxMagician(IXUICheckBox checkBox) { if (checkBox.bChecked) { } return(true); }
private bool OnCheckBoxMatchMode(IXUICheckBox box) { if (box.bChecked) { this.uiBehaviour.m_Button_StartMatch.CachedTransform.parent.gameObject.SetActive(true); } return(true); }
private bool OnClickCheckBoxMan(IXUICheckBox checkBox) { if (checkBox.bChecked) { Debug.Log("男性"); this.m_btGender = (byte)0; } return(true); }
private bool OnCheckBoxMap2(IXUICheckBox box) { if (box.bChecked) { this.uiBehaviour.m_CheckBox_MatchMode.SetVisible(true); this.uiBehaviour.m_CheckBox_RankMode.SetVisible(true); Singleton <RoomManager> .singleton.MapId = 1; } return(true); }
private bool OnClickCheckBoxEngineer(IXUICheckBox checkBox) { if (checkBox.bChecked) { Debug.Log("选择工程师"); this.strRole = "Window"; this.m_iRoleIndex = 1; } return(true); }
/// <summary> /// 选中探险家 /// </summary> /// <param name="checkBox"></param> /// <returns></returns> private bool OnClickCheckBoxExplorer(IXUICheckBox checkBox) { if (checkBox.bChecked) { Debug.Log("选择探险家"); this.strRole = "Bright"; this.m_iRoleIndex = 0; } return(true); }
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>(); } }
private bool OnCheckboxRememberCheck(IXUICheckBox uiCheckBox) { bool result; if (null == uiCheckBox) { result = true; } else { UserOptions.Singleton.IsRememberAccount = uiCheckBox.bChecked; result = true; } return(result); }
/// <summary> /// 选择经典模式 /// </summary> private bool OnCheckBoxClassis(IXUICheckBox checkBox) { //this.uiBehaviour.m_CheckBox_Map1.SetVisible(true); //this.uiBehaviour.m_CheckBox_Map2.SetVisible(true); return(true); }