buttonMode added and documented
This commit is contained in:
parent
c1240a1da7
commit
164e35e5f0
26 changed files with 634 additions and 140 deletions
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2012, Mat Groves
|
||||
* http://goodboydigital.com/
|
||||
*
|
||||
* Compiled: 2013-04-30
|
||||
* Compiled: 2013-05-01
|
||||
*
|
||||
* Pixi.JS is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -200,6 +200,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
@ -1129,6 +1135,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -1137,6 +1145,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -1145,9 +1155,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -1157,7 +1169,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -329,6 +329,13 @@
|
|||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property">
|
||||
<a href="#property_buttonMode">buttonMode</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property">
|
||||
|
@ -589,7 +596,7 @@ WebGL is the preferred renderer as it is a lot fastest. If webGL is not supporte
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l91"><code>src/pixi/DisplayObject.js:91</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -676,7 +683,7 @@ WebGL is the preferred renderer as it is a lot fastest. If webGL is not supporte
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -763,7 +770,7 @@ WebGL is the preferred renderer as it is a lot fastest. If webGL is not supporte
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l129"><code>src/pixi/DisplayObject.js:129</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -850,7 +857,7 @@ WebGL is the preferred renderer as it is a lot fastest. If webGL is not supporte
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l117"><code>src/pixi/DisplayObject.js:117</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -937,7 +944,7 @@ WebGL is the preferred renderer as it is a lot fastest. If webGL is not supporte
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l109"><code>src/pixi/DisplayObject.js:109</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1025,7 +1032,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l110"><code>src/pixi/DisplayObject.js:110</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l116"><code>src/pixi/DisplayObject.js:116</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1113,7 +1120,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l164"><code>src/pixi/DisplayObject.js:164</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l170"><code>src/pixi/DisplayObject.js:170</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1200,7 +1207,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l134"><code>src/pixi/DisplayObject.js:134</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l140"><code>src/pixi/DisplayObject.js:140</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1288,7 +1295,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1375,7 +1382,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l159"><code>src/pixi/DisplayObject.js:159</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1463,7 +1470,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l141"><code>src/pixi/DisplayObject.js:141</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1557,6 +1564,50 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="property_buttonMode" class="property item">
|
||||
<h3 class="name"><code>buttonMode</code></h3>
|
||||
<span class="type">Boolean</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="meta">
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
|
||||
Defined in
|
||||
|
||||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l86"><code>src/pixi/DisplayObject.js:86</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<p>This is used to indicate if the displayObject should display a mouse hand cursor on rollover</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -359,6 +359,13 @@
|
|||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property inherited">
|
||||
<a href="#property_buttonMode">buttonMode</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property">
|
||||
|
@ -665,7 +672,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l91"><code>src/pixi/DisplayObject.js:91</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -836,7 +843,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -920,7 +927,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l129"><code>src/pixi/DisplayObject.js:129</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1004,7 +1011,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l117"><code>src/pixi/DisplayObject.js:117</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1088,7 +1095,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l109"><code>src/pixi/DisplayObject.js:109</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1173,7 +1180,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l110"><code>src/pixi/DisplayObject.js:110</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l116"><code>src/pixi/DisplayObject.js:116</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1345,7 +1352,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l164"><code>src/pixi/DisplayObject.js:164</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l170"><code>src/pixi/DisplayObject.js:170</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1537,7 +1544,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l134"><code>src/pixi/DisplayObject.js:134</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l140"><code>src/pixi/DisplayObject.js:140</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1622,7 +1629,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1706,7 +1713,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l159"><code>src/pixi/DisplayObject.js:159</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1791,7 +1798,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l141"><code>src/pixi/DisplayObject.js:141</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1882,6 +1889,47 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="property_buttonMode" class="property item inherited">
|
||||
<h3 class="name"><code>buttonMode</code></h3>
|
||||
<span class="type">Boolean</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<p>Inherited from
|
||||
<a href="../classes/DisplayObject.html#property_buttonMode">DisplayObject</a>:
|
||||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l86"><code>src/pixi/DisplayObject.js:86</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<p>This is used to indicate if the displayObject should display a mouse hand cursor on rollover</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -126,7 +126,7 @@
|
|||
|
||||
|
||||
<div class="foundat">
|
||||
Defined in: <a href="../files/src_pixi_InteractionManager.js.html#l506"><code>src/pixi/InteractionManager.js:506</code></a>
|
||||
Defined in: <a href="../files/src_pixi_InteractionManager.js.html#l513"><code>src/pixi/InteractionManager.js:513</code></a>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -180,7 +180,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l506"><code>src/pixi/InteractionManager.js:506</code></a>
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l513"><code>src/pixi/InteractionManager.js:513</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -319,7 +319,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l530"><code>src/pixi/InteractionManager.js:530</code></a>
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l537"><code>src/pixi/InteractionManager.js:537</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -408,7 +408,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l512"><code>src/pixi/InteractionManager.js:512</code></a>
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l519"><code>src/pixi/InteractionManager.js:519</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -452,7 +452,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l522"><code>src/pixi/InteractionManager.js:522</code></a>
|
||||
<a href="../files/src_pixi_InteractionManager.js.html#l529"><code>src/pixi/InteractionManager.js:529</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
|
|
@ -448,6 +448,13 @@
|
|||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property inherited">
|
||||
<a href="#property_buttonMode">buttonMode</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property inherited">
|
||||
|
@ -804,7 +811,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l91"><code>src/pixi/DisplayObject.js:91</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1146,7 +1153,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1230,7 +1237,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l129"><code>src/pixi/DisplayObject.js:129</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1314,7 +1321,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l117"><code>src/pixi/DisplayObject.js:117</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1398,7 +1405,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l109"><code>src/pixi/DisplayObject.js:109</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1483,7 +1490,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l110"><code>src/pixi/DisplayObject.js:110</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l116"><code>src/pixi/DisplayObject.js:116</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1706,7 +1713,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l164"><code>src/pixi/DisplayObject.js:164</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l170"><code>src/pixi/DisplayObject.js:170</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2033,7 +2040,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l134"><code>src/pixi/DisplayObject.js:134</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l140"><code>src/pixi/DisplayObject.js:140</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2118,7 +2125,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2202,7 +2209,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l159"><code>src/pixi/DisplayObject.js:159</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2287,7 +2294,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l141"><code>src/pixi/DisplayObject.js:141</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2508,6 +2515,47 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN</p>
|
|||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="property_buttonMode" class="property item inherited">
|
||||
<h3 class="name"><code>buttonMode</code></h3>
|
||||
<span class="type">Boolean</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<p>Inherited from
|
||||
<a href="../classes/DisplayObject.html#property_buttonMode">DisplayObject</a>:
|
||||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l86"><code>src/pixi/DisplayObject.js:86</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<p>This is used to indicate if the displayObject should display a mouse hand cursor on rollover</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -431,6 +431,13 @@
|
|||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property inherited">
|
||||
<a href="#property_buttonMode">buttonMode</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property inherited">
|
||||
|
@ -752,7 +759,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l91"><code>src/pixi/DisplayObject.js:91</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1134,7 +1141,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1218,7 +1225,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l129"><code>src/pixi/DisplayObject.js:129</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1302,7 +1309,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l117"><code>src/pixi/DisplayObject.js:117</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1386,7 +1393,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l109"><code>src/pixi/DisplayObject.js:109</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1471,7 +1478,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l110"><code>src/pixi/DisplayObject.js:110</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l116"><code>src/pixi/DisplayObject.js:116</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1640,7 +1647,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l164"><code>src/pixi/DisplayObject.js:164</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l170"><code>src/pixi/DisplayObject.js:170</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1916,7 +1923,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l134"><code>src/pixi/DisplayObject.js:134</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l140"><code>src/pixi/DisplayObject.js:140</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2001,7 +2008,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2085,7 +2092,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l159"><code>src/pixi/DisplayObject.js:159</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2170,7 +2177,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l141"><code>src/pixi/DisplayObject.js:141</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2353,6 +2360,47 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN</p>
|
|||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="property_buttonMode" class="property item inherited">
|
||||
<h3 class="name"><code>buttonMode</code></h3>
|
||||
<span class="type">Boolean</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<p>Inherited from
|
||||
<a href="../classes/DisplayObject.html#property_buttonMode">DisplayObject</a>:
|
||||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l86"><code>src/pixi/DisplayObject.js:86</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<p>This is used to indicate if the displayObject should display a mouse hand cursor on rollover</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -434,6 +434,13 @@
|
|||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property inherited">
|
||||
<a href="#property_buttonMode">buttonMode</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property inherited">
|
||||
|
@ -734,7 +741,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l91"><code>src/pixi/DisplayObject.js:91</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -973,7 +980,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1057,7 +1064,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l129"><code>src/pixi/DisplayObject.js:129</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1141,7 +1148,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l117"><code>src/pixi/DisplayObject.js:117</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1225,7 +1232,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l109"><code>src/pixi/DisplayObject.js:109</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1310,7 +1317,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l110"><code>src/pixi/DisplayObject.js:110</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l116"><code>src/pixi/DisplayObject.js:116</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1566,7 +1573,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l164"><code>src/pixi/DisplayObject.js:164</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l170"><code>src/pixi/DisplayObject.js:170</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1755,7 +1762,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l134"><code>src/pixi/DisplayObject.js:134</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l140"><code>src/pixi/DisplayObject.js:140</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1840,7 +1847,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1924,7 +1931,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l159"><code>src/pixi/DisplayObject.js:159</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2009,7 +2016,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l141"><code>src/pixi/DisplayObject.js:141</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2154,6 +2161,47 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="property_buttonMode" class="property item inherited">
|
||||
<h3 class="name"><code>buttonMode</code></h3>
|
||||
<span class="type">Boolean</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<p>Inherited from
|
||||
<a href="../classes/DisplayObject.html#property_buttonMode">DisplayObject</a>:
|
||||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l86"><code>src/pixi/DisplayObject.js:86</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<p>This is used to indicate if the displayObject should display a mouse hand cursor on rollover</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -504,6 +504,13 @@
|
|||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property inherited">
|
||||
<a href="#property_buttonMode">buttonMode</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property inherited">
|
||||
|
@ -825,7 +832,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l91"><code>src/pixi/DisplayObject.js:91</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -993,7 +1000,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1077,7 +1084,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l129"><code>src/pixi/DisplayObject.js:129</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1161,7 +1168,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l117"><code>src/pixi/DisplayObject.js:117</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1245,7 +1252,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l109"><code>src/pixi/DisplayObject.js:109</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1330,7 +1337,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l110"><code>src/pixi/DisplayObject.js:110</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l116"><code>src/pixi/DisplayObject.js:116</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1499,7 +1506,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l164"><code>src/pixi/DisplayObject.js:164</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l170"><code>src/pixi/DisplayObject.js:170</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1922,7 +1929,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l134"><code>src/pixi/DisplayObject.js:134</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l140"><code>src/pixi/DisplayObject.js:140</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2007,7 +2014,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2091,7 +2098,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l159"><code>src/pixi/DisplayObject.js:159</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2176,7 +2183,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l141"><code>src/pixi/DisplayObject.js:141</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2353,6 +2360,47 @@ currently supports PIXI.blendModes.NORMAL and PIXI.blendModes.SCREEN</p>
|
|||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="property_buttonMode" class="property item inherited">
|
||||
<h3 class="name"><code>buttonMode</code></h3>
|
||||
<span class="type">Boolean</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<p>Inherited from
|
||||
<a href="../classes/DisplayObject.html#property_buttonMode">DisplayObject</a>:
|
||||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l86"><code>src/pixi/DisplayObject.js:86</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<p>This is used to indicate if the displayObject should display a mouse hand cursor on rollover</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -434,6 +434,13 @@
|
|||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property inherited">
|
||||
<a href="#property_buttonMode">buttonMode</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item property inherited">
|
||||
|
@ -748,7 +755,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l91"><code>src/pixi/DisplayObject.js:91</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -916,7 +923,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l97"><code>src/pixi/DisplayObject.js:97</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1000,7 +1007,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l129"><code>src/pixi/DisplayObject.js:129</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1084,7 +1091,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l117"><code>src/pixi/DisplayObject.js:117</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1168,7 +1175,7 @@
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l103"><code>src/pixi/DisplayObject.js:103</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l109"><code>src/pixi/DisplayObject.js:109</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1253,7 +1260,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l110"><code>src/pixi/DisplayObject.js:110</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l116"><code>src/pixi/DisplayObject.js:116</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1422,7 +1429,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l164"><code>src/pixi/DisplayObject.js:164</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l170"><code>src/pixi/DisplayObject.js:170</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1611,7 +1618,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l134"><code>src/pixi/DisplayObject.js:134</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l140"><code>src/pixi/DisplayObject.js:140</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1696,7 +1703,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1780,7 +1787,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l153"><code>src/pixi/DisplayObject.js:153</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l159"><code>src/pixi/DisplayObject.js:159</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1865,7 +1872,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l141"><code>src/pixi/DisplayObject.js:141</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l147"><code>src/pixi/DisplayObject.js:147</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1956,6 +1963,47 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="property_buttonMode" class="property item inherited">
|
||||
<h3 class="name"><code>buttonMode</code></h3>
|
||||
<span class="type">Boolean</span>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="meta">
|
||||
|
||||
|
||||
<p>Inherited from
|
||||
<a href="../classes/DisplayObject.html#property_buttonMode">DisplayObject</a>:
|
||||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l86"><code>src/pixi/DisplayObject.js:86</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<p>This is used to indicate if the displayObject should display a mouse hand cursor on rollover</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
|
|
@ -528,7 +528,7 @@
|
|||
"extension_for": [],
|
||||
"module": "PIXI",
|
||||
"file": "src/pixi/InteractionManager.js",
|
||||
"line": 506,
|
||||
"line": 513,
|
||||
"is_constructor": 1
|
||||
},
|
||||
"MovieClip": {
|
||||
|
@ -1529,7 +1529,16 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 91,
|
||||
"line": 86,
|
||||
"description": "This is used to indicate if the displayObject should display a mouse hand cursor on rollover",
|
||||
"itemtype": "property",
|
||||
"name": "buttonMode",
|
||||
"type": "Boolean",
|
||||
"class": "DisplayObject"
|
||||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 97,
|
||||
"description": "A callback that is used when the users clicks on the displayObject with their mouse",
|
||||
"itemtype": "method",
|
||||
"name": "click",
|
||||
|
@ -1544,7 +1553,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 97,
|
||||
"line": 103,
|
||||
"description": "A callback that is used when the user clicks the mouse down over the sprite",
|
||||
"itemtype": "method",
|
||||
"name": "mousedown",
|
||||
|
@ -1559,7 +1568,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 103,
|
||||
"line": 109,
|
||||
"description": "A callback that is used when the user releases the mouse that was over the displayObject\nfor this callback to be fired the mouse must have been pressed down over the displayObject",
|
||||
"itemtype": "method",
|
||||
"name": "mouseup",
|
||||
|
@ -1574,7 +1583,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 110,
|
||||
"line": 116,
|
||||
"description": "A callback that is used when the user releases the mouse that was over the displayObject but is no longer over the displayObject\nfor this callback to be fired, The touch must have started over the displayObject",
|
||||
"itemtype": "method",
|
||||
"name": "mouseupoutside",
|
||||
|
@ -1589,7 +1598,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 117,
|
||||
"line": 123,
|
||||
"description": "A callback that is used when the users mouse rolls over the displayObject",
|
||||
"itemtype": "method",
|
||||
"name": "mouseover",
|
||||
|
@ -1604,7 +1613,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 123,
|
||||
"line": 129,
|
||||
"description": "A callback that is used when the users mouse leaves the displayObject",
|
||||
"itemtype": "method",
|
||||
"name": "mouseout",
|
||||
|
@ -1619,7 +1628,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 134,
|
||||
"line": 140,
|
||||
"description": "A callback that is used when the users taps on the sprite with their finger\nbasically a touch version of click",
|
||||
"itemtype": "method",
|
||||
"name": "tap",
|
||||
|
@ -1634,7 +1643,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 141,
|
||||
"line": 147,
|
||||
"description": "A callback that is used when the user touch's over the displayObject",
|
||||
"itemtype": "method",
|
||||
"name": "touchstart",
|
||||
|
@ -1649,7 +1658,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 147,
|
||||
"line": 153,
|
||||
"description": "A callback that is used when the user releases a touch over the displayObject",
|
||||
"itemtype": "method",
|
||||
"name": "touchend",
|
||||
|
@ -1664,7 +1673,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 153,
|
||||
"line": 159,
|
||||
"description": "A callback that is used when the user releases the touch that was over the displayObject\nfor this callback to be fired, The touch must have started over the sprite",
|
||||
"itemtype": "method",
|
||||
"name": "touchendoutside",
|
||||
|
@ -1679,7 +1688,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 164,
|
||||
"line": 170,
|
||||
"description": "Indicates if the sprite will have touch and mouse interactivity. It is false by default",
|
||||
"itemtype": "method",
|
||||
"name": "setInteractive",
|
||||
|
@ -1694,7 +1703,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/DisplayObject.js",
|
||||
"line": 178,
|
||||
"line": 184,
|
||||
"access": "private",
|
||||
"tagname": "",
|
||||
"class": "DisplayObject"
|
||||
|
@ -1841,7 +1850,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/InteractionManager.js",
|
||||
"line": 512,
|
||||
"line": 519,
|
||||
"description": "This point stores the global coords of where the touch/mouse event happened",
|
||||
"itemtype": "property",
|
||||
"name": "global",
|
||||
|
@ -1850,7 +1859,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/InteractionManager.js",
|
||||
"line": 522,
|
||||
"line": 529,
|
||||
"description": "The target Sprite that was interacted with",
|
||||
"itemtype": "property",
|
||||
"name": "target",
|
||||
|
@ -1859,7 +1868,7 @@
|
|||
},
|
||||
{
|
||||
"file": "src/pixi/InteractionManager.js",
|
||||
"line": 530,
|
||||
"line": 537,
|
||||
"description": "This will return the local coords of the specified displayObject for this InteractionData",
|
||||
"itemtype": "method",
|
||||
"name": "getLocalPosition",
|
||||
|
@ -2491,7 +2500,7 @@
|
|||
},
|
||||
{
|
||||
"message": "Missing item type",
|
||||
"line": " src/pixi/DisplayObject.js:178"
|
||||
"line": " src/pixi/DisplayObject.js:184"
|
||||
},
|
||||
{
|
||||
"message": "Missing item type",
|
||||
|
|
|
@ -206,6 +206,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
|
|
@ -261,7 +261,7 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
var len = this.interactiveItems.length;
|
||||
|
||||
for (var i=0; i < this.interactiveItems.length; i++) {
|
||||
this.interactiveItems[i].interactiveChildren = true;
|
||||
this.interactiveItems[i].interactiveChildren = false;
|
||||
}
|
||||
|
||||
this.interactiveItems = [];
|
||||
|
@ -274,6 +274,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -282,6 +284,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -290,9 +294,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -302,7 +308,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
@ -451,6 +456,8 @@ PIXI.InteractionManager.prototype.hitTest = function(item, interactionData)
|
|||
|
||||
if(y > y1 && y < y1 + height)
|
||||
{
|
||||
// set the target property if a hit is true!
|
||||
interactionData.target = item
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2012, Mat Groves
|
||||
* http://goodboydigital.com/
|
||||
*
|
||||
* Compiled: 2013-04-30
|
||||
* Compiled: 2013-05-01
|
||||
*
|
||||
* Pixi.JS is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -200,6 +200,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
@ -1129,6 +1135,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -1137,6 +1145,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -1145,9 +1155,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -1157,7 +1169,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2012, Mat Groves
|
||||
* http://goodboydigital.com/
|
||||
*
|
||||
* Compiled: 2013-04-30
|
||||
* Compiled: 2013-05-01
|
||||
*
|
||||
* Pixi.JS is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -200,6 +200,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
@ -1129,6 +1135,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -1137,6 +1145,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -1145,9 +1155,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -1157,7 +1169,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2012, Mat Groves
|
||||
* http://goodboydigital.com/
|
||||
*
|
||||
* Compiled: 2013-04-30
|
||||
* Compiled: 2013-05-01
|
||||
*
|
||||
* Pixi.JS is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -200,6 +200,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
@ -1129,6 +1135,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -1137,6 +1145,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -1145,9 +1155,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -1157,7 +1169,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2012, Mat Groves
|
||||
* http://goodboydigital.com/
|
||||
*
|
||||
* Compiled: 2013-04-30
|
||||
* Compiled: 2013-05-01
|
||||
*
|
||||
* Pixi.JS is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -200,6 +200,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
@ -1129,6 +1135,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -1137,6 +1145,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -1145,9 +1155,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -1157,7 +1169,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2012, Mat Groves
|
||||
* http://goodboydigital.com/
|
||||
*
|
||||
* Compiled: 2013-04-30
|
||||
* Compiled: 2013-05-01
|
||||
*
|
||||
* Pixi.JS is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -200,6 +200,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
@ -1129,6 +1135,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -1137,6 +1145,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -1145,9 +1155,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -1157,7 +1169,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2012, Mat Groves
|
||||
* http://goodboydigital.com/
|
||||
*
|
||||
* Compiled: 2013-04-30
|
||||
* Compiled: 2013-05-01
|
||||
*
|
||||
* Pixi.JS is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -200,6 +200,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
@ -1129,6 +1135,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -1137,6 +1145,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -1145,9 +1155,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -1157,7 +1169,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
for (var i=0; i < 5; i++)
|
||||
{
|
||||
var button = new PIXI.Sprite(textureButton);
|
||||
button.buttonMode = true;
|
||||
|
||||
button.anchor.x = 0.5;
|
||||
button.anchor.y = 0.5;
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2012, Mat Groves
|
||||
* http://goodboydigital.com/
|
||||
*
|
||||
* Compiled: 2013-04-30
|
||||
* Compiled: 2013-05-01
|
||||
*
|
||||
* Pixi.JS is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -200,6 +200,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
@ -1129,6 +1135,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -1137,6 +1145,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -1145,9 +1155,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -1157,7 +1169,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2012, Mat Groves
|
||||
* http://goodboydigital.com/
|
||||
*
|
||||
* Compiled: 2013-04-30
|
||||
* Compiled: 2013-05-01
|
||||
*
|
||||
* Pixi.JS is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -200,6 +200,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
@ -1129,6 +1135,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -1137,6 +1145,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -1145,9 +1155,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -1157,7 +1169,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2012, Mat Groves
|
||||
* http://goodboydigital.com/
|
||||
*
|
||||
* Compiled: 2013-04-30
|
||||
* Compiled: 2013-05-01
|
||||
*
|
||||
* Pixi.JS is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -200,6 +200,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
@ -1129,6 +1135,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -1137,6 +1145,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -1145,9 +1155,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -1157,7 +1169,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* Copyright (c) 2012, Mat Groves
|
||||
* http://goodboydigital.com/
|
||||
*
|
||||
* Compiled: 2013-04-30
|
||||
* Compiled: 2013-05-01
|
||||
*
|
||||
* Pixi.JS is licensed under the MIT License.
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
|
@ -200,6 +200,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
@ -1129,6 +1135,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -1137,6 +1145,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -1145,9 +1155,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -1157,7 +1169,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
|
|
@ -82,6 +82,12 @@ PIXI.DisplayObject = function()
|
|||
|
||||
// [readonly] best not to toggle directly! use setInteractive()
|
||||
this.interactive = false;
|
||||
|
||||
/**
|
||||
* This is used to indicate if the displayObject should display a mouse hand cursor on rollover
|
||||
* @property buttonMode
|
||||
* @type Boolean
|
||||
*/
|
||||
this.buttonMode = false;
|
||||
|
||||
/*
|
||||
|
|
|
@ -150,6 +150,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loop through interactive objects!
|
||||
var length = this.interactiveItems.length;
|
||||
|
||||
if(this.target)this.target.view.style.cursor = "default";
|
||||
|
||||
for (var i = 0; i < length; i++)
|
||||
{
|
||||
var item = this.interactiveItems[i];
|
||||
|
@ -158,6 +160,8 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// OPTIMISATION - only calculate every time if the mousemove function exists..
|
||||
// OK so.. does the object have any other interactive functions?
|
||||
// hit-test the clip!
|
||||
|
||||
|
||||
if(item.mouseover || item.mouseout || item.buttonMode)
|
||||
{
|
||||
// ok so there are some functions so lets hit test it..
|
||||
|
@ -166,9 +170,11 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
// loks like there was a hit!
|
||||
if(item.__hit)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(!item.__isOver)
|
||||
{
|
||||
if(item.buttonMode)this.target.view.style.cursor = "pointer";
|
||||
|
||||
if(item.mouseover)item.mouseover(this.mouse);
|
||||
item.__isOver = true;
|
||||
}
|
||||
|
@ -178,7 +184,6 @@ PIXI.InteractionManager.prototype.update = function()
|
|||
if(item.__isOver)
|
||||
{
|
||||
// roll out!
|
||||
if(item.buttonMode)this.target.view.style.cursor = "default";
|
||||
if(item.mouseout)item.mouseout(this.mouse);
|
||||
item.__isOver = false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue