|
22 | 22 | button CodexButton |
23 | 23 | button TechnicalButton |
24 | 24 | button WordPressButton |
| 25 | + button PieButton |
25 | 26 | hr Rule |
26 | 27 | a ShowNotes |
27 | 28 | module ShowdownModule |
|
33 | 34 | module ContactModule |
34 | 35 | module LifeModule |
35 | 36 | module TechnicalModule |
36 | | - module WordPressModule |
37 | 37 | module HowItWorksModule |
| 38 | + module WordPressModule |
| 39 | + module PieModule |
38 | 40 | module CurrentModule |
39 | 41 | module CodexModule |
40 | 42 | variable Script |
@@ -123,10 +125,12 @@ BuildPage: |
123 | 125 | run Script with ShowdownModule as LifeModule |
124 | 126 | rest get Script from `/resources/ecs/technical.ecs` |
125 | 127 | run Script with ShowdownModule as TechnicalModule |
126 | | - rest get Script from `/resources/ecs/wordpress.ecs` |
127 | | - run Script with ShowdownModule as WordPressModule |
128 | 128 | rest get Script from `/resources/ecs/howitworks.ecs` |
129 | 129 | run Script with ShowdownModule as HowItWorksModule |
| 130 | + rest get Script from `/resources/ecs/wordpress.ecs` |
| 131 | + run Script with ShowdownModule as WordPressModule |
| 132 | + rest get Script from `/resources/ecs/pie.ecs` |
| 133 | + run Script with ShowdownModule as PieModule |
130 | 134 |
|
131 | 135 | alias CurrentModule to HomeModule |
132 | 136 | send to HomeModule |
@@ -249,6 +253,20 @@ BuildPage: |
249 | 253 | send to WordPressModule |
250 | 254 | end |
251 | 255 |
|
| 256 | + create ButtonItem in ButtonList |
| 257 | + create PieButton in ButtonItem |
| 258 | + set the style of PieButton to ButtonStyle |
| 259 | + set style `margin-top` of PieButton to `0.25em` |
| 260 | + set the text of PieButton to `Programming in English` |
| 261 | + on click PieButton |
| 262 | + begin |
| 263 | + gosub to DeselectAllButtons |
| 264 | + set style `background` of PieButton to `darkgray` |
| 265 | + send `pause` to CurrentModule |
| 266 | + alias CurrentModule to PieModule |
| 267 | + send to PieModule |
| 268 | + end |
| 269 | + |
252 | 270 | create ButtonItem in ButtonList |
253 | 271 | create CodexButton in ButtonItem |
254 | 272 | set the style of CodexButton to ButtonStyle |
|
0 commit comments