mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-10 22:47:13 +08:00
Keep showing the weapons panel while in the Path screen.
This commit is contained in:
+7
-3
@@ -305,11 +305,15 @@ var Engine = {
|
|||||||
|
|
||||||
module.onArrival(diff);
|
module.onArrival(diff);
|
||||||
|
|
||||||
if(Engine.activeModule == Room) {
|
if(Engine.activeModule == Room || Engine.activeModule == Path) {
|
||||||
$('div#weapons').animate({opacity: 0}, 300);
|
// 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);
|
$('div#weapons').animate({opacity: 1}, 300);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user