void baseElement_MouseEnter(BaseElement sender, MouseEventArgs e) { if (!tooltip) { tooltip = ItemTooltip.Create(this); tooltip.Destroyed += tooltip_Destroyed; } }
void tooltip_Destroyed(BaseElement sender) { tooltip = null; }
void itemElement_MouseLeave(BaseElement sender, MouseEventArgs e) { if (tooltip) Destroy(tooltip.gameObject); }
internal void RemoveChild(BaseElement baseElement) { elements.Remove(baseElement); Destroy(baseElement.gameObject); }
public MouseDropEventArgs(BaseElement draggedObject, BaseElement dropTarget, Vector3 screenPosition) { this.draggedObject = draggedObject; this.dropTarget = dropTarget; this.screenPosition = screenPosition; }