|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<hotspot name="hs0"
keep="false"
visible="true" enabled="true" handcursor="true" capture="true" children="true"
zorder="0" fillcolor ="" fillalpha ="0.00" borderwidth ="0.0" bordercolor ="" borderalpha ="0.00"
fillcolorhover="" fillalphahover="0" borderwidthhover="0" bordercolorhover="" borderalphahover="0"
fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
onover=""
onhover="showtext(SANDRINGHAM PARK ,labels)" ******** Possible to display a small thumbnail image instead of text? *************
onout=""
ondown=""
onup=""
onclick=""
flying="0"
>
<point ath="168.6922" atv=" 14.0703" />
<point ath="162.3554" atv=" 13.3177" />
<point ath="163.3692" atv=" 16.7117" />
<point ath="166.9322" atv=" 17.3465" />
</hotspot>
|
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<hotspot name="hs0" ... onhover="showtext(SANDRINGHAM PARK ,labels);action(show_hover_image,hs0,path/to/thum.jpg);" ... </hotspot> <action name="show_hover_image"> set(plugin[hover_image].parent,hotspot[%1]); set(plugin[hover_image].url,%2); </action> <plugin name="hover_image" url=" " parent=" " align="righttop" edge="leftbottom" x="#" y="#" ... /> |
|
|
Quellcode |
1 2 |
WARNING: not local trusted - ExternalInterface disabled! ERROR: no parent "hs0" found |
|
|
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 |
<hotspot name="hs0"
keep="false"
visible="true" enabled="true" handcursor="true" capture="true" children="true"
zorder="0" fillcolor ="" fillalpha ="0.00" borderwidth ="0.0" bordercolor ="" borderalpha ="0.00"
fillcolorhover="" fillalphahover="0" borderwidthhover="0" bordercolorhover="" borderalphahover="0"
fadeintime="0.150" fadeouttime="0.300" fadeincurve="1.100" fadeoutcurve="0.700"
onover=""
onhover="showtext(SANDRINGHAM PARK,labels);action(show_hover_image,hs0,thumbnails/sandringham.png);"
onout=""
ondown=""
onup=""
onclick=""
flying="0"
>
<point ath="168.6922" atv=" 14.0703" />
<point ath="162.3554" atv=" 13.3177" />
<point ath="163.3692" atv=" 16.7117" />
<point ath="166.9322" atv=" 17.3465" />
</hotspot>
<action name="show_hover_image">
set(plugin[hover_image].parent,hotspot[%1]);
set(plugin[hover_image].url,%2);
</action>
<plugin name="hover_image"
url="thumbnails/sandringham.png"
parent="hs0"
align="righttop"
x="100" y="100"
/>
|
|
|
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 34 35 36 37 38 39 40 |
<hotspot name="hs0" url="down.png" ath="45" atv="0" keep="false" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="1" onover="action(show_hover_image,hs0,down.png);" onhover="showtext(SANDRINGHAM PARK);" onout="action(show_hover_image,hs0,null);" ondown="" onup="" onclick="" flying="0" /> <hotspot name="hs1" url="down.png" ath="-45" atv="0" keep="false" visible="true" enabled="true" handcursor="true" capture="true" children="true" zorder="1" onover="action(show_hover_image,hs1,up.png);" onhover="showtext(something);" onout="action(show_hover_image,hs1,null);" ondown="" onup="" onclick="" flying="0" /> <action name="show_hover_image"> set(plugin[hover_image].parent,hotspot[%1]); set(plugin[hover_image].url,%2); </action> <plugin name="hover_image" url="" parent="" align="righttop" edge="leftbottom" x="0" y="0" |
|
|
Quellcode |
1 2 3 4 5 6 7 |
<hotspot name="spot5555" style="skin_hotspotstyle2" ath="36.7" atv="13.6" distorted="false" zoom="false" linkedscene="scene_xuechang-bottom"/> <style name="skin_hotspotstyle2" url="tunnel.png" scale="1" edge="bottom" y="20" distorted="false" scalechildren="true" tooltip="" linkedscene="" linkedscene_lookat="" onclick="skin_hotspotstyle_click();" onover="tween(scale,1.02);tween(oy,-10)" onout="tween(scale,1);tween(oy,0)" onloaded="add_all_the_time_tooltip_bottom();get_the_thumb();" /> <action name="get_the_thumb"> txtadd(roundthumbname, 'roundthumb_', get(name)); addlayer(get(roundthumbname)); txtadd(layer[get(roundthumbname)].parent, 'hotspot[', get(name), ']'); txtreplace(roundthumburl,scene[get(linkedscene)].thumburl,'thumb.jpg','thumb1.png'); copy(layer[get(roundthumbname)].url, roundthumburl); set(layer[get(roundthumbname)].align,center); set(layer[get(roundthumbname)].edge,bottom); set(layer[get(roundthumbname)].x,0); set(layer[get(roundthumbname)].y,20); set(layer[get(roundthumbname)].width,56); set(layer[get(roundthumbname)].height,56); set(layer[get(roundthumbname)].linkedscene,get(linkedscene)); set(layer[get(roundthumbname)].onclick,skin_hotspotstyle_click_roundthumb(); callwith(hotspot[get(name)],onclick);); </action><action name="skin_hotspotstyle_click_roundthumb"> if(linkedscene, if(linkedscene_lookat, txtsplit(linkedscene_lookat, ',', hs_lookat_h, hs_lookat_v, hs_lookat_fov); ); set(enabled, false); skin_hidetooltips(); tween(depth|alpha|oy|rx|scale, 4000|0.8|0|-60|1.0, 0.5, default, skin_loadscene(get(linkedscene), get(skin_settings.loadscene_blend)); if(hs_lookat_h !== null, skin_lookat(get(hs_lookat_h), get(hs_lookat_v), get(hs_lookat_fov)); delete(hs_lookat_h, hs_lookat_v, hs_lookat_fov); ); skin_updatescroll(); ); ); </action> |