ImageButton
Last updated
Was this helpful?
Last updated
Was this helpful?
Updated for version 3.36.
It's recommended to first read about the base item before reading about other items
Or if you need a divider type image:
texture
String/Idstring
Texture of the image
texture_rect
Table
Texture rectangle of the image, if used. Pivot points have to be left and top of what you need
icon_w
Number
Specific width for the image(unlike 'w' which gets subtracted with the x image offset)
icon_h
Number
Specific height for the image(unlike 'h' which gets subtracted with the y image offset)
img_offset
Table/Number
Offset for the image, useful if you want to have the image smaller while button itself bigger, defaults to {0,0}
img_offset_x
Number
Specific x offset for the image
img_offset_y
Number
Specific y offset for the image
highlight_image
Boolean
Should the image change color when highlighting(uses forground
color)
img_color
Color
Color of the image, defaults to foreground
color
SetImage(String/Idstring texture, Table texture_rect)
Sets a texture and texture rectangle for the item