-
Notifications
You must be signed in to change notification settings - Fork 27
/
02_open.xml
47 lines (46 loc) · 2.12 KB
/
02_open.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="utf-8"?>
<!--
You can set module as closed by default, and open/close it by calling proper functions. Assign actions that
will be executed whenever module changes "open" state, so this change could be reflected in your interface,
for example by changing state of buttons.
../../_manual/index.html?module_imagemap.html
-->
<SaladoPlayer>
<global debug="true">
<trace align="horizontal:left"/>
</global>
<panoramas>
<panorama id="checkerBlue" path="~panos/dz_checker_blue/checker_blue_f.xml"/>
</panoramas>
<modules>
<ImageMap path="~modules/imagemap/ImageMap-1.4.2.swf">
<window open="false" onOpen="onOpenMap" onClose="onCloseMap"/>
<close path="~media/images/misc/close.png" move="vertical:-10,horizontal:10"/>
<viewer path="~modules/imagemap/skins/navigation_black_20x20.png"/>
<maps>
<map id="map2" path="~media/images/maps/map2.jpg">
<waypoints path="~modules/imagemap/skins/waypoints_button_20x20.png">
<waypoint target="checkerBlue" position="x:300,y:400"/>
</waypoints>
</map>
</maps>
</ImageMap>
<ImageButton path="~modules/imagebutton/ImageButton-1.3.swf">
<button id="mapPanel">
<window align="horizontal:left,vertical:middle"/>
<subButtons>
<subButton id="buttonOpen" path="~media/images/buttons/glossy_green.png" move="vertical:-30" action="openMap"/>
<subButton id="buttonToggle" path="~media/images/buttons/glossy_yellow.png" move="horizontal:50" action="toggleOpenMap"/>
<subButton id="buttonClose" path="~media/images/buttons/glossy_red.png" move="vertical:30" action="closeMap"/>
</subButtons>
</button>
</ImageButton>
</modules>
<actions>
<action id="openMap" content="ImageMap.setOpen(true)"/>
<action id="closeMap" content="ImageMap.setOpen(false)"/>
<action id="toggleOpenMap" content="ImageMap.toggleOpen()"/>
<action id="onOpenMap" content="ImageButton.setActive(buttonOpen,true);ImageButton.setActive(buttonClose,false)"/>
<action id="onCloseMap" content="ImageButton.setActive(buttonOpen,false);ImageButton.setActive(buttonClose,true)"/>
</actions>
</SaladoPlayer>