-
Notifications
You must be signed in to change notification settings - Fork 27
/
11_setactive.xml
45 lines (44 loc) · 1.87 KB
/
11_setactive.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
<?xml version="1.0" encoding="utf-8" ?>
<!--
Each one of extraWaypoints can change active state on demand. This feature can be usefull
when ImageMap is used to display groups of panoramas shot at the same location.
http://panozona.com/wiki/Module:ImageMap
-->
<SaladoPlayer>
<global debug="true"/>
<panoramas>
<panorama id="checkerBlue" path="~panos/dz_checker_blue/checker_blue_f.xml" onEnter="setActiveW1" />
<panorama id="checkerGreen" path="~panos/dz_checker_green/checker_green_f.xml" onEnter="setActiveW2" />
<panorama id="checkerRed" path="~panos/dz_checker_red/checker_red_f.xml" onEnter="setActiveW2" />
</panoramas>
<modules>
<ImageMap path="~modules/imagemap/ImageMap-1.4.2.swf">
<viewer path="~modules/imagemap/skins/navigation_black_20x20.png"/>
<maps>
<map id="map1" path="~media/images/maps/map1.jpg" panShift="90">
<waypoints path="~modules/imagemap/skins/waypoints_button_20x20.png">
<extraWaypoint id="w1" position="x:200,y:350" action="onW1Click"/>
<extraWaypoint id="w2" position="x:500,y:200" action="onW2Click"/>
</waypoints>
</map>
</maps>
</ImageMap>
<DropDown path="~modules/dropdown/DropDown-1.3.swf">
<window align="horizontal:left,vertical:top" move="horizontal:20,vertical:20"/>
<settings opensUp="false"/>
<groups>
<group id="g1">
<element target="checkerBlue" label="Blue checker"/>
<element target="checkerGreen" label="Green checker"/>
<element target="checkerRed" label="Red checker"/>
</group>
</groups>
</DropDown>
</modules>
<actions>
<action id="onW1Click" content="SaladoPlayer.loadPano(checkerBlue)"/>
<action id="onW2Click" content="SaladoPlayer.loadPano(checkerGreen)"/>
<action id="setActiveW1" content="ImageMap.setActive(w1)"/>
<action id="setActiveW2" content="ImageMap.setActive(w2)"/>
</actions>
</SaladoPlayer>