Group

A Group is a container for other elements. Child elements are rendered relative to the position, size, angle, and color of the group.

Syntax

<Group id="string" x="integer" y="integer" width="integer" height="integer"
          name="string" angle="float" pivotX="float" pivotY="float"
          alpha="integer" renderMode="SOURCE | MASK | ALL"
          tintColor="argb-color | rgb-color">
    <!-- Only the most common inner element is shown here. -->
    <PartText ... />
    ...
</Group>

Attributes

The Group element has the following attributes:

Required attributes

The following attributes are required:

name
The name of the group.
x, y, width, height

A collection of integers that specify the element's size and position.

These attributes are transformable.

Optional attributes

The following attributes are optional:

The Group element can optionally contain the following attributes:

id

A unique identifier for the group.

pivotX, pivotY

A two-dimensional pivot point about which the element rotates. Both values are floating-point numbers that are scaled to fit in the range $ [0, 1] $.

These attributes are transformable.

angle

A number of degrees, clockwise, that the element should be rotated about its pivot point.

This attribute is transformable.

alpha

Set the level of transparency that this element should have. A value of 0 indicates that the element should be completely transparent. A value of 255 indicates that the element should be completely opaque.

This attribute is transformable.

scaleX

The horizontal scaling factor to apply to this element.

This attribute is transformable.

scaleY

The vertical scaling factor to apply to this element.

This attribute is transformable.

renderMode

The element's render mode type. Possible values are: SOURCE (default), MASK, or ALL.

tintColor

Apply a tint color filter to the element. You must specify the color using either the ARGB format (#ff000000 = opaque black) or the RGB format (#000000 = black).

Inner elements

The Group element can contain the following inner elements: