+EA 23.180 Nightly - Plugin.UI
August 15, 2025
2 files modified.
Important Changes
None.
TooltipManager
public void ShowTooltip(TooltipData data, Transform target)
cs
return;
}
}
UITooltip uITooltip = tooltips[0];
UITooltip t = tooltips[0];
UITooltip[] array = tooltips;
foreach (UITooltip uITooltip2 in array)
foreach (UITooltip uITooltip in array)
{
if (uITooltip2.name == data.id)
if (uITooltip.name == data.id)
{
uITooltip = uITooltip2;
t = uITooltip;
}
}
uITooltip.SetActive(enable: true);
uITooltip.SetData(data);
if (uITooltip.cg.alpha < 0.1f)
t.SetActive(enable: true);
t.SetData(data);
if (t.cg.alpha < 0.1f)
{
uITooltip.cg.alpha = 1f;
t.cg.alpha = 1f;
}
float timer = 0f;
uITooltip.hideFunc = delegate
t.hideTimer = 0f;
t.hideFunc = delegate
{
if (target == null || !InputModuleEX.IsPointerOver(target))
{
timer += Time.smoothDeltaTime;
return timer > 0.2f;
t.hideTimer += Time.smoothDeltaTime;
return t.hideTimer > 0.2f;
}
timer = 0f;
t.hideTimer = 0f;
return false;
};
if (uITooltip.followType == UITooltip.FollowType.None)
if (t.followType == UITooltip.FollowType.None)
{
return;
}
Vector3 vector = ((uITooltip.followType == UITooltip.FollowType.Mouse) ? EInput.uiMousePosition : target.position);
if (uITooltip.followType == UITooltip.FollowType.Pivot)
Vector3 vector = ((t.followType == UITooltip.FollowType.Mouse) ? EInput.uiMousePosition : target.position);
if (t.followType == UITooltip.FollowType.Pivot)
{
GameObject gameObject = target.FindTagInParents("PivotTooltip", includeInactive: false);
if ((bool)gameObject)
{
uITooltip.Rect().pivot = gameObject.transform.Rect().pivot;
t.Rect().pivot = gameObject.transform.Rect().pivot;
vector = gameObject.transform.position;
}
else
{
uITooltip.Rect().pivot = uITooltip.orgPivot;
t.Rect().pivot = t.orgPivot;
}
}
uITooltip.transform.position = vector + data.offset + uITooltip.offset;
Util.ClampToScreen(uITooltip.Rect(), 20);
t.transform.position = vector + data.offset + t.offset;
Util.ClampToScreen(t.Rect(), 20);
}
public void HideTooltips(bool immediate = false)
{
UITooltip[] array = tooltips;
foreach (UITooltip uITooltip in array)
foreach (UITooltip t in array)
{
if (immediate)
{
uITooltip.cg.alpha = 0f;
uITooltip.data = null;
uITooltip.SetActive(enable: false);
continue;
t.cg.alpha = 0f;
t.data = null;
t.SetActive(enable: false);
}
float timer = 0f;
uITooltip.hideFunc = delegate
else
{
timer += Time.smoothDeltaTime;
return timer > 0.2f;
};
t.hideFunc = delegate
{
t.hideTimer += Time.smoothDeltaTime;
return t.hideTimer > 0.2f;
};
}
}
}
UITooltip
cs
public LayoutElement layout;
[NonSerialized]
public float hideTimer;
private void Awake()
{
orgPivot = this.Rect().pivot;