Page: Introduction, Installation, Page Objects I, Page Objects II, Flow Control
As mentioned in previous project pages, presentation files are written using XML and each on-screen object, including the page itself, has a distinct set of properties. These properties, during execution of a presentation, are retrieved from disk and rendered as appropriate. This page and Page Objects II, present the XML details of each object currently supported by Aurora RT.
Text
<object id="1">
<type>text</type>
<font>Times New Roman</font>
<style>normal</style>
<alignment>left</alignment>
<size>20</size>
<text>Add your text here.</text>
<position>
<x>233</x>
<y>614</y>
</position>
<colour>
<alpha>255</alpha>
<red>0</red>
<green>0</green>
<blue>0</blue>
</colour>
</object>
Each object on a page must have a unique id, hence the id attribute on the first line. The text object above takes all the standard font attributes - the only additional attribute is the colour, which is specified using ARGB values (the example above is for black text).
Image
<object id="2">
<type>image</type>
<name>images\6A.jpg</name>
<log>MSG: image clicked #2</log>
<width>450</width>
<height>301</height>
<position>
<x>415</x>
<y>369</y>
</position>
</object>
The file name of the image should be placed in the 'name' tag field. You can include the full path to the file or, as in the above example, a subdirectory name can precede the file name.
Triangle
<object id="3">
<type>triangle</type>
<log>MSG: triangle clicked #3</log>
<vertices>
<x1>637</x1>
<y1>439</y1>
<x2>555</x2>
<y2>582</y2>
<x3>719</x3>
<y3>582</y3>
</vertices>
<colour>
<alpha>255</alpha>
<red>0</red>
<green>0</green>
<blue>0</blue>
</colour>
</object>
Aurora RT will draw lines from (x1, y1) to (x2, y2), finishing at (x3, y3). Aurora will not perform any sort of validation to check that the lines actually do join to create a triangle.