UIScaleDetector
A modifier class that detects scale changes on a GUI element.
Properties
| Property | Type | Default |
|---|---|---|
Name | string | "UIScaleDetector" |
isResizing | boolean | false |
activeHandle | any | nil |
MinSize | Vector2 | Vector2.new(40, 40) |
RespectScreenBounds | boolean | true |
newSizeCallback | any | nil |
_startMouse | Vector3 | Vector3.new(0, 0, 0) |
_startAbsPos | Vector2 | Vector2.new(0, 0) |
_startAbsSz | Vector2 | Vector2.new(0, 0) |
Functions
makeRect
Arguments
x, y, width, heightReturns
This function returns nothing.
mouseInRect
Arguments
rectReturns
This function returns nothing.
getParentMetrics
Arguments
parent, windowReturns
This function returns nothing.
getHandleRect
Arguments
key, absPos, absSizeReturns
This function returns nothing.
propTable.render
Arguments
lib, object, dt, structs, rendererReturns
This function returns nothing.
API
instance:makeRect(x, y, width, height)
instance:mouseInRect(rect)
instance:getParentMetrics(parent, window)
instance:getHandleRect(key, absPos, absSize)
instance:render(lib, object, dt, structs, renderer)