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
|
<action name="showlabels" scope="local" >
for(set(i,0), i LT hotspot.count, inc(i),
if (hotspot[get(i)].style == "htsp",
copy(st, hotspot[get(i)]);
addhotspot(calc('label-' + (i+1)), hs);
set(hs.css, calc("color: white; text-shadow: 2px 2px 4px #000000; font-family:fantasy; font-size: 40px; "));
set(hs.style,label);
set(hs.type,text);
set(hs.keep,true);
set(hs.html,calc(""+st.name));
set(hs.height,50);
set(hs.width,150);
set(hs.scale,1);
copy(hs.tx, st.tx);
copy(hs.ty, st.ty);
copy(hs.tz, st.tz);
set(hs.rx, 360);
set(hs.ry, -90);
set(hs.rz, -90);
set(hs.distorted,true);
set(hs.torigin,world);
set(hs.depth,0);
set(hs.zorder,2);
set(hs.depthbuffer,true);
set(hs.rotate,0.0);
set(hs.capture,false);
set(hs.bgalpha,0);
set(hs.blendmode,normal);
set(hs.smoothing,true);
set(hs.txtshadow, calc("1 1 2 0x000000 1"));
set(hs.mergedalpha, false);
set(hs.rz, -90);
trace(hs.name);
);
);
</action>
<action name="hidelabels" scope="local" >
for(set(i,0), i LT hotspot.count, inc(i),
if (hotspot[get(i)].style == "label",
copy(st, hotspot[get(i)]);
set(st.height,0);
set(st.width,0);
);
);
</action>
|