Skip to content

Commit 2815aae

Browse files
committed
EOL fixed
1 parent 13ec2b3 commit 2815aae

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed
+15-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
!--- 2D script ---!unID = 1! "A" gets manipulated, but "n_fields" is shown in the Trackerhotspot2 0, 0, unID, A, 1+128, n_fields : unID=unID+1hotspot2 -1, 0, unID, A, 3, n_fields : unID=unID+1hotspot2 A, 0, unID, A, 2, n_fields : unID=unID+1for i=1 to n_fields rect2 0, 0, field_width, B hotspot2 0, 0, unID add2 field_width, 0next idel n_fields
1+
!--- 2D script ---!
2+
unID = 1
3+
! "A" gets manipulated, but "n_fields" is shown in the Tracker
4+
hotspot2 0, 0, unID, A, 1+128, n_fields : unID=unID+1
5+
hotspot2 -1, 0, unID, A, 3, n_fields : unID=unID+1
6+
hotspot2 A, 0, unID, A, 2, n_fields : unID=unID+1
7+
8+
9+
for i=1 to n_fields
10+
rect2 0, 0, field_width, B
11+
hotspot2 0, 0, unID
12+
add2 field_width, 0
13+
next i
14+
15+
del n_fields
+23-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,23 @@
1-
!--- Param script ---!MAX_ = 30values "n_fields", range[1, MAX_]for i=1 to MAX_ put i * field_widthnext ivalues "A", get(nsp)if GLOB_MODPAR_NAME = "A" then n_fields = int((A + 0.001)/field_width)endifif GLOB_MODPAR_NAME = "n_fields" then A = field_width * n_fieldsendifparameters \ A = A, n_fields = n_fields
1+
!--- Param script ---!
2+
MAX_ = 30
3+
values "n_fields", range[1, MAX_]
4+
5+
6+
for i=1 to MAX_
7+
put i * field_width
8+
next i
9+
10+
values "A", get(nsp)
11+
12+
13+
if GLOB_MODPAR_NAME = "A" then
14+
n_fields = int((A + 0.001)/field_width)
15+
endif
16+
17+
if GLOB_MODPAR_NAME = "n_fields" then
18+
A = field_width * n_fields
19+
endif
20+
21+
parameters \
22+
A = A,
23+
n_fields = n_fields

0 commit comments

Comments
 (0)