The VerticalResizeImage allows you to create an image that will automatically resize to fit a window of any height.
VerticalResizeImage | The VerticalResizeImage allows you to create an image that will automatically resize to fit a window of any height. |
Implementation Details | The VerticalImage requires a set of texture coordinates to specify the different portions of the image. |
XML Definition | This is the VerticalResizeImage xml definition. |
XML Tag | |
Required Attributes | Required for the window element to create itself properly. |
texture | Name of the Ui Texture to use to create the tiled image.. |
Optional Attributes | These are optional. |
textureScale | The scale of the texture to be used for the image artwork. |
reverseFill | When set, the image will tile from bottom to top, rather than top to bottom. |
Required Elements | |
Sizes | The dimensions in the texture for each tillable component of the image. |
TexCoords | The texture coordinates for each component of the tile-able image. |
TexSlices | The texture slice references for each component of the tile-able image. |
Functions | The VerticalResizeImage must be defined entirely in XML and does not have any run-time functions. |
The VerticalImage requires a set of texture coordinates to specify the different portions of the image.
These are defined by the Sizes and TexCoords elements. See the following illustration for an example of how to determine the correct values. The texture shown on the left to create the HorizontalResizeImage used in the VerticalScrollbar on the right.
This is the VerticalResizeImage xml definition.
XML Tag | |
Required Attributes | Required for the window element to create itself properly. |
texture | Name of the Ui Texture to use to create the tiled image.. |
Optional Attributes | These are optional. |
textureScale | The scale of the texture to be used for the image artwork. |
reverseFill | When set, the image will tile from bottom to top, rather than top to bottom. |
Required Elements | |
Sizes | The dimensions in the texture for each tillable component of the image. |
TexCoords | The texture coordinates for each component of the tile-able image. |
TexSlices | The texture slice references for each component of the tile-able image. |
These are optional. You can use whichever apply to the DynamicImage you are creating.
The scale of the texture to be used for the image artwork. This is multiplied by the image’s <Size> to determine the texture dimensions.
A number value. (1.0 = 100%)
When set, the image will tile from bottom to top, rather than top to bottom.
A boolean value.
”true” | Tile top->bottom. |
”false” | Tile bottom->top. |
The dimensions in the texture for each tillable component of the image.
<Sizes top="20" middle="44" bottom="20" />
top | The pixel height of the top end of the image. This is not resized. |
middle | The pixel height of the middle tilable portion of the image. |
bottom | The pixel height of the bottom end of the image. This is not resized. |
top | 0 |
middle | 0 |
bottom | 0 |
The texture coordinates for each component of the tile-able image.
<TexCoords>
<Top x="715" y="380" />
<Middle x="715" y="409" />
<Bottom x="715" y="453" />
</TexCoords>
Top | The top left corner of the image. (not tiled). |
Middle | The coordinate used for the tile-able center of the image. |
Bottom | The bottom left corner of the image. (not tiled). |
For all coordinates...
x | 0 |
y | 0 |
The texture slice references for each component of the tile-able image.
<TexSlices>
<Top id="TopSlice" />
<Middle id="MiddleSlice" />
<Bottom id="BottomSlice" />
</TexSlices>
Left | The top left corner of the image. (not tiled). |
Middle | The coordinates used for the tile-able center of the image. |
Right | The top left corner of the image. (not tiled). |
For all slices...
id = “”