LavishGUI:lguitexture (Data Type)

From Lavish Software Wiki
Jump to navigation Jump to search

Description

This data type provides control for texture elements.

Members

  • filepath Filename: Image filename
  • int ColorKey: 32-bit color to consider transparent
  • float Alpha: See LavishGUI:Textures
  • int ColorMask: 32-bit color applied to this texture.
  • int Border: Uniform size, in pixels, of the border area of this texture. See LavishGUI:Textures
  • int Orientation: Rotation applied to this texture. see LavishGUI:Textures
  • int Left: Leftmost pixel of the base image to use for this texture
  • int Right: Rightmost pixel of the base image to use for this texture
  • int Top: Topmost pixel of the base image to use for this texture
  • int Bottom: Bottom-most pixel of the base image to use for this texture
  • bool HasRect: shows if a rectangle of the image was ever specified for the texture
  • bool HasAlpha: shows if the texture has an alpha level specified
  • bool HasColorMask: shows if the texture has a color mask specified
  • bool Bold: shows boldness status

Methods

  • Copy[lguitexture]: Sets this texture by copying another texture (example: UIElement[x]:Copy["UIElement[y].Texture"] ). Requires Inner Space build 4698 or later.
  • SetRect[#,#,#,#]: Set the rectangle of the image. The order of #s is Left, Top, Right, Bottom.
  • SetAlpha[#]: Sets the alpha level to the specified floating # <normally 0-1>.
  • SetColorMask[Hex]: Sets the color mask to the given hex #.
  • UnsetRect: Unsets the rectangle values of the image.
  • UnsetAlpha: Unsets the alpha level.
  • UnsetColorMask: Unsets the color mask.
  • SetOrientation[#]: Sets the orientatation to #. See LavishGUI:Textures
  • SetBorder[#]: Sets the border size to #. See LavishGUI:Textures

Inherits

Returns

Same as Filename

Examples

See Also