public void HideHoverButtonList() { bool hide = true; if (IntersectingMouse()) { hide = false; } if (HoverButtonList.IntersectingMouse()) { hide = false; } for (int i = 0; i < HoverButtonList.Count; i++) { if (HoverButtonList[i].ClickButtonList.IntersectingMouse() || HoverButtonList[i].HoverButtonList.IntersectingMouse()) { hide = false; break; } } if (!DrawEnabled) { hide = true; } if (hide) { HoverButtonList.Hide(); } }
public virtual void OnRightClicked() { rightPressing_ = false; ClickButtonList.Show(); HoverButtonList.Hide(); if (RightClicked != null) { RightClicked(this); } }
public virtual void OnClicked() { pressing_ = false; ClickButtonList.Hide(); HoverButtonList.Hide(); if (Clicked != null) { Clicked(this); } }