I have a problem, i can not find the action to open image with button not a hotspot.... i made a style and plugin, just like a controller skin.. But i can't find the action ondown="???" to open an image.. Can somebody help me??
[ask] how to open image with button??
-
-
Sure we can! Here you go >> krpano-docu
Best regards
Nupsi -
Hi sijape.
There's many way to show an image over your panos using plugins.
The easiest way is the following :Code
Alles anzeigen<!-- First make a button plugin to load the image you want to see --> <plugin name="mybutton" url="folder/mybutton.png" align="topleft" onclick="show_image" visible="true" keep="true" /> <!-- Then your image plugin --> <plugin name="myfirstimage" url="folderimage/myimage.png" align="center" visible="false" onclick="hide_image" /> <!-- Then the action to open it --> <action name="show_image"> set(plugin[myfirstimage].visible, true); <!-- This action sets the visibility of the image to true --> set(plugin[mybutton].onclick, hide_image); <!-- This action switches your button onclick function --> </action> <!-- And the one to close it --> <action name="hide_image"> set(plugin[myfirstimage].visible, false); <!-- This action sets the visibility of the image to false --> set(plugin[mybutton].onclick, show_image); <!-- This action switches your button onclick function back --> </action>
You can do cool effects using the flash tween effects.
Instead of playing with the visible parameter, try it with the alpha one.
for example:Code
Alles anzeigen<!-- First make a button plugin to load the image you want to see --> <plugin name="mybutton" url="folder/mybutton.png" align="topleft" onclick="show_image" visible="true" keep="true" /> <!-- Then your image plugin --> <plugin name="myfirstimage" url="folderimage/myimage.png" align="center" visible="false" alpha="0.0" onclick="hide_image" /> <!-- Then the action to open it --> <action name="show_image"> set(plugin[myfirstimage].visible, true); tween(plugin[myfirstimage].alpha,1.0,0.0, easeInOutCubic); set(plugin[mybutton].onclick, hide_image); </action> <!-- And the one to close it --> <action name="hide_image"> set(plugin[myfirstimage].visible, false); tween(plugin[myfirstimage].alpha,0.0,1.0, easeInOutCubic); set(plugin[mybutton].onclick, show_image); </action>
There are many other possibilities, but the way I just shown isn't that great if you have lots of images to show...
I invite you in using the conditions variables explained in this thread :
http://www.krpano.com/forum/wbb/inde…d&threadID=2677
Hoping it would have help you.
Best regards.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!