Skip to content

Commit 050b9aa

Browse files
committed
Script update
1 parent e183cc6 commit 050b9aa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

resources/ecs/imageswitcher.ecs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
variable ImageCount
1515
variable N
1616
variable M
17+
variable Width
1718
variable ECPayload
1819
variable Payload
1920
callback DecoratorCallback
@@ -27,14 +28,15 @@
2728
Start:
2829
clear Container
2930

31+
put `50px` into Width
3032
put 9 into ImageCount
3133
set the elements of Thumb to ImageCount
3234
set the elements of Image to ImageCount
3335
create Buttons in Container
3436
set the style of Buttons to `text-align:center; padding:10px;border:1px solid lightgray`
3537
create Link in Buttons
3638
create Left in Link
37-
set style `width` of Left to `60px`
39+
set style `width` of Left to Width
3840
set attribute `src` of Left to `resources/icon/left.png`
3941
on click Left go to DoLeft
4042
put 0 into N
@@ -43,7 +45,7 @@ Start:
4345
index Thumb to N
4446
create Link in Buttons
4547
create Thumb in Link
46-
set style `width` of Thumb to `60px`
48+
set style `width` of Thumb to Width
4749
set style `border` of Thumb to `1px solid white`
4850
if N is not 0 set style `margin-left` of Thumb to `10px`
4951
set attribute `src` of Thumb to `resources/img/imageswitcher/thumbs/img` cat N cat `.jpg`
@@ -52,7 +54,7 @@ Start:
5254
on click Thumb go to DoThumb
5355
create Link in Buttons
5456
create Right in Link
55-
set style `width` of Right to `60px`
57+
set style `width` of Right to Width
5658
set attribute `src` of Right to `resources/icon/right.png`
5759
on click Right go to DoRight
5860
put 0 into N

0 commit comments

Comments
 (0)