Blink only happens on specified events

Now event objects must have a blink flag if they want to use the title
blink. For starters, this is only global, outside, and room events.
This commit is contained in:
skj3gg
2014-07-24 12:00:51 -04:00
parent d6a6a7a000
commit 79e765eb08
4 changed files with 27 additions and 5 deletions
+7 -2
View File
@@ -802,7 +802,10 @@ var Events = {
Events.loadScene('start');
$('div#wrapper').append(Events.eventPanel());
Events.eventPanel().animate({opacity: 1}, Events._PANEL_FADE, 'linear');
Events.blinkTitle();
var currentSceneInformation = Events.activeEvent().scenes[Events.activeScene];
if (typeof currentSceneInformation.blink == 'boolean' && currentSceneInformation.blink == true) {
Events.blinkTitle();
}
}
},
@@ -820,7 +823,9 @@ var Events = {
Events.eventStack.shift();
Engine.log(Events.eventStack.length + ' events remaining');
Engine.keyLock = false;
Events.stopTitleBlink();
if (typeof blinkInterval != 'undefined') {
Events.stopTitleBlink();
}
// Force refocus on the body. I hate you, IE.
$('body').focus();
});