Hi,
Im trying to create a button which hovers above the hotspot, while pressed it should drag the hotspot. So somehow I need to
ondown, mousex -> ath.
Code
<hotspot name="tiny_bar" keep="true" visible="true" alpha="0.8" url="tinybar_bg.png" enabled="true" handcursor="false" ox="-50" oy="-50" zorder="1000" />
<plugin name="tiny_bar_move" parent="hotspot[tiny_bar]" keep="true" alpha="1" visible="true" url="move.gif" enabled="true" x="22" y="0" width="16" height="16" align="center" zorder="1001"
ondown="
screentosphere(get(mouse.x),get(mouse.y),tmp_h,tmp_v);
set(hotspot[tiny_bar].ath,get(tmp_h));
set(hotspot[tiny_bar].atv,get(tmp_v));" />
but it jumps all over the place.
Any idea?