ScreenButton
A button that can display images on itself, meaning that it works like a Screen and a Button at the same time.
The resolution of the screen inside the button is 16x16.
Properties
ButtonState boolean read only
Returns
true
if the button is currently pressed,false
otherwise.
ButtonDown boolean read only
A boolean flag which will be true only in the time tick the corresponding button changes its state to pressed.
A boolean flag which will be true only in the time tick the corresponding button changes its state to released.
An InputSource to be used to trigger the button state.
The VideoChip the screen part of this button is bound to.
The offset of the screen's top-left position in the corresponding VideoChip's overall rendering buffer.
The width of the screen in pixels.
The height of the screen in pixels.
Events
ScreenButtonEvent : { ButtonDown boolean, ButtonUp boolean, Type string }
Triggered when the ScreenButton is pressed or released.
*ButtonDown
istrue
if the button was just pressed.
*ButtonUp
istrue
is the button was just released.
*Type
is"ScreenButtonEvent"
.