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
|
<hotspot name="spot1" style="flyoutimage" keep="true"
url="image_1.jpg"
zorder="1"
ath="45"
atv="54"
ox="0" oy="0"
x_offset="200"
y_offset="100"
scale="0.4"
rx="-22.5" ry="-26.25" rz="-50.1"
/>
<!-- flyout hotspot actions -->
<action name="flyout_hotspot">
trace(ath);showlog();
for(set(i,0), i LT hotspot.count, inc(i),
copy(hs, hotspot[get(i)]);
if(hs.name != name AND hs.style == 'flyoutimage' AND (hs.flying_state == 'out' OR hs.flying_state == 'flyingout'),
callwith(hs, flyout_hotspot() );
);
);
if(flying_state == 'flyingout',
set(flying_state, 'flyingin');
,
if(flying_state == 'flyingin',
set(flying_state, 'flyingout');
);
);
if(flying_state == 'in',
calc(backup_state, '0.0|' + rx + '|' + ry + '|' + rz + '|' + scale+ '|' + ox + '|' + oy);
copy(backup_zorder, zorder);
set(flying_state, 'flyingout');
);
if(flying_state == 'out',
set(flying_state, 'flyingin');
);
if(flying_state == 'flyingout',
set(zorder, 99);
tween(flying|rx|ry|rz|scale|ox|oy, calc('1.0|0.0|0.0|0.0|1.0|'+x_offset+'|'+y_offset), 0.5, default, set(flying_state,'out'); set(capture,true); );
);
if(flying_state == 'flyingin',
sub(zorder,1);
set(capture,false);
tween(flying|rx|ry|rz|scale|ox|oy, get(backup_state), 0.5, default, set(flying_state,'in'); copy(zorder,backup_zorder); );
);
</action>
|