<button_template name="">

An individual set of buttons defined within <button_templates>.

Child of: <button_templates>
Parent of: <buttons>

Examples:

<button_template name="abc">
            <buttons>
                        <button>
            <text>Button A</text>
            <font>Arial</font>
            <font_size>12</font_size>
            <text_color>0x000000</text_color>
<word_wrap>OFF</word_wrap>
<x>30</x>
<y>60</y>
<height>35</height>
<width>75</width>
            <button_color>0xDDDDDD</button_color>
            <bold>YES</bold>
            <opacity>.5</opacity>
            <next_node>node_a</next_node>
            <assign name="user_clicked_a" expr="'1'"/>
                        </button>
                        <button>
            <text>Button B</text>
            <font>Arial</font>
            <font_size>12</font_size>
            <text_color>0x000000</text_color>
<word_wrap>OFF</word_wrap>
<x>30</x>
<y>110</y>
<height>35</height>
<width>75</width>
            <button_color>0xDDDDDD</button_color>
            <bold>YES</bold>
            <opacity>.5</opacity>
            <next_node>node_b</next_node>
            <assign name="user_clicked_b" expr="'1'"/>
                        </button>
                        <button>
            <text>Button C</text>
            <font>Arial</font>
            <font_size>12</font_size>
            <text_color>0x000000</text_color>
<word_wrap>OFF</word_wrap>
<x>30</x>
<y>160</y>
<height>35</height>
<width>75</width>
            <button_color>0xDDDDDD</button_color>
            <bold>YES</bold>
            <opacity>.5</opacity>
            <next_node>node_c</next_node>
            <assign name="user_clicked_c" expr="'1'"/>
                        </button>
            </buttons>
</button_template>

To call a defined button template from a node:

<button_template name="abc"/>

Anything added or changed in the template call will override the template definition in <settings>. For example, to override the font size of a button template:

<button_template name="abc">
            <buttons>
                        <button>
                                    <font_size>16</font_size>
                        </button>
                        <button>
                                    <font_size>16</font_size>
                        </button>
                        <button>
                                    <font_size>16</font_size>
                        </button>
            </buttons>
</button_template>

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