mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
disable tab navigation during events (fixes #403) depends on @AndySky21's branch world-to-path
This commit is contained in:
committed by
Blake Grotewold
parent
08bd1c7caf
commit
f94cfe2590
@@ -838,6 +838,7 @@ var Events = {
|
||||
if(event) {
|
||||
Engine.event('game event', 'event');
|
||||
Engine.keyLock = true;
|
||||
Engine.tabNavigation = false;
|
||||
Events.eventStack.unshift(event);
|
||||
event.eventPanel = $('<div>').attr('id', 'event').addClass('eventPanel').css('opacity', '0');
|
||||
if(options != null && options.width != null) {
|
||||
@@ -870,6 +871,7 @@ var Events = {
|
||||
Events.eventStack.shift();
|
||||
Engine.log(Events.eventStack.length + ' events remaining');
|
||||
Engine.keyLock = false;
|
||||
Engine.tabNavigation = true;
|
||||
if (Events.BLINK_INTERVAL) {
|
||||
Events.stopTitleBlink();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user