File tree Expand file tree Collapse file tree 3 files changed +29
-14
lines changed Expand file tree Collapse file tree 3 files changed +29
-14
lines changed Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ const IWSY = (playerElement, scriptObject) => {
326
326
}
327
327
if ( ! vfx . continueFlag ) {
328
328
if ( script . runMode === `manual` ) {
329
- enterManualMode ( step ) ;
329
+ enterManualMode ( vfx . step ) ;
330
330
} else {
331
331
vfx . step . next ( ) ;
332
332
}
@@ -360,6 +360,7 @@ const IWSY = (playerElement, scriptObject) => {
360
360
block . element . style . display = `none` ;
361
361
}
362
362
}
363
+ step . next ( ) ;
363
364
} else {
364
365
for ( const block of stepBlocks )
365
366
{
@@ -494,9 +495,17 @@ const IWSY = (playerElement, scriptObject) => {
494
495
}
495
496
} ;
496
497
delete ( vfx . start ) ;
497
- requestAnimationFrame ( timestamp => {
498
- animatePanzoom ( timestamp , vfx ) ;
499
- } ) ;
498
+ if ( script . speed === `scan` ) {
499
+ vfx . image . style . width = `${ vfx . w2 } px` ;
500
+ vfx . image . style . height = `${ vfx . h2 } px` ;
501
+ vfx . image . style . left = `${ vfx . xoff2 } px` ;
502
+ vfx . image . style . top = `${ vfx . yoff2 } px` ;
503
+ step . next ( ) ;
504
+ } else {
505
+ requestAnimationFrame ( timestamp => {
506
+ animatePanzoom ( timestamp , vfx ) ;
507
+ } ) ;
508
+ }
500
509
break ;
501
510
}
502
511
}
@@ -505,7 +514,7 @@ const IWSY = (playerElement, scriptObject) => {
505
514
}
506
515
} ;
507
516
508
- // Animate blocks
517
+ // Animate a block
509
518
const animate = step => {
510
519
let continueFlag = true ;
511
520
for ( const block of script . blocks ) {
Original file line number Diff line number Diff line change 2
2
3
3
script Blocks
4
4
5
- import div Panel and variable Presentation
5
+ import div Container and variable Presentation
6
6
7
+ div Panel
7
8
div Editor
8
9
div Title
9
10
div Table
@@ -58,9 +59,11 @@ Start:
58
59
59
60
Restart:
60
61
put property `blocks` of Presentation into Blocks
61
- clear Panel
62
+ clear Container
63
+ create Panel in Container
64
+ set the style of Panel to `height:100%;display:flex;flex-direction:column`
62
65
create Row in Panel
63
- set the style of Row to `display:flex`
66
+ set the style of Row to `height:2em; display:flex`
64
67
create Title in Row
65
68
set the style of Title to
66
69
`flex:1;font-size:110%;font-weight:bold;background:lightgray;text-align:center;margin-bottom:0.5em`
@@ -99,7 +102,7 @@ Restart:
99
102
set the elements of DeleteBlock to NBlocks
100
103
end
101
104
create Table in Panel
102
- set the style of Table to `width:100%`
105
+ set the style of Table to `flex:1; width:100%;overflow-y:scroll `
103
106
put 0 into N
104
107
while N is less than NBlocks
105
108
begin
Original file line number Diff line number Diff line change 2
2
3
3
script Content
4
4
5
- import div Panel and variable Presentation
5
+ import div Container and variable Presentation
6
6
7
+ div Panel
7
8
div Editor
8
9
div Title
9
10
div Table
@@ -57,9 +58,11 @@ Restart:
57
58
add 1 to N
58
59
end
59
60
60
- clear Panel
61
+ clear Container
62
+ create Panel in Container
63
+ set the style of Panel to `height:100%;display:flex;flex-direction:column`
61
64
create Row in Panel
62
- set the style of Row to `display:flex`
65
+ set the style of Row to `height:2em; display:flex`
63
66
create Title in Row
64
67
set the style of Title to
65
68
`flex:1;font-size:110%;font-weight:bold;background:lightgray;text-align:center;margin-bottom:0.5em`
@@ -93,7 +96,7 @@ Restart:
93
96
set the elements of TextArea to NumItems
94
97
end
95
98
create Table in Panel
96
- set the style of Table to `width:100%`
99
+ set the style of Table to `flex:1; width:100%;overflow-y:scroll `
97
100
put 0 into N
98
101
while N is less than NumItems
99
102
begin
@@ -109,7 +112,7 @@ Restart:
109
112
create Cell in Row
110
113
set the style of Cell to `width:100%;display:flex`
111
114
create EditButton in Cell
112
- set the style of EditButton to `flex:1`
115
+ set the style of EditButton to `height:2em; flex:1`
113
116
set the text of EditButton to ItemName
114
117
if N is 0
115
118
begin
You can’t perform that action at this time.
0 commit comments