mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 08:11:54 +08:00
Weapons panel hides when not in Room.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user