finally found the zoomify thing you were asking about. I think you are correct. Looks like a new zoomify based flat image is loaded from the text field that comes up. Then the zoomify "pano" has an image plugin that links back to the sourcing pano. All very nice and interesting.
For the sliding menu... you can setup two actions
- one for sliding in
- one for sliding out
|
Source code
|
1
2
3
4
5
6
7
|
<action name="slidein">
tween(plugin[largeblock3].y,200,1,linear);
</action>
<action name="slideout">
tween(plugin[largeblock3].y,50,1,linear);
</action>
|
You'll use the "tween" function to change the locating coordinates (x or y or both) for the plugin...
reference...
http://www.krpano.com/docu/xml/#plugin
http://www.krpano.com/docu/actions/#tween
Note that the plugin coordinates should be set originally to something that has the plugin off the visible stage... and on your "out" action, it moves it back off the screen.
I'm not sure if it's good practice to also set the visibility to "false" when a plugin is off the visible stage... maybe someone else could comment on that.
You can of course make up more intricate actions that change coordinates for 2 or more plugins...
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<action name="moveblockin">
tween(plugin[largeblock].x,200,2,easeoutbounce);
tween(plugin[largeblock].y,200,2,easeoutbounce);
tween(plugin[largeblock2].x,400,2,easeoutbounce);
tween(plugin[largeblock2].y,400,2,easeoutbounce);
set(plugin[smallblock].onclick,action(moveblockout));
</action>
<action name="moveblockout">
tween(plugin[largeblock].x,5,2,easeinbounce);
tween(plugin[largeblock].y,5,2,easeinbounce);
tween(plugin[largeblock2].x,5,2,easeinbounce);
tween(plugin[largeblock2].y,5,2,easeinbounce);
set(plugin[smallblock].onclick,action(moveblockin));
</action>
|
For the above example, I have one image (smallblock) that originally has the onclick set to "movein" and I use the movein and moveout actions to change the setting back and forth so that I can click on the same button to "close" the blocks.
Graydon