Skip to content

Commit bf92574

Browse files
committed
Use selector instead of input
1 parent b49740c commit bf92574

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

iwsy/resources/ecs/steps.txt

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
input TitleInput
3535
input LabelInput
3636
input DurationInput
37-
input BlockInput
3837
input TargetInput
3938
input URLInput
4039
textarea InitCSS
@@ -343,7 +342,6 @@ SetupArrays:
343342
set the elements of DeleteStep to N
344343
set the elements of TitleInput to N
345344
set the elements of LabelInput to N
346-
set the elements of BlockInput to N
347345
set the elements of DurationInput to N
348346
set the elements of URLInput to N
349347
set the elements of ChainSelect to N
@@ -717,10 +715,12 @@ EditAnimate:
717715
set the style of TD to `width:6em`
718716
set the content of TD to `Block:`
719717
create TD in TR
720-
index BlockInput to SelectedStep
721-
create BlockInput in TD
722-
set the style of BlockInput to `width:100%`
723-
set the content of BlockInput to property `block` of CurrentStep
718+
set the elements of BlockSelect to 1
719+
put property `block` of CurrentStep into Block
720+
create BlockRow in TD
721+
create BlockSelect in BlockRow
722+
set the style of BlockSelect to `width:100%`
723+
set BlockSelect from BlockNames as Block
724724
gosub to EditContinue
725725
return
726726

@@ -1142,8 +1142,7 @@ SaveCurrentStep:
11421142
end
11431143
else if Action is `animate`
11441144
begin
1145-
index BlockInput to SelectedStep
1146-
set property `block` of CurrentStep to the text of BlockInput
1145+
set property `block` of CurrentStep to BlockSelect
11471146
index ContinueSelect to SelectedStep
11481147
set property `continue` of CurrentStep to ContinueSelect
11491148
end

0 commit comments

Comments
 (0)