Skip to content

Add handler for Technical #225

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion resources/ecs/main.ecs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
module PhilosophyModule
module ContactModule
module LifeModule
module TechnicalModule
module CurrentModule
variable Script
variable ButtonStyle
Expand Down Expand Up @@ -116,6 +117,8 @@ BuildPage:
run Script with ShowdownModule as ContactModule
rest get Script from `/resources/ecs/life.ecs`
run Script with ShowdownModule as LifeModule
rest get Script from `/resources/ecs/technical.ecs`
run Script with ShowdownModule as TechnicalModule

alias CurrentModule to HomeModule
send to HomeModule
Expand Down Expand Up @@ -217,7 +220,12 @@ BuildPage:
set the text of TechnicalButton to `Technical Overview`
on click TechnicalButton
begin
location `/technical.html`
! location `/technical.html`
gosub to DeselectAllButtons
set style `background` of TechnicalButton to `darkgray`
send `pause` to CurrentModule
alias CurrentModule to TechnicalModule
send to ContactModule
end

create ButtonItem in ButtonList
Expand Down Expand Up @@ -270,4 +278,5 @@ DeselectAllButtons:
set style `background` of ExamplesButton to ``
set style `background` of AboutButton to ``
set style `background` of PhilosophyButton to ``
set style `background` of ContactButton to ``
return