public override void DoubleClick(MouseEventArgs e, GUIContainer container) { //This is a label. Nothing happens when you click on it. }
public override void DoubleClick(MouseEventArgs e, GUIContainer container) { this.SelectedIndex = ((e.Position.Y + container.DrawingBounds.Y) / this.ItemDisplayBounds.Y) - 1; this.ItemDoubleClickHandler(this.SelectedIndex); }
/// <summary> /// Called whenever this GUI element is clicked on. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void DoubleClick(MouseEventArgs e, GUIContainer container) { this.DoubleClickEvent?.Invoke(this, new ClickEventArgs(e, container)); }
public override void DoubleClick(MouseEventArgs e, GUIContainer container) { //Single click is good enough for now }
public override void Click(MouseEventArgs e, GUIContainer container) { }
public void PopupChild(GUIContainer child) { this.Child = child; }
/// <summary> /// Called whenever this GUI element is clicked on. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public abstract void DoubleClick(MouseEventArgs e, GUIContainer container);
public override void DoubleClick(MouseEventArgs e, GUIContainer container) { //Nothing to see here }