|
The tag <item type="text"> displays a simple text the screen.
It takes the following parameters, one per line:
- <position ... />
Specifies the center of the text. Takes two arguments x="" and y=""
specifying the X and Y coordinates respectively as a floating point
value.
Examples:
<position x="0.0" y="0.0" />
Places the text at the center of the screen
<position x="-40.0" y="-40.0" />
Places the text in the top left part of the screen.
<position x="40.0" y="40.0" />
Places the text in the lower right part of the screen.
- <size ... />
Specifies the size of the text. Takes two arguments w="" and h=""
specifying the width and height respectively as a floating point value.
Examples:
<size w="40.0" h="20.0" />
Makes the text twice as wide as it its height.
<size w="10.0" h="50" />
Makes the text a thin, vertical line.
- <text>...</text>
Specifies the text to be displayed.
Examples:
<text>Hello World!</text>
Displays "Hello World!"
|