From de2ad910538eab2c31695d933011d4b57665913a Mon Sep 17 00:00:00 2001 From: Matt Rasmus Date: Mon, 8 Jul 2013 13:10:49 -0700 Subject: [PATCH] Weapons panel hides when not in Room. --- script/engine.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/script/engine.js b/script/engine.js index d00fb62..eae1761 100644 --- a/script/engine.js +++ b/script/engine.js @@ -304,6 +304,15 @@ var Engine = { } module.onArrival(diff); + + if(Engine.activeModule == Room) { + $('div#weapons').animate({opacity: 0}, 300); + } + + if(module == Room) { + $('div#weapons').animate({opacity: 1}, 300); + } + Engine.activeModule = module; Notifications.printQueue(module);