mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 16:21:53 +08:00
Keep showing the weapons panel while in the Path screen.
This commit is contained in:
+8
-4
@@ -304,12 +304,16 @@ var Engine = {
|
||||
}
|
||||
|
||||
module.onArrival(diff);
|
||||
|
||||
if(Engine.activeModule == Room) {
|
||||
$('div#weapons').animate({opacity: 0}, 300);
|
||||
|
||||
if(Engine.activeModule == Room || Engine.activeModule == Path) {
|
||||
// Don't fade out the weapons if we're switching to a module
|
||||
// where we're going to keep showing them anyway.
|
||||
if (module != Room && module != Path) {
|
||||
$('div#weapons').animate({opacity: 0}, 300);
|
||||
}
|
||||
}
|
||||
|
||||
if(module == Room) {
|
||||
if(module == Room || module == Path) {
|
||||
$('div#weapons').animate({opacity: 1}, 300);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user