void btnPageClick(int i, GameToggleButton btn) { btn.AddChangeCallBack(delegate(bool value) { changePageType(i, value); }); }
protected override void OnLoopItemBecameVisible() { InitItem(); m_self_tog.AddChangeCallBack(ChangeState); m_self_tog.SetValueWithoutOnChangedNotify(m_isChoose); }
//private GameUIEffect m_effect = null; protected override void OnInit() { base.OnInit(); m_Icon_img = Make <GameImage>("Image"); m_Num_lab = Make <GameLabel>("Text"); m_item_btn = Make <GameToggleButton>(gameObject); m_item_btn.AddChangeCallBack(btnClick); m_Rota_tween = gameObject.GetComponent <TweenRotationEuler>(); //this.m_effect = Make<GameUIEffect>("UI_xuanzhong"); }
protected override void OnLoopItemBecameVisible() { if (null == m_icon_name) { return; } m_toggle.AddChangeCallBack(OnToggleChecked); m_icon.Sprite = m_icon_name; m_toggle.SetValueWithoutOnChangedNotify(isCheck); }
protected override void OnOpenUI(GUIFrame uiLogic) { m_tog = uiLogic.LogicHandler.Make <GameToggleButton>(m_CurConf.btnName[0]); if (m_tog != null) { m_srcTran = m_tog.gameObject.transform; m_tog.AddChangeCallBack(OnToggle); } else { m_btn = uiLogic.LogicHandler.Make <GameButton>(m_CurConf.btnName[0]); if (m_btn != null) { m_srcTran = m_btn.gameObject.transform; m_btn.AddClickCallBack(OnBtn); } } m_TweenScale = m_srcTran.gameObject.AddComponent <TweenScale>(); m_TweenScale.To = Vector3.one * 1.1f; m_TweenScale.m_tweenStyle = UITweenerBase.TweenStyle.Loop; m_TweenScale.Duration = 2f; base.OnOpenUI(uiLogic); }
public override void OnShow(object param) { m_toggle.AddChangeCallBack(OnClicked); m_effect.Visible = true; }
public override void OnShow(object param) { base.OnShow(param); m_item_btn.AddChangeCallBack(BtnClick); }