<plugin name="hotspotonoff" url="<replace>/graphics/combobox.swf" preload="true" keep="true" align="rightbottom" x="10" y="20" rowcount="2">
<item name="on" caption="Hotspots On" onClick="showpanospotsaction();"/>
<item name="off" caption="Hotspots Off" onClick="hidepanospotsaction();"/>
</plugin>
panomano wrote:I also am looking for some code to have a hot spots toggle button. I have looked around but can't seem to find any examples. It is easy to do with Pano2vr. Can anybody point me in the right direction. I have looked at the code above but am not too savvy doing code to be able to convert over to a button.
Ron
<plugin name="sound-maximize"
debug=""
debug-offset-y=""
url="$(STYLEDIR)/gigapixel-menu-1a.png"
width=""
height="prop"
blendmode="normal"
keep="true"
align="bottom"
x="-168"
y="74"
onclick="add-volumebar(); hidepanospotsaction();"
crop="320|60|20|20"
onovercrop="320|260|20|20"
visible="false"
enabled="true"
handcursor=""
zorder="20"
scale=""
rotate="180"
onloaded=" set(scale,get(settings[themevars].menu-button-scale));
set(handcursor,get(settings[themevars].menu-button-handcursor));
set(debug,get(settings[themevars].debug));
set(debug-offset-y,get(settings[themevars].debug-offset-y));
if(debug == true, add(y,y,debug-offset-y));
"
/>
gkaefer wrote:panomano wrote:I also am looking for some code to have a hot spots toggle button. I have looked around but can't seem to find any examples. It is easy to do with Pano2vr. Can anybody point me in the right direction. I have looked at the code above but am not too savvy doing code to be able to convert over to a button.
Ron
this is simple. panotour creates two actions called hidepanospotsaction() and showpanospotsaction().
so on your plugin for your button you just have to add this to the onclick event
- Code: Select all
<plugin name="sound-maximize"
debug=""
debug-offset-y=""
url="$(STYLEDIR)/gigapixel-menu-1a.png"
width=""
height="prop"
blendmode="normal"
keep="true"
align="bottom"
x="-168"
y="74"
onclick="add-volumebar(); hidepanospotsaction();"
crop="320|60|20|20"
onovercrop="320|260|20|20"
visible="false"
enabled="true"
handcursor=""
zorder="20"
scale=""
rotate="180"
onloaded=" set(scale,get(settings[themevars].menu-button-scale));
set(handcursor,get(settings[themevars].menu-button-handcursor));
set(debug,get(settings[themevars].debug));
set(debug-offset-y,get(settings[themevars].debug-offset-y));
if(debug == true, add(y,y,debug-offset-y));
"
/>
in above example my created button "sound-maximize" shows the volumebar (individually created action) and disables the hotspots (using the action created automatically by panotour) by clicking on it....
(I implemented this in my upcoming menu theme - during the pano slideshow the hotspots are disabled and invisible using this method...)
Liebe Gruesse,
Georg
Users browsing this forum: No registered users and 1 guest