You are not logged in.

1

Monday, January 25th 2016, 9:31pm

Stop, control, manage hotspot click behaviors

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?

Umalo

Professional

Posts: 1,051

Location: Osijek, Croatia, EU

  • Send private message

2

Tuesday, January 26th 2016, 12:38pm

Read the code and learn: your hotspots if using default Krpano droplets is using skin_hotspotstyle style. Open vtourskin.xml and explore style definiion:

Source code

1
2
3
4
5
	<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.

This post has been edited 1 times, last edit by "Umalo" (Jan 26th 2016, 8:21pm)


3

Tuesday, January 26th 2016, 4:35pm

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