ui.Image

ui.Image

class

Square picture of a texture, such as an item image

Fields

NameTypeDescription
image Texture Texture drawn, an item image or a ui.thumbnail; nil draws nothing and keeps the space
size number Side of the square in slate units
color string Tint multiplied into the texture, same forms as ui.Text color
Inherited from ui.Widget (3)
  • visible Hidden widgets keep their place in the tree and take no input
  • fill Share of the free space this widget takes along an HBox or VBox; zero keeps it at the size of its content
  • valign Where the widget sits in the height of an HBox row: "fill", "top", "center" or "bottom"
Inherited from Object (5)