Skip to content

Commit 268ed2d

Browse files
authored
Merge pull request #225 from easycoder/dev
Add handler for Technical
2 parents 173a003 + b0ba59a commit 268ed2d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

resources/ecs/main.ecs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
module PhilosophyModule
3232
module ContactModule
3333
module LifeModule
34+
module TechnicalModule
3435
module CurrentModule
3536
variable Script
3637
variable ButtonStyle
@@ -116,6 +117,8 @@ BuildPage:
116117
run Script with ShowdownModule as ContactModule
117118
rest get Script from `/resources/ecs/life.ecs`
118119
run Script with ShowdownModule as LifeModule
120+
rest get Script from `/resources/ecs/technical.ecs`
121+
run Script with ShowdownModule as TechnicalModule
119122

120123
alias CurrentModule to HomeModule
121124
send to HomeModule
@@ -217,7 +220,12 @@ BuildPage:
217220
set the text of TechnicalButton to `Technical Overview`
218221
on click TechnicalButton
219222
begin
220-
location `/technical.html`
223+
! location `/technical.html`
224+
gosub to DeselectAllButtons
225+
set style `background` of TechnicalButton to `darkgray`
226+
send `pause` to CurrentModule
227+
alias CurrentModule to TechnicalModule
228+
send to ContactModule
221229
end
222230

223231
create ButtonItem in ButtonList
@@ -270,4 +278,5 @@ DeselectAllButtons:
270278
set style `background` of ExamplesButton to ``
271279
set style `background` of AboutButton to ``
272280
set style `background` of PhilosophyButton to ``
281+
set style `background` of ContactButton to ``
273282
return

0 commit comments

Comments
 (0)