v1.0.8.18: Visibility 'Hide unless hovered' option

Made-with: Cursor
This commit is contained in:
2026-02-28 15:09:42 -05:00
parent 1c25918c22
commit 3618fc5121
6 changed files with 34 additions and 5 deletions
+7
View File
@@ -256,6 +256,13 @@ namespace HSUI.Interface
{
return (new List<Vector2>(), new List<Vector2>());
}
/// <summary>Returns the screen-space bounding box of the element for hover detection (e.g. visibility "hide unless hovered").</summary>
public virtual (Vector2 min, Vector2 max) GetScreenBounds(Vector2 origin)
{
var basePos = origin + ParentPos();
return (basePos + MinPos, basePos + MaxPos);
}
#endregion
}