An instance of a UI element created via gui.create(). UI element coordinate system starts in the upper left corner of the element.
CATCHABLE_EVENTS (optional)
when defined, the UI element will catch the events specified within, and will call the handleEvent element on itself when caught.
w
direct access to the actual (scaled) width of the UI element.
h
direct access to the actual (scaled) height of the UI element.
rawW
direct access to the width of the UI element.
rawH
direct access to the height of the UI element.
x
direct access to the X position of the UI element relative to the parent (or absolute position if no parent is present)
y
direct access to the Y position of the UI element relative to the parent (or absolute position if no parent is present)
localX
direct access to the X position of the UI element relative to the parent (if present)
localY
direct access to the Y position of the UI element relative to the parent (if present)
scaler
the string name of the size scaler to use.
_scaleHor
boolean, whether the width of this element should be scaled with the screen resolution.
_scaleVert
boolean, whether the height of this element should be scaled with the screen resolution.
_inheritScalingState
boolean, whether this element should inherit the scaling state of the element it's parented to.
_propagateScalingState
boolean, whether this element should propagate it's scaling states onto its children. canPropagateKeyPress