public override void DrawOutline(bool isSelected, AC.Menu _menu) { if (dragType == DragElementType.EntireMenu) { DrawStraightLine.DrawBox(_menu.GetRectAbsolute(GetDragRectRelative()), Color.white, 1f, false, 1); } else { if (!string.IsNullOrEmpty(elementName)) { MenuElement element = MenuManager.GetElementWithName(_menu.title, elementName); if (element != null) { Rect dragBox = _menu.GetRectAbsolute(GetDragRectRelative()); dragBox.x += element.GetSlotRectRelative(0).x; dragBox.y += element.GetSlotRectRelative(0).y; DrawStraightLine.DrawBox(dragBox, Color.white, 1f, false, 1); } } } base.DrawOutline(isSelected, _menu); }