Meta_TexturedButtonStyle

A TexturedButtonStyle provides controls for texturing a Meta_Button as well as content layout controls.

Public Types


enum IDX

Property index.

Idx_Texture_normal

link - Texture to use to display normal state

Idx_TextureRect_normal

vec4f - Section of the texture to use, position and size in UV coordinates

Idx_Texture_hovering

link - Texture to use to display hovering state

Idx_TextureRect_hovering

vec4f - Section of the texture to use, position and size in UV coordinates

Idx_Texture_pressed

link - Texture to use to display pressed state

Idx_TextureRect_pressed

vec4f - Section of the texture to use, position and size in UV coordinates

Idx_Texture_toggled

link - Texture to use to display toggled state

Idx_TextureRect_toggled

vec4f - Section of the texture to use, position and size in UV coordinates

Idx_CornerSize

vec2f - Size of the corners in panel units

Idx_CornerTextureSize

vec2f - Size of the corner graphics in the texture, in UV coordinates

Idx_TextSize

float - Scalar applied to text to control its size

Idx_TextPadding

vec2f - Padding around text

Idx_TextColour

vec4f - Text colour; RGBA 0.0f to 1.0f

Idx_Font

link - Font to use to display the text (Meta_Font)

Idx_ImageSize

float - Scalar applied to image to control its size

Idx_ImagePosition

ImagePosition (int) - How to align the image around the text

Idx_HAlign

HAlign (int) - How to align the objects horizontally

Idx_VAlign

VAlign (int) - How to align the objects vertically

Idx_Borders

vec2f - Padding around the edge of the button

Idx_TextureRot_normal

float - Rotation of the texture (degrees) for the normal state

Idx_TextureRot_hovering

float - Rotation of the texture (degrees) for the hovering state

Idx_TextureRot_pressed

float - Rotation of the texture (degrees) for the pressed state

Idx_TextureRot_toggled

float - Rotation of the texture (degrees) for the toggled state


Values for Idx_ImagePosition.

IMAGEPOSITION_LEFT

(Symbols - C: "ImagePositionLeft", Lua: __TexturedButtonStyle_ImagePositionLeft)

IMAGEPOSITION_TOP

(Symbols - C: "ImagePositionTop", Lua: __TexturedButtonStyle_ImagePositionTop)

IMAGEPOSITION_RIGHT

(Symbols - C: "ImagePositionRight", Lua: __TexturedButtonStyle_ImagePositionRight)

IMAGEPOSITION_BOTTOM

(Symbols - C: "ImagePositionBottom", Lua: __TexturedButtonStyle_ImagePositionBottom)

IMAGEPOSITION_CENTRE

(Symbols - C: "ImagePositionCentre", Lua: __TexturedButtonStyle_ImagePositionCentre)

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtree_cppCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API