/// <summary> /// Moves the mouse cursor to the middle of the title frame object /// </summary> public virtual void MoveTo() { Rectangle bounds = ItemBounds(); GUI.Log("Move the mouse over the " + Identity.Description, LogItemType.Action); ParentTitleFrame.MoveTo(bounds.X + (bounds.Width / 2), bounds.Y + (bounds.Height / 2)); }
/// <summary> /// Perform a double mouse click with the specified button in the middle of the title frame object /// </summary> /// <param name="button">The button to double click</param> public virtual void DoubleClick(MouseButton button) { Rectangle bounds = ItemBounds(); GUI.Log("Single " + button.ToString() + " click on the " + Identity.Description, LogItemType.Action); ParentTitleFrame.DoubleClickInternal(bounds.X + (bounds.Width / 2), bounds.Y + (bounds.Height / 2), button, MouseKeyModifier.None); }