Skip to content

Commit 48f6ccd

Browse files
committed
Fix Codex run
1 parent 681cf78 commit 48f6ccd

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

resources/ecs/about.ecs

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,13 @@ Start:
5353
attach CodexButton to `about-codex`
5454
on click CodexButton
5555
begin
56-
alert `Codex`
57-
require js `dist/plugins/codemirror.js`
58-
rest get Codex from `/resources/ecs/codex.ecs`
59-
send `hide` to parent
60-
run Codex
56+
if Codex is not running
57+
begin
58+
require js `dist/plugins/codemirror.js`
59+
rest get Codex from `/resources/ecs/codex.ecs`
60+
send `hide` to parent
61+
run Codex
62+
end
63+
send `start` to Codex
6164
end
6265
stop

resources/ecs/codex.ecs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,16 +332,21 @@ L2:
332332
remove element Body
333333
send `restore` to parent
334334
history set url `.`
335-
exit
335+
! exit
336+
set style `display` of Body to `none`
336337
end
337338

338339
on message
339340
begin
340341
put the message into Message
342+
if Message is `start`
343+
begin
344+
set style `display` of Body to `block`
345+
end
341346
if Message is `next` go to StepForward
342347
if Message is `tutorial`
343348
begin
344-
set style `display` of ReferencePanel to `none`
349+
set style `display` of ReferencePanel to `none`
345350
set style `display` of HelpPanel to `block`
346351
set style `display` of HelpButtons to `block`
347352
put empty into storage as `.ref`

0 commit comments

Comments
 (0)