I have a problem.
When I create a polygonal hotspot plugin editor, I get the coordinates of the points with an accuracy of 1 decimal places, and you have some example of 2 decimal places.
How did this happen? I need more accuracy in describing the hotspot.
After 1 hour:
I solved the problem by writing xml.
I used the command trace, copy the data, and edited in a text editor.
|
Quellcode
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
<events onkeydown="create" />
<action name="create">
if (keycode == 32, create_hs(get(hotspot.count)))
</action>
<action name="create_hs">
addhotspot("hs%1");
screentosphere(mouse.x, mouse.y, toh, tov);
set(hotspot[hs%1].url, "images/point.png");
set(hotspot[hs%1].scale, "0.2");
set(hotspot[hs%1].ath, get(toh));
set(hotspot[hs%1].atv, get(tov));
trace('ath="', toh, '" atv="', tov,'"');
</action>
|