mirror of
https://github.com/photonstorm/phaser
synced 2024-11-16 01:38:23 +00:00
ArrayList.callAll check added (ping @jflowers45 #746)
This commit is contained in:
parent
b6c2b4e0bf
commit
3db5d27c82
3 changed files with 50 additions and 1 deletions
|
@ -126,7 +126,10 @@ Phaser.ArrayList.prototype = {
|
|||
|
||||
while (i--)
|
||||
{
|
||||
this.list[i][callback].apply(this.list[i], args);
|
||||
if (this.list[i][callback])
|
||||
{
|
||||
this.list[i][callback].apply(this.list[i], args);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
27
src/pixi/extras/SPINE-LICENSE
Normal file
27
src/pixi/extras/SPINE-LICENSE
Normal file
|
@ -0,0 +1,27 @@
|
|||
Spine Runtimes Software License
|
||||
Version 2.1
|
||||
|
||||
Copyright (c) 2013, Esoteric Software
|
||||
All rights reserved.
|
||||
|
||||
You are granted a perpetual, non-exclusive, non-sublicensable and
|
||||
non-transferable license to install, execute and perform the Spine Runtimes
|
||||
Software (the "Software") solely for internal use. Without the written
|
||||
permission of Esoteric Software (typically granted by licensing Spine), you
|
||||
may not (a) modify, translate, adapt or otherwise create derivative works,
|
||||
improvements of the Software or develop new applications using the Software
|
||||
or (b) remove, delete, alter or obscure any trademarks or any copyright,
|
||||
trademark, patent or other intellectual property or proprietary rights notices
|
||||
on or in the Software, including any copy thereof. Redistributions in binary
|
||||
or source form must include this license and terms.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY ESOTERIC SOFTWARE "AS IS" AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
EVENT SHALL ESOTERIC SOFTARE BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
|
||||
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
|
||||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
|
||||
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@ -273,6 +273,25 @@ Phaser.Utils.Debug.prototype = {
|
|||
|
||||
},
|
||||
|
||||
/**
|
||||
* Render Timer information.
|
||||
*
|
||||
* @method Phaser.Utils.Debug#timer
|
||||
* @param {Phaser.Timer} timer - The Phaser.Timer to show the debug information for.
|
||||
* @param {number} x - X position of the debug info to be rendered.
|
||||
* @param {number} y - Y position of the debug info to be rendered.
|
||||
* @param {string} [color='rgb(255,255,255)'] - color of the debug info to be rendered. (format is css color string).
|
||||
*/
|
||||
timer: function (timer, x, y, color) {
|
||||
|
||||
this.start(x, y, color);
|
||||
this.line('Timer (running: ' + timer.running + ' expired: ' + timer.expired + ')');
|
||||
this.line('Next Tick: ' + timer.next + ' Duration: ' + timer.duration);
|
||||
this.line('Paused: ' + timer.paused + ' Length: ' + timer.length);
|
||||
this.stop();
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* Renders the Pointer.circle object onto the stage in green if down or red if up along with debug text.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue