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 hotspot

    it is up to you to define how you want it to behave.

    Einmal editiert, zuletzt von Umalo (26. Januar 2016 um 20:21)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!