You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, September 5th 2010, 12:45pm

global hotspot settings.

Im just having a play with krpano, and id like to have a textfield appear on a hotspot when it is clicked, that i beleive i have managed fine using the method described in textfield instead of graphic on a hotspot .

However setting the actions for numerous hotspots i can see getting tedious. So im wondring if there is a way to set global settings for all hotspots, something like:

Source code

1
2
3
4
5
<hotspot
   onclick="set(hotspot[textfield].visible,true);
            	set(hostpot[textfield].ath, hotspot[this].ath);
            	..."
>

2

Wednesday, September 8th 2010, 5:23am

Define an action and use that action in the onclick. Something like

Source code

1
2
3
4
5
6
<action name="hs_clicked">
set(hotspot[textfield].visible, true);
set(hotspot[textfield.ath], %1)
</action>

<hotspot onclick="action(hs_clicked(hotspot[this].ath]));" />

3

Wednesday, September 8th 2010, 5:31am

And if you want to blindly do all the hotspots in the scene you can make a plugin...