From b0ba59a5a0c92c541582ed93eb4f4ae6dc20e23b Mon Sep 17 00:00:00 2001
From: Graham Trott <gtanyware@gmail.com>
Date: Mon, 26 Oct 2020 13:04:08 +0000
Subject: [PATCH] Add handler for Technical

---
 resources/ecs/main.ecs | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/resources/ecs/main.ecs b/resources/ecs/main.ecs
index 2f65aac..e384e54 100644
--- a/resources/ecs/main.ecs
+++ b/resources/ecs/main.ecs
@@ -31,6 +31,7 @@
 	module PhilosophyModule
 	module ContactModule
 	module LifeModule
+	module TechnicalModule
 	module CurrentModule
 	variable Script
 	variable ButtonStyle
@@ -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
@@ -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
@@ -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
\ No newline at end of file