========================================================================
Описание: хотспот передвигается в любом направлении
Параметр:
ElemPos_x
ElemPos_y
2D-скрипт:
!-----------------------------SymbCenterFixed
hotspot2 0,0
line2 -a/10,-b/10,a/10,b/10
line2 a/10,-b/10,-a/10,b/10
!-----------------------------SymbCenterFixed
unID = 100
HOTSPOT2 0, ElemPos_y, unID, ElemPos_x, 1+128 : unID=unID+1
HOTSPOT2 ElemPos_x, ElemPos_y, unID, ElemPos_x, 2 : unID=unID+1
HOTSPOT2 -1, ElemPos_y, unID, ElemPos_x, 3 : unID=unID+1
HOTSPOT2 ElemPos_x, 0, unID, ElemPos_y, 1+128 : unID=unID+1
HOTSPOT2 ElemPos_x, ElemPos_y, unID, ElemPos_y, 2 : unID=unID+1
HOTSPOT2 ElemPos_x, -1, unID, ElemPos_y, 3 : unID=unID+1
add2 ElemPos_x,ElemPos_y
!--------------------Element
line2 -a/2,0,a/2,0
line2 0,-b/2,0,b/2
circle2 0,0,a/3
!--------------------Element
del 1
========================================================================
Описание: хотспот передвигается в направлении оси Y
2D-скрипт:
!...
unID = 110
HOTSPOT2 ElemPos_x, 0, unID, ElemPos_y, 1+128 : unID=unID+1
HOTSPOT2 ElemPos_x, ElemPos_y, unID, ElemPos_y, 2 : unID=unID+1
HOTSPOT2 ElemPos_x, -1, unID, ElemPos_y, 3 : unID=unID+1
add2 ElemPos_x,ElemPos_y
!...
!--------------------Element
del 1
========================================================================
Описание: хотспот передвигается в направлении оси X
2D-скрипт:
!...
unID = 120
HOTSPOT2 0, ElemPos_y, unID, ElemPos_x, 1+128 : unID=unID+1
HOTSPOT2 ElemPos_x, ElemPos_y, unID, ElemPos_x, 2 : unID=unID+1
HOTSPOT2 -1, ElemPos_y, unID, ElemPos_x, 3 : unID=unID+1
add2 ElemPos_x,ElemPos_y
!...
!--------------------Element
del 1
========================================================================
Описание: хотспот передвигается в любом направлении осей только при
положительном значении от отм.0
2D-скрипт:
!...
unID = 100
HOTSPOT2 0, ElemPos_y, unID, ElemPos_x, 1+128 : unID=unID+1
HOTSPOT2 ElemPos_x, ElemPos_y, unID, ElemPos_x, 2 : unID=unID+1
HOTSPOT2 -1, ElemPos_y, unID, ElemPos_x, 3 : unID=unID+1
HOTSPOT2 ElemPos_x, 0, unID, ElemPos_y, 1+128 : unID=unID+1
HOTSPOT2 ElemPos_x, ElemPos_y, unID, ElemPos_y, 2 : unID=unID+1
HOTSPOT2 ElemPos_x, -1, unID, ElemPos_y, 3 : unID=unID+1
add2 ElemPos_x,ElemPos_y
!...
Скрипт параметров:
if ElemPos_x < 0 then
parameters ElemPos_x = 0
endif
if ElemPos_y < 0 then
parameters ElemPos_y = 0
endif
========================================================================
Описание: хотспот передвигается строго по осям X/Y от отм.0 в зависимости
от позиции хотспота
!...
!...
Скрипт параметров:
if ElemPos_x*SGN(ElemPos_x) < ElemPos_y*SGN(ElemPos_y) then
parameters ElemPos_x = 0
endif
if ElemPos_y*SGN(ElemPos_y) < ElemPos_x*SGN(ElemPos_x) then
parameters ElemPos_y = 0
endif
========================================================================