|
|
Source code |
1 2 3 4 5 6 |
<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));" /> |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<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_delete" parent="hotspot[tiny_bar]" keep="true" alpha="1" visible="true" url="delete.png" enabled="true" x="1" y="0" width="16" height="16" align="center" zorder="1001" onclick="js(deleteHotspot())" /> <plugin name="tiny_bar_save" parent="hotspot[tiny_bar]" keep="true" alpha="1" visible="true" url="save.gif" enabled="true" x="-20" y="0" width="16" height="16" align="center" zorder="1001" onclick="js(updateHotspot())"/> <plugin name="tiny_bar_move" parent="hotspot[tiny_bar]" keep="true" alpha="1" visible="true" url="save.gif" enabled="true" x="22" y="0" width="16" height="16" align="center" zorder="1001" ondown=" screentosphere(mouse.x,mouse.y,tmp_h,tmp_v); set(onhover, set(hotspot[hotspot_196].ath,get(tmp_h)); set(hotspot[hotspot_196].atv,get(tmp_v)); set(hotspot[tiny_bar].ath,get(tmp_h)); set(hotspot[tiny_bar].atv,get(tmp_v)); trace(get(tmp_v)); )" onup="set(onhover,)" |
This post has been edited 1 times, last edit by "Zephyr" (Jan 8th 2011, 1:08pm)
|
|
Source code |
1 2 |
ondown="set(dragging,true); draghotspot();" onup="set(dragging,false);" |
|
|
Source code |
1 2 3 4 5 6 |
<action name="draghotspot"> if(dragging, screentosphere(mouse.x,mouse.y,ath,atv); delayedcall(0,draghotspot()); ); </action> |