v1.0.8.18: Visibility 'Hide unless hovered' option
Made-with: Cursor
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user