<button>

An individual button defined within <buttons> or within <input> (for a text input form).

Child of: <buttons>, <input>
Parent of: <text>, <font>, <font_size>, <text_color>, <word_wrap>, <x>, <y>, <height>, <width>, <button_color>, <bold>, <opacity>, <next_node>, <link>, <assign name="" expr=""/>, <full_screen>

If <assign name="" expr=""/> is used within <button>, the assign will be executed only if the user clicks the button.

Example:

<button>
            <text>Button A</text>
            <font>Arial</font>
            <font_size>12</font_size>
            <text_color>0x000000</text_color>
            <word_wrap>OFF</word_wrap>
            <x>45</x>
            <y>100</y>
            <height>35</height>
            <width>75</width>
            <button_color>0xDDDDDD</button_color>
            <bold>YES</bold>
            <opacity>.5</opacity>
            <next_node>node_a</next_node>
            <link>http://www.my_site.com</link>
            <assign name="user_clicked_button_a" expr="'1'"/>
</button>

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