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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
- <!--
krpano 1.0.8 - scenes example with a image map
- a scene is like an external pano xml file
- it can contains all possible elements - plugins,hotspots,events,...
-->
- <krpano version="1.0.8" >
- <!-- text styles for startup info
-->
<textstyle name="infostyle"
origin="top"
edge="top"
yoffset="10"
textalign="center"
background="false"
border="false"
fontsize="40"
textcolor="0xFFFFFF"
bold="false"
effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);"
showtime="1.0"
fadetime="1.0"
/>
- <!-- scenes
-->
- <!-- first scene/pano
-->
- <include url="test0.xml"/>
<plugin name="data" keep="true"/>
<autorotate enabled="true"/>
<!-- second scene/pano
-->
<include url="test1.xml"/>
<plugin name="data" keep="true"/>
<autorotate enabled="true"/>
- <!-- global settings
-->
<plugin name="map"
url="testdata/map/map.png"
keep="true"
align="lefttop"
x="10" y="10"
alpha="0.5"
handcursor="false"
scalechildren="true"
onclick="action(closemap);"
/>
<plugin keep="true"
name="spot0"
onclick="set(plugin[data].autorotate,get(autorotate.enabled));
set(autorotate.enabled,false);
loadpano(test0.xml);
set(autorotate.enabled,get(plugin[data].autorotate));
plugin[map].activatespot(spot0);"
url="testdata/graphics/spots/spot0.png"
align="lefttop"
edge="center"
parent="map"
x="43.9331%" y="71.9251%"
/>
<plugin keep="true"
name="spot1"
onclick="set(plugin[data].autorotate,get(autorotate.enabled));
set(autorotate.enabled,false);
loadpano(test1.xml);
set(autorotate.enabled,get(plugin[data].autorotate));
plugin[map].activatespot(spot1);"
url="testdata/graphics/spots/spot0.png"
align="lefttop"
edge="center"
parent="map"
x="20.7113%" y="69.2513%"
/>
- <!-- radar plugin, set heading with "plugin[radar].heading"
-->
<plugin name="radar"
url="%SWFPATH%/plugins/radar.swf"
zorder="1"
keep="true"
mask="mapmask"
heading="-30"
parent="map"
align="lefttop"
edge="center"
x="20.7113%" y="69.2513%"
linecolor="0"
fillcolor="0xFF0000"
scale="1"
visible="true"
/>
- <!-- mask for radar
-->
<plugin name="mapmask"
url="testdata/map/map.png"
keep="true"
parent="map"
x="10" y="10"
enabled="false" />
- <!-- actions
-->
- <!--
activatespot action,
- this action has two arguments:
- %1 = the current spot
- %2 = the current radar heading
-->
<action name="activatespot">
set(plugin[activespot].parent, plugin[%1]);
set(plugin[activespot].visible, true);
copy(plugin[radar].x, plugin[%1].x);
copy(plugin[radar].y, plugin[%1].y);
trace(plugin[radar].x,'-',plugin[radar].y);
set(plugin[radar].visible, true);
set(plugin[radar].heading, %2);
</action>
<action name="closemap">
set(onclick,action(openmap););
tween(width,64,distance(565,0.5),easeoutquad);
tween(height,45,distance(442,0.5),easeoutquad);
</action>
<action name="openmap">set(onclick,action(closemap););
tween(width,565,distance(565,0.5),easeoutquad);
tween(height,442,distance(442,0.5),easeoutquad);
</action>
</krpano>
|