Sie sind nicht angemeldet.

1

Sonntag, 5. September 2010, 12:45

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:

Quellcode

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

2

Mittwoch, 8. September 2010, 05:23

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

Quellcode

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

Mittwoch, 8. September 2010, 05:31

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