NoveltyML reference > Objects

<Object>
Base type for Novelty objects. [Noninstantiable]

Attribute Description Type
name [Required] Unique name for this object String
position Position ("x,y") Vector2
pivot Pivot point ("x,y") Vector2
rotation Rotation in radians Float
scale Scale multiplier Float
size Size ("width, height") Vector2
visible Visibility Boolean
rgb Color ("red, green, blue") Vector3
opacity Opacity Float
blending Blending mode Integer
auto-size Automatic sizing based on parent's size ("width%, height%") Vector2
auto-position Automatic position based on parent's size ("x%, y%") Vector2
pixelated Disable linear interpolation Boolean

Remarks: auto-position and auto-size overrides position and size respectively.

Child tags Description Count
<Behaviour> Object behaviours 0 or more
<Meta> Meta information
1
<Object> Other objects 0 or more


<Behaviour>
Adds an automatic behaviour to the object.

See also: Behaviour types.

Attribute Description Type
type Behaviour type String

Remarks: Additional attributes may be required depending on type.
Only one behaviour is permitted per type and object.


<Meta>
Meta information about this asset

Attribute Description Type
author Author/creator of this asset String
comment Custom comment String
thumbnail Filename of thumbnail image String

Remarks: Thumbnails should be 96x96 pixels in size, but doesn't have to.


Instantiable object types

Type Description
<Border> Object that stretches according to size
<Button> Button object
<Canvas> Container that draws children onto a generated texture
<Group> Container of objects
<Image> Static or animated image object
<Set> Set of images or other objects
<SystemText> Text object that uses Windows fonts
<Text> Text object that uses bitmap fonts


Back to top