AW HUD ELEMENT TEXTURE OFFSET X

From ActiveWiki
Jump to navigation Jump to search


Minimum requirements
Added in version 4.1
SDKbuild 64


AW_HUD_ELEMENT_TEXTURE_OFFSET_X

Type

Integer

Description

X offset of element texture, in pixels.

Notes

This attribute does not apply to text element.

If the stretch flag is not supplied, then textures are rendered with their upper-left corner set to the upper-left corner of the element, and then drawing the texture (repeating or trimming as needed) until the element is filled in.

If you have a 128x128 texture and you specify an X offset of 64, then it will begin drawing the texture so that the center of the texture is aligned with the left edge of the element.

Used by