Overlay

Control the overlay in Play Mode

Static Methods
setOpacity
static void setOpacity(opacity: number)

Set the opacity for the Play Mode overlay

Parameters
opacity Opacity value from 0.1 - 1
getState
static number getState()

Get the current state of the overlay

Return
number Current state of the overlay: 0 - Compressed or 1 - Expanded
setState
static void setState(state: number)

Change the current state of the overlay

Parameters
state 0 - Compressed or 1 - Expanded
getRegion
static Region getRegion()

Get the region of the overlay

Return
Region The region of the overlay
move
static void move(point: Point)

Move the overlay

Parameters
point Coordinates to move
spin
static void spin(start: bool = true)

Spin the overlay. Use with static app where the screen is rarely changed

Parameters
start false to stop the spin

© 2024 - Macrorify by KoK-CODE