| 1289 |
this[mode + "End"](); |
this[mode + "End"](); |
| 1290 |
|
|
| 1291 |
var linkMode = this.currentMode(); |
var linkMode = this.currentMode(); |
| 1292 |
if (linkMode && this[linkMode + "Show"]) |
if (newMode !== undefined && newMode != newMode) |
| 1293 |
|
this.changeMode(newMode); else if (linkMode && this[linkMode + "Show"]) |
| 1294 |
this[linkMode + "Show"](); |
this[linkMode + "Show"](); |
|
|
|
|
if (newMode) |
|
|
this.changeMode(newMode); |
|
| 1295 |
}; |
}; |
| 1296 |
|
|
| 1297 |
Scene.prototype.createLayer = function (name, size) { |
Scene.prototype.createLayer = function (name, size) { |
| 2013 |
this.animated.fire(); |
this.animated.fire(); |
| 2014 |
}; |
}; |
| 2015 |
MultilineText.LINE_HEIGHT_NORMAL = 1.2; |
MultilineText.LINE_HEIGHT_NORMAL = 1.2; |
| 2016 |
|
|
| 2017 |
MultilineText.BROWSER_BASELINE_MARGIN = 0; |
MultilineText.BROWSER_BASELINE_MARGIN = 0; |
| 2018 |
return MultilineText; |
return MultilineText; |
| 2019 |
})(jg.E); |
})(jg.E); |
| 2323 |
__extends(LoadingScene, _super); |
__extends(LoadingScene, _super); |
| 2324 |
function LoadingScene(game, resource) { |
function LoadingScene(game, resource) { |
| 2325 |
_super.call(this, game); |
_super.call(this, game); |
|
this.game = game; |
|
| 2326 |
this.resource = resource; |
this.resource = resource; |
| 2327 |
this.resource.loaded.handle(this, this.complete); |
this.resource.loaded.handle(this, this.complete); |
| 2328 |
this.resource.added.handle(this, this.added); |
this.resource.added.handle(this, this.added); |
| 4684 |
easing: easing |
easing: easing |
| 4685 |
}); |
}); |
| 4686 |
}; |
}; |
| 4687 |
|
|
| 4688 |
Timeline.prototype.resizeBy = function (size, time, easing, easing2) { |
Timeline.prototype.resizeBy = function (size, time, easing, easing2) { |
| 4689 |
if (typeof easing === "number") { |
if (typeof easing === "number") { |
| 4690 |
return this.tween({ |
return this.tween({ |
| 4789 |
return Timeline; |
return Timeline; |
| 4790 |
})(); |
})(); |
| 4791 |
jg.Timeline = Timeline; |
jg.Timeline = Timeline; |
| 4792 |
|
|
| 4793 |
Timeline.prototype.isFrameBased = false; |
Timeline.prototype.isFrameBased = false; |
| 4794 |
})(jg || (jg = {})); |
})(jg || (jg = {})); |
| 4795 |
var jg; |
var jg; |
| 4824 |
var a2 = p2; |
var a2 = p2; |
| 4825 |
if (a1.width && a1.height) { |
if (a1.width && a1.height) { |
| 4826 |
if (a2.width && a2.height) { |
if (a2.width && a2.height) { |
| 4827 |
return a1.x <= (a2.x + a2.width) && a2.x <= (a1.x + a1.width) && a1.y <= (a2.y + a2.height) && a2.y <= (a1.y + a1.height); |
return a1.x < (a2.x + a2.width) && a2.x < (a1.x + a1.width) && a1.y < (a2.y + a2.height) && a2.y < (a1.y + a1.height); |
| 4828 |
} else { |
} else { |
| 4829 |
return a2.x >= a1.x && a2.x <= (a1.x + a1.width) && a2.y >= a1.y && a2.y <= (a1.y + a1.height); |
return a2.x >= a1.x && a2.x < (a1.x + a1.width) && a2.y >= a1.y && a2.y < (a1.y + a1.height); |
| 4830 |
} |
} |
| 4831 |
} else if (a2.width && a2.height) { |
} else if (a2.width && a2.height) { |
| 4832 |
return a1.x >= a2.x && a1.x <= (a2.x + a2.width) && a1.y >= a2.y && a1.y <= (a2.y + a2.height); |
return a1.x >= a2.x && a1.x < (a2.x + a2.width) && a1.y >= a2.y && a1.y < (a2.y + a2.height); |
| 4833 |
} |
} |
| 4834 |
|
|
| 4835 |
return p1.x == p2.x && p1.y == p2.y; |
return p1.x == p2.x && p1.y == p2.y; |