Info Button, on multilanguage interface, doesn't reset when changing pano.
Also a problem with krprotect: it doesn't recognize the pano XMLs. May be a problem with the action Loadpano.
Here's the code.
The Global XML contain:
- an Info button;
Code
<plugin name="info" parent="controlbar" keep="true" zorder="3" align="bottom" x="+240" y="5" style="options" crop= "80|0|10|20" onovercrop= "80|20|10|20" ondowncrop= "80|40|10|20" onhover="showtext(get(infoon));" onclick="action(infoenon);" />
- an Action to switch the info pane, depending on the used language;
Code
<action name="infoenon">
set(plugin[infoen].visible,true);
set(plugin[info].onhover,showtext(get(infooff)););
set(plugin[info].onclick,action(infoenoff););
</action>
<action name="infoenoff">
set(plugin[infoen].visible,false);
set(plugin[info].onhover,showtext(get(infoon)););
set(plugin[info].onclick,action(infoenon););
</action>
<action name="infoiton">
set(plugin[infoit].visible,true);
set(plugin[info].onhover,showtext(get(infooff)););
set(plugin[info].onclick,action(infoitoff););
</action>
<action name="infoitoff">
set(plugin[infoit].visible,false);
set(plugin[info].onhover,showtext(get(infoon)););
set(plugin[info].onclick,action(infoiton););
</action>
<action name="infodeon">
set(plugin[infode].visible,true);
set(plugin[info].onhover,showtext(get(infooff)););
set(plugin[info].onclick,action(infodeoff););
</action>
<action name="infodeoff">
set(plugin[infode].visible,false);
set(plugin[info].onhover,showtext(get(infoon)););
set(plugin[info].onclick,action(infodeon););
</action>
Display More
- an Action to reset the info buton;
Code
<action name="resetinfo">
if(plugin[usa] === visible, action(infoenoff));
if(plugin[italy] === visible, action(infoitoff));
if(plugin[germany] === visible, action(infodeoff));
</action>
- and Actions to change Panoramas;
Code
<action name="loadpano">
action(hidepanothumbsmenu);
action(banneroff);
action(resetinfo);
loadpano(%1,null,MERGE,BLEND(3));
lookat(get(panoview.h),get(panoview.v),get(panoview.fov));
</action>
<action name="loadindex">
action(loadpano,index.xml);
</action>
<action name="loadpano02">
action(loadpano,pano-02.xml);
</action>
<action name="loadpano03">
action(loadpano,pano-03.xml);
</action>
...
<action name="loadpano06">
action(loadpano,pano-06.xml);
</action>
Display More
Each Pano XML contains the three images, that is one image per language:
Code
<plugin name="infoit" keep="false" parent="" zorder="" alpha="1.0" align="center" url="info/infoitanticamera.png" onhover="showtext(get(infooff));" onclick="action(infoitoff);" visible="false" />
<plugin name="infoen" keep="false" parent="" zorder="" alpha="1.0" align="center" url="info/infoenlobby.png" onhover="showtext(get(infooff));" onclick="action(infoenoff);" visible="false" />
<plugin name="infode" keep="false" parent="" zorder="" alpha="1.0" align="center" url="info/infoenlobby.png" onhover="showtext(get(infooff));" onclick="action(infodeoff);" visible="false" />
Where are the errors?
Thanks in advance,
Marco