예제 #1
0
 /// <summary>
 /// Called when the mouse enters a 3d model with a collider in scene.
 /// </summary>
 private void OnMouseEnter()
 {
     //Show tooltip
     instance.Show(UIUtility.ColorString(tooltip, color), icon, width, showBackground);
 }
예제 #2
0
 /// <summary>
 /// Start is called on the frame when a script is enabled just before any of the Update methods is called the first time.
 /// </summary>
 protected virtual void Start()
 {
     radialMenu = UIUtility.Find <RadialMenu> (instanceName);
 }
예제 #3
0
 /// <summary>
 /// Called when the mouse pointer starts hovering the ui element.
 /// </summary>
 /// <param name="eventData">Event data.</param>
 public void OnPointerEnter(PointerEventData eventData)
 {
     //Show tooltip
     instance.Show(UIUtility.ColorString(tooltip, color), icon, width, showBackground);
 }
예제 #4
0
 public virtual void Show(MessageOptions settings, UnityAction <string> result, params string[] buttons)
 {
     Show(settings.title, UIUtility.ColorString(settings.text, settings.color), settings.icon, result, buttons);
 }