I would like to stop the "easing" or "tweening" behaviors that occur when I click a hotspot. For example, on click, the "view" first aims downwards, then "tweens" into the next scene. I'd like to control this behavior. Help?
Stop, control, manage hotspot click behaviors
-
-
Read the code and learn: your hotspots if using default Krpano droplets is using skin_hotspotstyle style. Open vtourskin.xml and explore style definiion:
Code<style name="skin_hotspotstyle" url="vtourskin_hotspot.png" scale="0.5" edge="top" oy="0" distorted="false" tooltip="" onclick="if(linkedscene, skin_hidetooltips(); tween(scale,0.25,0.5); tween(oy,-20,0.5); tween(alpha,0,0.5); looktohotspot(); loadscene(get(linkedscene),null,MERGE,BLEND(1)); skin_updatescroll(); );" onloaded="if(skin_settings.tooltips_hotspots, if(linkedscene, copy(tooltip,scene[get(linkedscene)].title); loadstyle(skin_tooltips); ));" />
You see what is defined onclick:
- tween(scale... -> change is size
- tween(oy... -> move hotspot on y
- looktohotspot-> change view on this hotspotit is up to you to define how you want it to behave.
-
Thank you, Umalo! This is exactly the help that I needed. In stumbling around, I had gotten close to the points that you made, but had not found them. Your help brings me just to where I needed to go to do the changes.
Chris
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!