Skip to content

Commit d96d823

Browse files
authoredMay 30, 2020
Merge pull request #80 from easycoder/dev
Development
2 parents e5790a6 + 2de3e0e commit d96d823

File tree

5 files changed

+30
-29
lines changed

5 files changed

+30
-29
lines changed
 
File renamed without changes.

‎iwsy/resources/ecs/blocks.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ Restart:
5252

5353
clear Panel
5454
create Row in Panel
55-
set the style of Row to `display:flex;margin-top:0.5em`
55+
set the style of Row to `display:flex`
5656
create Title in Row
5757
set the style of Title to
58-
`flex:1;font-size:110%;font-weight:bold;background:lightgray;text-align:center`
58+
`flex:1;font-size:110%;font-weight:bold;background:lightgray;text-align:center;margin-bottom:0.5em`
5959
set the content of Title to `Blocks`
6060
create Cell in Row
6161
set the style of Cell to `width:1.4em;text-align:center`
@@ -86,7 +86,7 @@ Restart:
8686
set the elements of Editor to N
8787
set the elements of DeleteBlock to N
8888
create Table in Panel
89-
if N is greater than 0 set the style of Table to `width:100%;border:1px solid black`
89+
set the style of Table to `width:100%`
9090
put 0 into B
9191
while B is less than the elements of EditButton
9292
begin

‎iwsy/resources/ecs/content.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ Restart:
5454

5555
clear Panel
5656
create Row in Panel
57-
set the style of Row to `display:flex;margin-top:0.5em`
57+
set the style of Row to `display:flex`
5858
create Title in Row
5959
set the style of Title to
60-
`flex:1;font-size:110%;font-weight:bold;background:lightgray;text-align:center`
60+
`flex:1;font-size:110%;font-weight:bold;background:lightgray;text-align:center;margin-bottom:0.5em`
6161
set the content of Title to `Content Items`
6262
create Cell in Row
6363
set the style of Cell to `width:1.4em;text-align:center`
@@ -81,7 +81,7 @@ Restart:
8181
set the elements of TypeSelect to N
8282
set the elements of TextArea to N
8383
create Table in Panel
84-
if N is greater than 0 set the style of Table to `width:100%;border:1px solid black`
84+
set the style of Table to `width:100%`
8585
put 0 into B
8686
while B is less than the elements of EditButton
8787
begin

‎iwsy/resources/ecs/main.txt

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
! Mostrami
1+
! IWSY
22

3-
script Mostrami
3+
script IWSY
44

55
div Body
66
div Left
@@ -85,26 +85,36 @@ L2:
8585
if mobile set Mobile else clear Mobile
8686
end
8787

88-
set the title to `Mostrami Pro`
88+
set the title to `IWSY`
8989
create Body
9090
if Mobile
9191
set the style of Body to `width:100%;height:100%`
9292
else
9393
set the style of Body to `width:100%;height:100%;display:flex`
9494

9595
create Left in Body
96-
set the style of Left to `flex:1;height:100%;display:flex;flex-direction:column;overflow:hidden`
96+
set the style of Left to
97+
`flex:1;height:100%;display:flex;flex-direction:column;border-right:1px solid black;margin-right:0.5em`
9798

9899
create Right in Body
99-
set the style of Right to `flex:1;height:100%;display:flex;flex-direction: column`
100+
set the style of Right to `flex:1;height:100%;display:flex;flex-direction:column;overflow:hidden`
100101

101102
create Controls in Left
102-
set the style of Controls to `flex:1;background:lightgray;padding:0 0.5em`
103+
set the style of Controls to `flex:1;padding:0 0.5em`
103104

104105
create Buttons in Controls
105106
set the style of Buttons to `width:100%;padding:0.5em 0`
106107

107-
create ContentDiv in Left
108+
create ScriptName in Controls
109+
set the style of ScriptName to `display:flex`
110+
if Mobile set style `display` of ScriptName to `none`
111+
create Span in ScriptName
112+
set the style of Span to `flex:15`
113+
set the content of Span to `Script name: `
114+
create NameEditor in ScriptName
115+
set the style of NameEditor to `flex:85;display:inline-block`
116+
117+
create ContentDiv in Right
108118
set the style of ContentDiv to `width:100%;height:100%;position:relative`
109119

110120
create Link in Buttons
@@ -140,17 +150,8 @@ L2:
140150
create Status in Buttons
141151
if Mobile set the style of Status to `height:1em`
142152
else set the style of Status to `float:right;margin:0.5em 0 0 0;color:green`
143-
144-
create ScriptName in Controls
145-
set the style of ScriptName to `display:flex`
146-
if Mobile set style `display` of ScriptName to `none`
147-
create Span in ScriptName
148-
set the style of Span to `flex:15`
149-
set the content of Span to `Script name: `
150-
create NameEditor in ScriptName
151-
set the style of NameEditor to `flex:85;display:inline-block`
152153

153-
create Tabs in Controls
154+
create Tabs in ContentDiv
154155
set the style of Tabs to `width:100%;padding:0.5em 0;text-align:center`
155156
put the width of Tabs into N
156157
divide N by 3
@@ -162,23 +163,23 @@ L2:
162163
set the style of SectionButton to `width:100%`
163164
set the content of SectionButton to `Steps`
164165
create StepsPanel in ContentDiv
165-
set the style of StepsPanel to `position:absolute;left:0;top:0;width:100%;height:100%;`
166+
set the style of StepsPanel to `position:absolute;left:0;top:2.5em;width:100%;height:calc(100% - 2.5em)`
166167
create Tab in Tabs
167168
set the style of Tab to `display:inline-block;width:` cat N cat `px`
168169
index SectionButton to 1
169170
create SectionButton in Tab
170171
set the style of SectionButton to `width:100%`
171172
set the content of SectionButton to `Blocks`
172173
create BlocksPanel in ContentDiv
173-
set the style of BlocksPanel to `position:absolute;left:0;top:0;width:100%;height:100%;`
174+
set the style of BlocksPanel to `position:absolute;left:0;top:2.5em;width:100%;height:calc(100% - 2.5em)`
174175
create Tab in Tabs
175176
set the style of Tab to `display:inline-block;width:` cat N cat `px`
176177
index SectionButton to 2
177178
create SectionButton in Tab
178179
set the style of SectionButton to `width:100%`
179180
set the content of SectionButton to `Content`
180181
create ContentPanel in ContentDiv
181-
set the style of ContentPanel to `position:absolute;left:0;top:0;width:100%;height:100%;`
182+
set the style of ContentPanel to `position:absolute;left:0;top:2.5em;width:100%;height:calc(100% - 2.5em)`
182183
create Tab in Tabs
183184
set the style of Tab to `display:inline-block;width:` cat N cat `px`
184185

‎iwsy/resources/ecs/steps.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
put -1 into SelectedStep
6767

6868
create StepsPanel in Panel
69-
set the style of StepsPanel to `flex:1;overflow-y:scroll;margin-top:0.5em`
69+
set the style of StepsPanel to `flex:1;overflow-y:scroll`
7070

7171
on message go to Start
7272
set ready
@@ -92,7 +92,7 @@ Restart:
9292
set the style of Row to `display:flex`
9393
create Title in Row
9494
set the style of Title to
95-
`flex:1;font-size:110%;font-weight:bold;background:lightgray;text-align:center`
95+
`flex:1;font-size:110%;font-weight:bold;background:lightgray;text-align:center;margin-bottom:0.5em`
9696
set the content of Title to `Steps`
9797
create Cell in Row
9898
set the style of Cell to `width:1.4em;text-align:center`
@@ -116,7 +116,7 @@ Restart:
116116
create Row in StepsPanel
117117
set the style of Row to `width:100%`
118118
create Row1 in Row
119-
set the style of Row1 to `display:flex;margin:0.2em 0`
119+
set the style of Row1 to `display:flex;margin-bottom:0.2em`
120120
create StepButton in Row1
121121
set the style of StepButton to `flex:1`
122122
put element N of Steps into CurrentStep

0 commit comments

Comments
 (0)
Please sign in to comment.