![]() |
|
|
|
|
|
||||||||||
|
| User list | Rules | You are not logged in.
I asked in French but had no answer, so I come back now in English.
It would be a good idea to have a "hide/show hot spots" button.
Maybe there is an other way to do it but I don't know how.
Can you help me?
I have a virtual tour that is getting heavy to visit on http://www.hannut.be/visite/hannut.swf
Can you help me?
Offline
Add this to your main xml:
<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>Edit the location as needed, and replace the <replace> and make sure you have a combobox.swf in your graphics folder. If you don't, just build a tour with a combobox and copy the file over. You can probably do this as a button also with a little more work. Tested and works.
Offline
Thank you Kevin for your answer, but sorry, doesn't work with me. In fact I'm not a specialist in programming.
Can you give me some more precisions:
- "main xml": do you mean that I have to open the models list and edit with your code the model I choosed (rotation + help + sound)? Or is it a file that I will find in the data directory of the virtual tour?
- and what must I write in the "replace"?
Sometimes I'm a little bit stupid, but with you I will get better.
Many thanks
Offline
Your main xml file is the xml file with no number. Example in the screenshot below. When you build your tour, you have a data folder, named <swfname>data (this what you have to replace the <replace> with), and that folder contains a folder called graphics. You'll need to have combobox.swf in that folder.
Hope that helps.
Offline
IT WORKS!!!!!!!!!
Thank you very much.
I did not find the main XML because I choosed the option "embed XML files" but now it's OK
Thank you again
Offline
I have wondered if it would be possible to only show hotspots when the mouse is active. In other words, when there is no mouse movement display only the pano. As soon as mouse movement is detected have the hotspots reappear.
I obviously am not a programmer so I hope this is not too naive.
Thanks,
Patrick
Offline
Gee, more and more, I'm not certain that it would be a good idea, my mouse is always in motion.
Answer to kevshu, or other: wich option creates a combobox in the folder "graphics"? Sometimes I have it, sometimes not.
Thanks
Offline
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
Offline
Hi Again,
I thought I would make one more plea for a sample code to do a show/hide hotspot button. I have been messing with it all day but unable to crack the secret:roll eyes:
thanks
Offline
Thank you guess, I finally did my first editing of XML :-) A whole new path is waiting for me.
Offline
HA!
I figured it out. I was sidetracked by trying to use the above combo box example as a starting place and converting that to a button. It was way easier than that once I abandoned the combo box example.
ron
Offline
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
<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
Last edited by gkaefer (2011-12-30 14:01:45)
Offline
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.
Ronthis 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 eventCode:
<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
i wouldlike to insert in the menu bar a button to show or hide the hotspots so i have add this strings on main xml:
<!-- Visualizza / Nasconde gli hotspot -->
<plugin name="hotspotonoff" url="Civitanova_Marchedata/graphics/combobox.swf" preload="true" keep="true">
</plugin>
<plugin name="HotOn" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="hotspotonoff(); hidepanospotsaction();" onout="" onover="" onovercrop="0|65|65|65" url="Civitanova_Marchedata/graphics/menu/menu0.png" visible="" width="40" x="-220" y="31"/>
<plugin name="HotOff" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="hotspotonoff(); showpanospotsaction();" onout="" onover="" onovercrop="0|65|65|65" url="Civitanova_Marchedata/graphics/menu/menu0.png" visible="" width="40" x="-220" y="31"/>
The result is that the botton compare in the menu but when i click never happend. Where is the error?
Last edited by nonchiedercilaparola (2012-04-25 17:50:46)
Offline
Hello !
I would like to do the same thing to my pano. I need to hide hotspots. But I don't understand anything to that compobox. I have downloaded file "combobox.fla" but then, what should I do with it ?
Should I open it with Flash ?
Is there any tuto I could read to do that compobox ?
Many thanks for your help !
Last edited by aircamera (2013-03-09 23:23:41)
Offline
Online
Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
|
CHOOSING KOLOR Why choose Kolor? Which solution to choose? Download a trial Where can I buy? Education |
SOFTWARE Autopano Pro Autopano Giga Panotour Panotour Pro XnView |
ACCESSORIES Training DVD Panobook PROJECTS Paris 26 Gigapixels Yosemite 17 Gigapixels |
COMMUNITY Forums YouTube channel Google+ |
COMPANY Blog About Kolor Resellers Contact Visit us |
PRESS Press center Press review TOOLS My account |
