예제 #1
0
 void baseElement_MouseEnter(BaseElement sender, MouseEventArgs e)
 {
     if (!tooltip)
     {
         tooltip = ItemTooltip.Create(this);
         tooltip.Destroyed += tooltip_Destroyed;
     }
 }
예제 #2
0
 void tooltip_Destroyed(BaseElement sender)
 {
     tooltip = null;
 }
예제 #3
0
 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;
 }