Showing posts with label text. Show all posts
Showing posts with label text. Show all posts

<bg_color>

The background color for a text banner or a title, represented by a hexadecimal code preceded by 0x.

To find the hexadecimal code for the color you want, use a color picker such as this one.
Child of: <text_banner name="">, <title>, <title_defaults>
Parent of: Nothing

Example:

<bg_color>0xDDDDDD</bg_color>

Working example: Search for <bg_color></bg_color> in the file trivia_demo.xml.

<bold>

Specifies whether the text on a button is bold or not.

Default: NO

Child of: <button>, <button_defaults>
Parent of: Nothing

Examples:

<bold>YES</bold>

<bold>NO</bold>

Working example: Search for <bold></bold> in the file trivia_demo.xml.

<clear>

Clears the specified text banner from the screen.

Accepted values are YES and NO.

Child of: <text_banner name="">
Parent of: Nothing

Example:

<text_banners>
            <text_banner name="my_banner">
<clear>YES</clear>
            </text_banner>
</text_banners>

Working example: Search for <clear></clear> in the file trivia_demo.xml.

<font>

A font name. Must be uppercase.

Child of: <button>, <button_defaults>, <dropdown>, <input>, <text_banner name="">, <title>, <title_defaults>
Parent of: Nothing
See also: <font_size>

Example:

<font>Arial</font>

Working example: Search for <font></font> in the file trivia_demo.xml.

<font_size>

A font size in points.

Child of: <button>, <button_defaults>, <dropdown>, <input>, <text_banner name="">, <title>, <title_defaults>
Parent of: Nothing
See also: <font>

Example:

<font_size>12</font_size>

Working example: Search for <font_size></font_size> in the file trivia_demo.xml.

<text>

The text for a button, input field or text banner.

HTML tags such as <b> (bold), <i> (italics) and underline <u> (underline) may be used within <text> tags defined within <input>, <text_banner name=""> and <title> tags but not those defined within <button> tags.

Child of: <button>, <input>, <text_banner name="">, <title>
Parent of: Nothing

Examples:

<text>Button A</text>

<text>Enter your name here!</text>

<text><b>Welcome to my interactive video!</b></text>

<text><p align="center">Hello world!</p></text>

Working example: Search for <text></text> in the file trivia_demo.xml.

<text_banner name="">

A text banner defined within the <text_banners> tag.

A text banner will remain on the screen until it is explicitly cleared by specifying YES in the <clear> tag (see <text_banners>).

Child of: <text_banners>
Parent of: <clear>, <text>, <x>, <y>, <height>, <width>, <font>, <font_size>, <bg_color>, <text_color>

Example:

<text_banner name="my_banner">
               <clear>NO</clear>
               <text>Hello world!</text>
            <x>50</x
            <y>140</y>
               <height>35</height>
               <width>75</width>
               <font>Arial</font>
               <font_size>14</font_size>
               <bg_color>0xDDDDDD</bg_color>
               <text_color>#000000</text_color>
</text_banner>

Working example: Search for <text_banner name="">...</text_banner> in the file trivia_demo.xml.

<text_banners>

Contains one or more <text_banner name=""> tags for displaying text on the screen.


Examples:

<text_banners>
<text_banner name="hello">
               <clear>NO</clear>
            <text>Hello world!</text>
            <x>50</x>
            <y>140</y>
            <height>35</height>
            <width>75</width>
            <font>Arial</font>
            <font_size>14</font_size>
            <bg_color>0xDDDDDD</bg_color>
               <text_color>#000000</text_color>
</text_banner>
<text_banner name="welcome">
               <clear>NO</clear>
            <text>Welcome to my interactive video.</text>
            <x>20</x>
            <y>180</y>
            <height>35</height>
            <width>200</width>
            <font>Arial</font>
            <font_size>14</font_size>
            <bg_color>0xDDDDDD</bg_color>
            <text_color>#000000</text_color>
</text_banner>
</text_banners>

To clear a text banner:

<text_banners>
<text_banner name="my_banner">
            <clear>YES</clear>
</text_banner>
</text_banners>

To clear all text banners at once:

<text_banners>CLEARALL</text_banners>


Working example: Search for <text_banners>...</text_banners> in the file trivia_demo.xml.

<text_color>

The color of the text, represented by a hexadecimal code preceded by # (except when used within <button> or <button_default> tags, in which case the code must be preceded by 0x).

To find the hexadecimal code for the color you want, use a color picker such as this one.

Child of: <button>, <button_defaults>, <input>, <text_banner name="">, <title>, <title_defaults>
Parent of: Nothing

Examples:

<text_color>#000000</text_color>

<text_color>0x000000</text_color>

Working example: Search for <text_color></text_color> in the file trivia_demo.xml.

<title>

A title to display.

Titles, like buttons, are automatically cleared at each new node. Text that is to remain on the screen across multiple nodes should be defined in <text_banners>.

Only one title tag is allowed within a node tag. (Other title tags may be defined within other tags in a node, such as <mouse_click>. These will modify the title defined within <node>.)

Child of: <drag_drop>, <drag_move>, <mouse_click>, <mouse_down>, <mouse_move>, <mouse_out>, <mouse_over>, <node name="">
Parent of: <text>, <x>, <y>, <height>, <width>, <font>, <font_size>, <bg_color>, <text_color>
See also: <text_banners>

Example:

<title>
<text>My Title</text>
<x>75</x>
<y>150</y>
<height>35</height>
<width>85</width>
<font>Arial</font>
<font_size>16</font_size>
<bg_color>0xDDDDDD</bg_color>
<text_color>#000000</text_color>
</title>

<title> (drop-down)

The title for a drop-down list.

Child of: <dropdown>
Parent of: Nothing

Example:

<dropdown>
            <title>Click here for drop-down menu!</title>
            …
</dropdown>

<title_defaults>

Default settings for titles defined within nodes (not titles of drop-down lists).

Can be overridden as necessary.

Child of: <settings>
Parent of: <height>, <width>, <x>, <y>, <font_size>, <font>, <text_color>, <bg_color>

Example:

<title_defaults>
            <x>80</x>
            <y>50</y>           
            <height>35</height>
<width>50</width>
            <font_size>12</font_size>
            <font>Arial</font>
            <text_color>#000000</text_color>
<bg_color>0xDDDDDD</bg_color>
</title_defaults>

Working example: Search for <title_defaults>...</title_defaults> in the file trivia_demo.xml.

<word_wrap>

Allows text to be wrapped inside a button.

Accepted values are YES or NO.

Default: NO
Child of: <button>, <button_defaults>
Parent of: Nothing

Example:

<word_wrap>YES</word_wrap>

Working example: Search for <word_wrap></word_wrap> in the file trivia_demo.xml.