Hi,
I've made a test with two fullscreen button (full and back) and the "buttons-jpg-includes" code of krpano. I'd like to switch one to another, visible or not, depends fullscreen or not.
It works but the "bton-full-back" still visible when you get back from fullscreen, while i put a code to set it, visible=false and to set bton-full, visible=true !?
When you click a second time, then the bton-full appears !?
I put the code straightly in the plugins, because in the events, it's worst, the full button still invisible even when clicking several times!
Here the code :
Code
<plugin name="bton_full"
url="plugins/Bton_Full.png"
align="centerbottom"
alpha="0.0"
visible="true"
keep="true"
zorder="58"
x="82" y="11"
scale="0.22"
crop="0|0|200|200"
onovercrop="0|210|200|200"
ondowncrop="0|425|200|200"
effect="dropshadow(2,45,0x000000,3,1);"
onloaded="tween(plugin[bton_full].alpha, 1.0, 2);"
onclick="set(fullscreen,true); set(plugin[bton_full].visible,false); set(plugin[bton_full_back].visible,true);"
selectable="true"
/>
<plugin name="bton_full_back"
url="plugins/Bton_Full_back.png"
align="centerbottom"
alpha="0.0"
visible="false"
keep="true"
zorder="58"
x="82" y="11"
scale="0.22"
crop="0|0|200|200"
onovercrop="0|210|200|200"
ondowncrop="0|425|200|200"
effect="dropshadow(2,45,0x000000,3,1);"
onloaded="tween(plugin[bton_full_back].alpha, 1.0, 2);"
onclick="set(fullscreen,false); set(plugin[bton_full].visible,true); set(plugin[bton_full_back].visible,false);"
selectable="true"
/>
Display More
http://www.humanfoto.fr/C/tour.html
Any suggestions ?
Thanks.
Steph.