21 for (
int i = 0; i < array.Length; i++)
36 if (!componentOf || !componentOf.transform.GetComponentInParent<
UIContextMenu>())
45 if (uITooltip2.name == data.id)
47 uITooltip = uITooltip2;
50 uITooltip.SetActive(enable:
true);
52 if (uITooltip.cg.alpha < 0.1f)
54 uITooltip.cg.alpha = 1f;
57 uITooltip.hideFunc = delegate
61 timer += Time.smoothDeltaTime;
74 GameObject gameObject = target.FindTagInParents(
"PivotTooltip", includeInactive:
false);
77 uITooltip.Rect().pivot = gameObject.transform.Rect().pivot;
78 vector = gameObject.transform.position;
82 uITooltip.Rect().pivot = uITooltip.orgPivot;
85 uITooltip.transform.position = vector + data.offset + uITooltip.offset;
86 Util.ClampToScreen(uITooltip.Rect(), 50);
96 uITooltip.cg.alpha = 0f;
97 uITooltip.data =
null;
98 uITooltip.SetActive(enable:
false);
102 uITooltip.hideFunc = delegate
104 timer += Time.smoothDeltaTime;
119 if (!(uITooltip.name ==
disableHide) && uITooltip.gameObject.activeSelf)
123 uITooltip.cg.alpha -= Time.smoothDeltaTime * 5f;
127 uITooltip.cg.alpha += Time.smoothDeltaTime * 5f;
129 if (uITooltip.
cg.alpha <= 0f)
131 uITooltip.data =
null;
132 uITooltip.SetActive(enable:
false);