Crazy Eddie's GUI System
0.8.4
|
An Imageset is a collection of named regions upon some source surface, such as an image file or texture. In CEGUI terminology, each of these named regions is an Image and is the basic level of imagery used by CEGUI.
The reference for each element is arranged into sections, as described below:
version:
specifies the version of the resource file. Should be specified for all files, current CEGUI imageset version is: 2name:
Specifies the name that will be assigned to the Imageset in the CEGUI system. Required Attribute.imagefile:
Specifies the path to the image file containing the imagery for the imageset. Required attribute.resourceGroup:
Specifies the resource group identifier to pass to the ResourceProvider when loading the file given in the Imagefile
attribute. Optional attribute, default is the Imageset default group.autoScaled:
Property that specifies how to scale imagery in relation to the specified native resolution. The native resolution values are intended to indicate the resolution that would result in a one-to-one (i.e. unscaled) mapping from source to destination. At display resolutions higher than the native, the imagery will be scaled up to take up more space, and at display resolutions lower than the native, imagery will be scaled down to take up less space. Possible values for this attribute are as follows:nativeHorzRes:
When AutoScaled is enabled, specifies the horizontal screen resolution that will result in an unscaled, one-to-one mapping of pixels from the source image to the destination surface. Optional attribute, default is 640.nativeVertRes:
When AutoScaled is enabled, specifies the vertical screen resolution that will result in an unscaled, one-to-one mapping of pixels from the source image to the destination surface. Optional attribute, default is 480.
name:
Specifies the name that will be used to identify the image within the Imageset. Required attribute.xPos:
Specifies the X pixel co-ordinate of the top-left corner of the image on the source surface. Required attribute.yPos:
Specifies the Y pixel co-ordinate of the top-left corner of the image on the source surface. Required attribute.width:
Specifies the width of the image in pixels. Required attribute.height:
Specifies the height of the image in pixels. Required attibute.xOffset:
Specifies a horizontal offset to apply when rendering the image. Optional attribute, default is 0.yOffset:
Specifies a vertical offset to apply when rendering the image. Optional attribute, default is 0.