File tree Expand file tree Collapse file tree 2 files changed +15
-18
lines changed Expand file tree Collapse file tree 2 files changed +15
-18
lines changed Original file line number Diff line number Diff line change @@ -508,17 +508,9 @@ const IWSY = (playerElement, scriptObject) => {
508
508
// Animate blocks
509
509
const animate = step => {
510
510
let continueFlag = true ;
511
- for ( const name of step . blocks )
512
- {
513
- for ( const block of script . blocks ) {
514
- if ( block . defaults . name === name ) {
515
- for ( const vfx of block . vfx ) {
516
- continueFlag = step . continue === `yes` ;
517
- startVFX ( step , vfx ) ;
518
- }
519
- break ;
520
- }
521
- }
511
+ for ( const vfx of step . block . vfx ) {
512
+ continueFlag = step . continue === `yes` ;
513
+ startVFX ( step , vfx ) ;
522
514
}
523
515
if ( script . runMode === `manual` ) {
524
516
enterManualMode ( step ) ;
Original file line number Diff line number Diff line change 34
34
input TitleInput
35
35
input LabelInput
36
36
input DurationInput
37
+ input BlockInput
37
38
input TargetInput
38
39
input URLInput
39
40
textarea InitCSS
@@ -710,7 +711,15 @@ EditFadeDown:
710
711
return
711
712
712
713
EditAnimate:
713
- gosub to EditBlockList
714
+ create TR in Table
715
+ create TD in TR
716
+ set the style of TD to `width:6em`
717
+ set the content of TD to `Block:`
718
+ create TD in TR
719
+ index BlockInput to SelectedStep
720
+ create BlockInput in TD
721
+ set the style of BlockInput to `width:100%`
722
+ set the content of BlockInput to property `block` of CurrentStep
714
723
gosub to EditContinue
715
724
return
716
725
@@ -1132,12 +1141,8 @@ SaveCurrentStep:
1132
1141
end
1133
1142
else if Action is `animate`
1134
1143
begin
1135
- put property `blocks` of CurrentStep into Blocks
1136
- if Blocks is empty
1137
- begin
1138
- set Blocks to array
1139
- set property `blocks` of CurrentStep to Blocks
1140
- end
1144
+ index BlockInput to SelectedStep
1145
+ set property `block` of CurrentStep to the text of BlockInput
1141
1146
index ContinueSelect to SelectedStep
1142
1147
set property `continue` of CurrentStep to ContinueSelect
1143
1148
end
You can’t perform that action at this time.
0 commit comments