Skip to content

Commit 21eb7fa

Browse files
committed
Fix 'goto' bug
1 parent cec9a87 commit 21eb7fa

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

iwsy/resources/ecs/steps.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ SetupArrays:
344344
set the elements of LabelInput to N
345345
set the elements of DurationInput to N
346346
set the elements of URLInput to N
347+
set the elements of TargetInput to N
347348
set the elements of ChainSelect to N
348349
set the elements of DisplaySelect to N
349350
set the elements of ContinueSelect to N
@@ -742,6 +743,7 @@ EditGoto:
742743
set the style of TD to `width:6em`
743744
set the content of TD to `Target:`
744745
create TD in TR
746+
index TargetInput to SelectedStep
745747
create TargetInput in TD
746748
set the style of TargetInput to `width:100%`
747749
set the content of TargetInput to property `target` of CurrentStep
@@ -1123,7 +1125,7 @@ SaveCurrentStep:
11231125
set property `blocks` of CurrentStep to Blocks
11241126
end
11251127
index DurationInput to SelectedStep
1126-
set property `duration` of CurrentStep to the text of DurationInput
1128+
set property `duration` of CurrentStep to DurationInput
11271129
index ContinueSelect to SelectedStep
11281130
set property `continue` of CurrentStep to ContinueSelect
11291131
end
@@ -1136,7 +1138,7 @@ SaveCurrentStep:
11361138
set property `blocks` of CurrentStep to Blocks
11371139
end
11381140
index DurationInput to SelectedStep
1139-
set property `duration` of CurrentStep to the text of DurationInput
1141+
set property `duration` of CurrentStep to DurationInput
11401142
index ContinueSelect to SelectedStep
11411143
set property `continue` of CurrentStep to ContinueSelect
11421144
end
@@ -1151,7 +1153,7 @@ SaveCurrentStep:
11511153
set property `block` of CurrentStep to BlockSelect
11521154
set property `target` of CurrentStep to TargetSelect
11531155
index DurationInput to SelectedStep
1154-
set property `duration` of CurrentStep to the text of DurationInput
1156+
set property `duration` of CurrentStep to DurationInput
11551157
index ContinueSelect to SelectedStep
11561158
set property `continue` of CurrentStep to ContinueSelect
11571159
end
@@ -1160,19 +1162,19 @@ SaveCurrentStep:
11601162
set property `block` of CurrentStep to BlockSelect
11611163
set property `target` of CurrentStep to TargetSelect
11621164
index DurationInput to SelectedStep
1163-
set property `duration` of CurrentStep to the text of DurationInput
1165+
set property `duration` of CurrentStep to DurationInput
11641166
index ContinueSelect to SelectedStep
11651167
set property `continue` of CurrentStep to ContinueSelect
11661168
end
11671169
else if Action is `pause`
11681170
begin
11691171
index DurationInput to SelectedStep
1170-
set property `duration` of CurrentStep to the text of DurationInput
1172+
set property `duration` of CurrentStep to DurationInput
11711173
end
11721174
else if Action is `goto`
11731175
begin
1174-
put property `target` of CurrentStep into Target
1175-
if Target is empty set property `target` of CurrentStep to `******`
1176+
index TargetInput to SelectedStep
1177+
set property `target` of CurrentStep to TargetInput
11761178
end
11771179
else if Action is `load`
11781180
begin

0 commit comments

Comments
 (0)