5252 variable Presentation
5353 variable OriginalPresentation
5454 variable Name
55- variable ShowRun
5655 variable ReadOnly
5756 variable CallStack
5857 variable Message
@@ -121,8 +120,8 @@ Start:
121120
122121! The left-hand panel
123122 create Left in Body
124- set the style of Left to
125- `flex:1;height:100%;border-right:1px solid black;margin-right:0.5em; display:flex;flex-direction:column`
123+ set the style of Left to `flex:1;height:100%;border-right:1px solid black;margin-right:0.5em;`
124+ cat ` display:flex;flex-direction:column;max-width:50% `
126125
127126 create Masthead in Left
128127 set the style of Masthead to
@@ -194,7 +193,7 @@ Start:
194193 set attribute `title` of FileMan to `File Manager`
195194 create Link in Buttons
196195 create RunStop in Link
197- set the style of RunStop to `width:40px;margin-right:1 .5em`
196+ set the style of RunStop to `width:40px;margin-right:0 .5em`
198197 set attribute `src` of RunStop to `resources/icon/run.png`
199198 set attribute `title` of RunStop to `Run`
200199 create Link in Buttons
@@ -221,7 +220,7 @@ Start:
221220 set the style of FileManPanel to `flex:1;display:none;margin-top:0.5em;border-top:1px solid black`
222221
223222 create HelpPanel in Left
224- set the style of HelpPanel to `flex:1;display:none;margin-top:0.5em;border-top:1px solid black`
223+ set the style of HelpPanel to `flex:1;display:none;margin-top:0.5em;border-top:1px solid black;overflow:scroll `
225224
226225! The right-hand panel
227226 create Right in Body
@@ -313,6 +312,9 @@ Start:
313312 end
314313 clear FileIsOpen
315314 clear Player
315+ clear Running
316+ iwsy stop
317+ set attribute `src` of RunStop to `resources/icon/run.png`
316318 set the content of NameEditor to empty
317319 put empty into CurrentScriptName
318320 gosub to CreateNewPresentation
@@ -400,7 +402,7 @@ Start:
400402 end
401403 end
402404
403- on click RunStop
405+ on click FileMan
404406 begin
405407 if Running stop
406408 if UserRecord is empty stop
@@ -411,6 +413,7 @@ Start:
411413 end
412414 set style `display` of Player to `none`
413415 set style `display` of HelpPanel to `none`
416+ if HelpModule is running send `stop` to HelpModule
414417 set style `display` of FileManPanel to `block`
415418 send to FileManModule
416419 end
@@ -473,6 +476,7 @@ Start:
473476 begin
474477 set style `display` of FileManPanel to `none`
475478 set style `display` of HelpPanel to `none`
479+ if HelpModule is running send `stop` to HelpModule
476480 set style `display` of Player to `block`
477481 put property `block` of Message into N
478482 iwsy block N
@@ -553,7 +557,8 @@ FullScreenManual:
553557
554558ShowHelp:
555559 if Running stop
556- if HelpModule is not running
560+ if HelpModule is running send `stop` to HelpModule
561+ else
557562 begin
558563 require js
559564 `https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/plugins/showdown.js?v=` cat now
@@ -768,9 +773,11 @@ SelectFile:
768773 gosub to SetStatusGreen
769774 set the text of Status to `Presentation '` cat File cat `' loaded`
770775 fork to ResetStatus
771- set ShowRun
776+ clear Running
777+ set attribute `src` of RunStop to `resources/icon/run.png`
772778 set style `display` of FileManPanel to `none`
773779 set style `display` of HelpPanel to `none`
780+ if HelpModule is running send `stop` to HelpModule
774781 set style `display` of Player to `block`
775782 iwsy script Presentation
776783
@@ -806,11 +813,13 @@ DoRunStop:
806813 begin
807814 put property `steps` of Presentation into Item
808815 if the json count of Item is 1 stop
809- set Running
816+ if HelpModule is running send `stop` to HelpModule
810817 set style `display` of Player to `block`
811818 set style `display` of FileManPanel to `none`
819+ set style `display` of HelpPanel to `none`
812820 gosub to ClearStepsButtons
813821 set attribute `src` of RunStop to `resources/icon/runstop.png`
822+ set Running
814823
815824 put 0 into N
816825 gosub to SelectSection
@@ -820,7 +829,6 @@ DoRunStop:
820829 put the iwsy step into N
821830 if N is -1
822831 begin
823- ! set the content of NameEditor to empty
824832 put the iwsy script into Presentation
825833 go to PrepareScript
826834 end
@@ -834,8 +842,8 @@ DoRunStop:
834842 end
835843
836844 put Presentation into OriginalPresentation
837- ! put NameEditor into OriginalName
838845 set style `display` of HelpPanel to `none`
846+ if HelpModule is running send `stop` to HelpModule
839847 set Message to object
840848 set property `action` of Message to `running`
841849 send Message to StepsModule
@@ -844,7 +852,6 @@ DoRunStop:
844852 gosub to ClearStepsButtons
845853 set attribute `src` of RunStop to `resources/icon/run.png`
846854 clear Running
847- ! set the text of NameEditor to OriginalName
848855 put OriginalPresentation into Presentation
849856 go to PrepareScript
850857 end
@@ -862,6 +869,12 @@ PrepareScript:
862869RunFullScreen:
863870 put property `steps` of Presentation into Item
864871 if the json count of Item is 1 stop
872+ if HelpModule is running send `stop` to HelpModule
873+ set style `display` of Player to `block`
874+ set style `display` of FileManPanel to `none`
875+ set style `display` of HelpPanel to `none`
876+ iwsy init
877+ iwsy script Presentation
865878 if Running iwsy stop
866879 else iwsy run fullscreen
867880 toggle Running
0 commit comments