-
Notifications
You must be signed in to change notification settings - Fork 2
Image
Benedict Allen edited this page Nov 17, 2015
·
4 revisions
The Image is a clickable object with bitmap image content.
Extends Sheet
-
shader- The shader to apply. -
shader.pressed- The shader to apply when pressed.
Image( number x, number y, string imagePath )
Image( number x, number y, string imageContent )
Image( number x, number y, table image )Note:
table imageshould be formatted like
image[y][x] = { backgroundColour, textColour, character }Note, this element uses the
onPreDraw()andonMouseEvent()callbacks of Sheet.
Image:onClick( number button, number x, number y )Called when the button is clicked.
Image:onHold( number button, number x, number y )Called when the button is held.
Image.text - string
The text shown by the button.
- Exception
- DynamicValueException
- ExpressionException
- IncorrectConstructorException
- IncorrectParameterException
- ParserException
- ResourceLoadException
- ThreadRuntimeException