52
52
variable Presentation
53
53
variable OriginalPresentation
54
54
variable Name
55
- variable ShowRun
56
55
variable ReadOnly
57
56
variable CallStack
58
57
variable Message
@@ -121,8 +120,8 @@ Start:
121
120
122
121
! The left-hand panel
123
122
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% `
126
125
127
126
create Masthead in Left
128
127
set the style of Masthead to
@@ -194,7 +193,7 @@ Start:
194
193
set attribute `title` of FileMan to `File Manager`
195
194
create Link in Buttons
196
195
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`
198
197
set attribute `src` of RunStop to `resources/icon/run.png`
199
198
set attribute `title` of RunStop to `Run`
200
199
create Link in Buttons
@@ -221,7 +220,7 @@ Start:
221
220
set the style of FileManPanel to `flex:1;display:none;margin-top:0.5em;border-top:1px solid black`
222
221
223
222
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 `
225
224
226
225
! The right-hand panel
227
226
create Right in Body
@@ -313,6 +312,9 @@ Start:
313
312
end
314
313
clear FileIsOpen
315
314
clear Player
315
+ clear Running
316
+ iwsy stop
317
+ set attribute `src` of RunStop to `resources/icon/run.png`
316
318
set the content of NameEditor to empty
317
319
put empty into CurrentScriptName
318
320
gosub to CreateNewPresentation
@@ -400,7 +402,7 @@ Start:
400
402
end
401
403
end
402
404
403
- on click RunStop
405
+ on click FileMan
404
406
begin
405
407
if Running stop
406
408
if UserRecord is empty stop
@@ -411,6 +413,7 @@ Start:
411
413
end
412
414
set style `display` of Player to `none`
413
415
set style `display` of HelpPanel to `none`
416
+ if HelpModule is running send `stop` to HelpModule
414
417
set style `display` of FileManPanel to `block`
415
418
send to FileManModule
416
419
end
@@ -473,6 +476,7 @@ Start:
473
476
begin
474
477
set style `display` of FileManPanel to `none`
475
478
set style `display` of HelpPanel to `none`
479
+ if HelpModule is running send `stop` to HelpModule
476
480
set style `display` of Player to `block`
477
481
put property `block` of Message into N
478
482
iwsy block N
@@ -553,7 +557,8 @@ FullScreenManual:
553
557
554
558
ShowHelp:
555
559
if Running stop
556
- if HelpModule is not running
560
+ if HelpModule is running send `stop` to HelpModule
561
+ else
557
562
begin
558
563
require js
559
564
`https://cdn.jsdelivr.net/gh/easycoder/easycoder.github.io/dist/plugins/showdown.js?v=` cat now
@@ -768,9 +773,11 @@ SelectFile:
768
773
gosub to SetStatusGreen
769
774
set the text of Status to `Presentation '` cat File cat `' loaded`
770
775
fork to ResetStatus
771
- set ShowRun
776
+ clear Running
777
+ set attribute `src` of RunStop to `resources/icon/run.png`
772
778
set style `display` of FileManPanel to `none`
773
779
set style `display` of HelpPanel to `none`
780
+ if HelpModule is running send `stop` to HelpModule
774
781
set style `display` of Player to `block`
775
782
iwsy script Presentation
776
783
@@ -806,11 +813,13 @@ DoRunStop:
806
813
begin
807
814
put property `steps` of Presentation into Item
808
815
if the json count of Item is 1 stop
809
- set Running
816
+ if HelpModule is running send `stop` to HelpModule
810
817
set style `display` of Player to `block`
811
818
set style `display` of FileManPanel to `none`
819
+ set style `display` of HelpPanel to `none`
812
820
gosub to ClearStepsButtons
813
821
set attribute `src` of RunStop to `resources/icon/runstop.png`
822
+ set Running
814
823
815
824
put 0 into N
816
825
gosub to SelectSection
@@ -820,7 +829,6 @@ DoRunStop:
820
829
put the iwsy step into N
821
830
if N is -1
822
831
begin
823
- ! set the content of NameEditor to empty
824
832
put the iwsy script into Presentation
825
833
go to PrepareScript
826
834
end
@@ -834,8 +842,8 @@ DoRunStop:
834
842
end
835
843
836
844
put Presentation into OriginalPresentation
837
- ! put NameEditor into OriginalName
838
845
set style `display` of HelpPanel to `none`
846
+ if HelpModule is running send `stop` to HelpModule
839
847
set Message to object
840
848
set property `action` of Message to `running`
841
849
send Message to StepsModule
@@ -844,7 +852,6 @@ DoRunStop:
844
852
gosub to ClearStepsButtons
845
853
set attribute `src` of RunStop to `resources/icon/run.png`
846
854
clear Running
847
- ! set the text of NameEditor to OriginalName
848
855
put OriginalPresentation into Presentation
849
856
go to PrepareScript
850
857
end
@@ -862,6 +869,12 @@ PrepareScript:
862
869
RunFullScreen:
863
870
put property `steps` of Presentation into Item
864
871
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
865
878
if Running iwsy stop
866
879
else iwsy run fullscreen
867
880
toggle Running
0 commit comments