21 for (
int i = 0; i < array.Length; i++)
36 if (!componentOf || !componentOf.transform.GetComponentInParent<
UIContextMenu>())
45 if (uITooltip.name == data.id)
50 t.SetActive(enable:
true);
52 if (t.cg.alpha < 0.1f)
61 t.hideTimer += Time.smoothDeltaTime;
62 return t.hideTimer > 0.2f;
74 GameObject gameObject = target.FindTagInParents(
"PivotTooltip", includeInactive:
false);
77 t.Rect().pivot = gameObject.transform.Rect().pivot;
78 vector = gameObject.transform.position;
82 t.Rect().pivot = t.orgPivot;
85 t.transform.position = vector + data.offset + t.offset;
86 Util.ClampToScreen(t.Rect(), 20);
98 t.SetActive(enable:
false);
102 t.hideFunc = delegate
104 t.hideTimer += Time.smoothDeltaTime;
105 return t.hideTimer > 0.2f;
120 if (!(uITooltip.name ==
disableHide) && uITooltip.gameObject.activeSelf)
124 uITooltip.cg.alpha -= Time.smoothDeltaTime * 5f;
128 uITooltip.cg.alpha += Time.smoothDeltaTime * 5f;
130 if (uITooltip.
cg.alpha <= 0f)
132 uITooltip.data =
null;
133 uITooltip.SetActive(enable:
false);