|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 |
<action name="testhotspots">
for(set(i,0), i LT hotspot.count, inc(i),
getlooktodistance(d, hotspot[get(i)].ath, hotspot[get(i)].atv);
if(d LT 10,
highlight_hotspot(get(i), get(hotspot[get(i)].name));
,
background_hotspot(get(i), get(hotspot[get(i)].name));
);
);
</action>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<action name="testhotspots">
set(nearest_hs_i, -1);
set(nearest_hs_d, 10000);
for(set(i,0), i LT hotspot.count, inc(i),
getlooktodistance(d, hotspot[get(i)].ath, hotspot[get(i)].atv);
if(d LT nearest_hs_d,
copy(nearest_hs_i, i);
copy(nearest_hs_d, d);
);
background_hotspot(get(i), get(hotspot[get(i)].name));
);
if(nearest_hs_i GE 0 AND nearest_hs_d LT 10,
highlight_hotspot(get(nearest_hs_i), get(hotspot[get(nearest_hs_i)].name));
);
</action>
|
|
|
Quellcode |
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 |
<action name="testhotspots">
set(nearest_hs_i,-1);
set(nearest_hs_d,10000);
for(set(i,0), i LT hotspot.count, inc(i),
getlooktodistance(d, hotspot[get(i)].ath, hotspot[get(i)].atv);
if((d LT nearest_hs_d) AND (i != nearest_hs_i),
background_hotspot(get(nearest_hs_i), get(hotspot[get(nearest_hs_i)].name));
copy(nearest_hs_i,i);
copy(nearest_hs_d,d);
);
);
if(nearest_hs_d LT 15,
highlight_hotspot(get(nearest_hs_i), get(hotspot[get(nearest_hs_i)].name));
);
</action>
<action name="highlight_hotspot">
if(hotspot[%1].ishighlighted != true,
set(hotspot[%1].ishighlighted, true);
callwith(layer[%2], onover);
);
</action>
<action name="background_hotspot">
if(hotspot[%1].ishighlighted,
set(hotspot[%1].ishighlighted, false);
callwith(layer[%2], onout);
);
</action>
|
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
: https://pame.virtualtuur.com|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<action name="testhotspots">
set(nearest_hs_i,-1);
set(nearest_hs_d,10000);
for(set(i,0), i LT hotspot.count, inc(i),
getlooktodistance(d, hotspot[get(i)].ath, hotspot[get(i)].atv);
if((d LT nearest_hs_d) AND (i != nearest_hs_i),
background_hotspot(get(nearest_hs_i), get(hotspot[get(nearest_hs_i)].name));
copy(nearest_hs_i,i);
copy(nearest_hs_d,d);
);
if(d GT 15,
background_hotspot(get(i), get(hotspot[get(i)].name));
);
);
if((nearest_hs_i GE 0) AND (nearest_hs_d LT 15),
highlight_hotspot(get(nearest_hs_i), get(hotspot[get(nearest_hs_i)].name));
);
</action>
|