From PanoZona
DropDown |
Author | Marek Standio |
Module version | 1.3 |
Compatibility | SaladoPlayer 1.0 + |
DropDown is simple drop-down list for switching between panoramas. External change of panorama is reflected by selecting list element targeting to given panorama. You can decide about order and lables of elements on the list, change position of the list inside panorama window, and style it with different fonts and colors.
Configuration structure
Configuration details
DropDown
Attribute | Type | Sub-attribute | Type | Default | Values | Description |
Parent: modules
path | S | - | - | path to swf file | Mandatory attribute. Value points to module swf file. |
settings
Attribute | Type | Sub-attribute | Type | Default | Values | Description |
Parent: DropDown
style | O | opensUp | B | true | true, false | Determines direction in which list opens. |
fontFamily | S | Tahoma | Tahoma, Verdana, Courier | Type of used font. |
fontBold | B | true | true, false | Weight of font. |
fontSize | N | 20 | - | Size of used font. |
fontColor | N | #313931 | #000000 to #FFFFFF | Color of used font. |
plainColor | N | #000000 | #000000 to #FFFFFF | Background of plain list element. |
hoverColor | N | #848484 | #000000 to #FFFFFF | Background of selected list element. |
activeColor | N | #848484 | #000000 to #FFFFFF | Background of active list element. |
borderColor | N | #FFFFFF | #000000 to #FFFFFF | Color of list elements border. |
unfoldTween | O | transition | F | Linear.easeNone | avaible functions | Determines type of animation used when list is unfolding. |
time | N | 0.25 | - | Duration in seconds of list unfolding animation. |
foldTween | O | transition | F | Linear.easeNone | avaible functions | Determines type of animation used when list is folding. |
time | N | 0.25 | - | Duration in seconds of list foldnig animation. |
autoSwitch | B | - | true | true, false | Dwtermines if grups are automatically switched when user enters panoramas that are targeted from different groups. |
window
Attribute | Type | Sub-attribute | Type | Default | Values | Description |
Parent: dropDown
open | B | - | true | true, false | Determines visibility of module window on SaladoPlayer start. |
alpha | N | - | 1.0 | 0.1 to 1.0 | Transparency of module window content. |
align | O | horizontal | S | center | left, center, right | Horizontal alignment of module window against panorama window. |
vertical | S | bottom | top, middle, bottom | Vertical alignment of module window against panorama window. |
move | O | horizontal | N | 0 | - | Number of pixels module window is moved horizontally. |
vertical | N | -10 | - | Number of pixels module window is moved vertically. |
transition | O | type | S | slideDown | fade, slideUp, slideDown, slideLeft, slideRight | Determines kind of transition used when module window is opening/closing. |
openTween | O | transition | F | Linear.easeNone | avaible functions | Determines type of animation used when module window is opening. |
time | N | 0.5 | - | Duration in seconds of module window opening animation. |
closeTween | O | transition | F | Linear.easeNone | avaible functions | Determines type of animation used when module window is closing. |
time | N | 0.5 | - | Duration in seconds of module window closing animation. |
onOpen | S | - | - | action id | Action executed when module window changed state to closed. |
onClose | S | - | - | action id | Action executed when module window changed state to opened. |
group
Attribute | Type | Sub-attribute | Type | Default | Values | Description |
Parent: groups
id | S | - | - | - | Mandatory attribute. Must be unique among other groups. |
element
Attribute | Type | Sub-attribute | Type | Default | Values | Description |
Parent: group
target | S | - | - | panorama id | Mandatory attribute. Must be unique among other elements. Value contains id of panorama that given element is targetting to. |
label | S | - | - | - | Text describing panorama that element is targeting to. |
Attribute | Type | Sub-attribute | Type | Default | Values | Description |
Parent: group
id | S | - | - | - | Mandatory attribute. Must be unique among other elements. Value contains id of panorama that given element is targetting to. |
label | S | - | - | - | Label of extraElement. |
action | S | - | - | action id | Action executed when given extraElement is set to active. |
Exposed functions
setOpen
Type | Description | Function description |
B | Value assigned to open attribute. | Opens / closes map window on demand. Opening window once window is open makes no effect, same thing for closing window. |
toggleOpen
Type | Description | Function description |
- | - | Calling this function toggles map window open state. If called when window is opened it closes window, same thing other way around. |
setGroup
Type | Description | Function description |
S | group Id | Function sets currenty displayed group of elements. |
setActive
Type | Description | Function description |
S | extraElement Id | Sets state extraElement of given id to active, while setting all other extraElements as inactive. |