mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
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:
+7
-2
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user