public override void receiveRightClick(int x, int y, bool playSound = true) { Point p = new Point(x, y); Point o = new Point(Area.X + zoom10, Area.Y + zoom10); if (FloatingComponent != null && FloatingComponent.InBounds(p, o)) { FloatingComponent.RightClick(p, o); return; } foreach (IInteractiveMenuComponent el in EventOrder) { if (el.InBounds(p, o)) { GiveFocus(el); FocusElement = el; el.RightClick(p, o); return; } } ResetFocus(); }
public override void RightClick(Point p, Point o) { CurrentTab?.RightClick(p, new Point(o.X + Area.X + zoom5, o.Y + Area.Y + zoom22)); }