Is there a krpano (un)official IRC ? We could develop and brainstorm fast ! I am asking because I never feel well about making a whole thread to ask simple things.
I am currently working on:
layers / plugins inheriting position (+ offset) from hotspots while overlaying or making invisible hotspots that would interfere with the layer.
I can get the position through parenting, but then I fail to zorder the plugin over the remaining hotspots.
I can overlay the hotspots using zorder but then I seem unable to inherit the position from the hotspot.
Things I have tried:
set(plugin[%1].visible,true);
tween(plugin[%1].alpha, 1.0, 0.5, default);
tween(plugin[%1].scale, 0.2);
set(plugin[%1].parent.zorder="1")
amending the last line as seen above to the code showing the plugin. Is this even correct syntax ? It didnt work in several variations. The idea was to bring the parent above all and have the plugin inherit that like so:
<hotspot name="infospot"
style="skin_infospotstyle"
ath="125"
atv="-8"
scale="0.3"
onclick="showinfo(info);"
/>
<plugin name="info"
url="hotspots/info.png"
parent="hotspot[infospot]"
align="bottom" x="0" y="-40"
visible="false"
alpha="0"
scale="0.01"
onclick="hideinfo( get(name) );"
/>
Display More
Result: Positioning correct, zorder depending on the time of loading and therefore wrong.
The other thing I did try was:
<hotspot name="infospot"
style="skin_infospotstyle"
ath="125"
atv="-8"
scale="0.3"
onclick="showinfo(info);"
/>
<plugin name="info"
url="hotspots/info.png"
ath="85"
atv="-8"
visible="false"
alpha="0"
zorder="1"
scale="0.01"
onclick="hideinfo( get(name) );"
/>
Display More
Without the above modification to showinfo.
Result: zorder will have the desired affect but instead of aligning the info.png with a set coordinate in the pano it will follow the view at a set position on the screen.
So, you see, this is probably a very trivial question and I am probably in need of a rubber duck and the documentation, but somehow I could not figure it out. I dont feel it is worth making a thread for this. This is why I am asking wether there is a medium for the discussion of simple questions.
Thanks everyone in advance !