Showing posts with label drop-down menus. Show all posts
Showing posts with label drop-down menus. Show all posts

<dropdown>

A drop-down menu.


Example:

<dropdown>
            <title>Click here for a drop-down menu!</title>
            <font>Arial</font>
            <font_size>14</font_size>
            <x>50</x>
            <y>125</y>
            <height>35</height>
            <width>95</width>
            <opacity>.3</opacity>
            <dropdown_color>0xFFFFFF</dropdown_color>
            <dropdown_opacity>.1</dropdown_opacity>
            <next_node>a_node</next_node>
            <items>
                        <item label="Choice 1" data="1"/>
                        <item label="Choice 2" data="2"/>
                        <item label="Choice 3" data="3"/>
            </items>
</dropdown>

<dropdown_color>

The color of a drop-down menu (the list that drops down after the user has clicked the drop-down), 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: <dropdown>
Parent of: Nothing

Example:

<dropdown_color>0xDDDDDD</dropdown_color>

<dropdown_opacity>

The opacity of a drop-down menu (the list that drops down after the user has clicked the drop-down).

The value must be between 0 (transparent) and 1 (opaque).

Child of: <dropdown>
Parent of: Nothing

Example:

<dropdown_opacity>.3</dropdown_opacity>

<item label="" data=""/>

An individual selection within a drop-down menu.

The value in label="" is displayed to the user; the value in data="" is written to a variable named dropdown_value when the user selects that item. The variable can then be evaluated and used in the next node.

Child of: <items>
Parent of: Nothing
See also: <dropdown>

Example:

<item label="Choice 1" data="1"/>

<items>

The list of selections within a drop-down menu.

Child of: <dropdown>
Parent of: <item label="" data=""/>

Example:

<items>
            <item label="Choice 1" data="1"/>
            <item label="Choice 2" data="2"/>
            <item label="Choice 3" data="3"/>
</items>

<opacity>

The opacity of an element such as a button.

The value must be between 0 (transparent) and 1 (opaque).

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

Example:

<opacity>.5</opacity>

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

<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>