Render Texture added
Render texture finished custom render item added pivot added to display object grunt file updated docs updated
This commit is contained in:
parent
6a049c788e
commit
2a6169a952
94 changed files with 13380 additions and 4464 deletions
|
@ -51,6 +51,8 @@
|
|||
|
||||
<li><a href="../classes/CanvasRenderer.html">CanvasRenderer</a></li>
|
||||
|
||||
<li><a href="../classes/CustomRenderable.html">CustomRenderable</a></li>
|
||||
|
||||
<li><a href="../classes/DisplayObject.html">DisplayObject</a></li>
|
||||
|
||||
<li><a href="../classes/DisplayObjectContainer.html">DisplayObjectContainer</a></li>
|
||||
|
@ -154,9 +156,9 @@
|
|||
|
||||
|
||||
<div class="box intro">
|
||||
<p>A Text Object will create a line(s) of text using bitmap font
|
||||
<p>A Text Object will create a line(s) of text using bitmap font. To split a line you can use "\n", "\r" or "\r\n"
|
||||
You can generate the fnt files using
|
||||
http://www.angelcode.com/products/bmfont/ for windows of
|
||||
http://www.angelcode.com/products/bmfont/ for windows or
|
||||
http://www.bmglyph.com/ for mac.</p>
|
||||
</div>
|
||||
|
||||
|
@ -178,7 +180,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
<li class="arg">
|
||||
|
||||
<code class="optional">[style]</code>
|
||||
<code>style</code>
|
||||
|
||||
</li>
|
||||
|
||||
|
@ -248,9 +250,8 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
<li class="param">
|
||||
|
||||
<code class="param-name optional">[style]</code>
|
||||
<code class="param-name">style</code>
|
||||
<span class="type">Object</span>
|
||||
<span class="flag optional" title="This parameter is optional.">optional</span>
|
||||
|
||||
|
||||
|
||||
|
@ -264,13 +265,12 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
<li class="param">
|
||||
|
||||
<code class="param-name optional">[font]</code>
|
||||
<code class="param-name">font</code>
|
||||
<span class="type">String</span>
|
||||
<span class="flag optional" title="This parameter is optional.">optional</span>
|
||||
|
||||
|
||||
<div class="param-description">
|
||||
<p>default is "20pt Arial" The size and bitmap font id (must have loaded previously)</p>
|
||||
<p>The size (optional) and bitmap font id (required) eq "Arial" or "20px Arial" (must have loaded previously)</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -412,6 +412,13 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item method">
|
||||
<a href="#method_setText">setText</a>
|
||||
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
<li class="index-item method inherited">
|
||||
|
@ -589,7 +596,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObjectContainer.js.html#l29"><code>src/pixi/DisplayObjectContainer.js:29</code></a>
|
||||
<a href="../files/src_pixi_DisplayObjectContainer.js.html#l41"><code>src/pixi/DisplayObjectContainer.js:41</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -679,7 +686,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObjectContainer.js.html#l61"><code>src/pixi/DisplayObjectContainer.js:61</code></a>
|
||||
<a href="../files/src_pixi_DisplayObjectContainer.js.html#l73"><code>src/pixi/DisplayObjectContainer.js:73</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -778,7 +785,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l104"><code>src/pixi/DisplayObject.js:104</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l106"><code>src/pixi/DisplayObject.js:106</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -807,7 +814,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
<div class="param-description">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -862,7 +869,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObjectContainer.js.html#l153"><code>src/pixi/DisplayObjectContainer.js:153</code></a>
|
||||
<a href="../files/src_pixi_DisplayObjectContainer.js.html#l168"><code>src/pixi/DisplayObjectContainer.js:168</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -946,7 +953,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
|
||||
<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#l112"><code>src/pixi/DisplayObject.js:112</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -975,7 +982,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
<div class="param-description">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1030,7 +1037,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l136"><code>src/pixi/DisplayObject.js:136</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l138"><code>src/pixi/DisplayObject.js:138</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1059,7 +1066,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
<div class="param-description">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1114,7 +1121,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l130"><code>src/pixi/DisplayObject.js:130</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l132"><code>src/pixi/DisplayObject.js:132</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1143,7 +1150,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
<div class="param-description">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1198,7 +1205,7 @@ http://www.bmglyph.com/ for mac.</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l116"><code>src/pixi/DisplayObject.js:116</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l118"><code>src/pixi/DisplayObject.js:118</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1228,7 +1235,7 @@ for this callback to be fired the mouse must have been pressed down over the dis
|
|||
|
||||
|
||||
<div class="param-description">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1283,7 +1290,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#l123"><code>src/pixi/DisplayObject.js:123</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l125"><code>src/pixi/DisplayObject.js:125</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1313,7 +1320,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
<div class="param-description">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1368,7 +1375,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObjectContainer.js.html#l171"><code>src/pixi/DisplayObjectContainer.js:171</code></a>
|
||||
<a href="../files/src_pixi_DisplayObjectContainer.js.html#l186"><code>src/pixi/DisplayObjectContainer.js:186</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1452,7 +1459,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l177"><code>src/pixi/DisplayObject.js:177</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l190"><code>src/pixi/DisplayObject.js:190</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1481,7 +1488,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
<div class="param-description">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1506,7 +1513,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
<li class="arg">
|
||||
|
||||
<code class="optional">[style]</code>
|
||||
<code>style</code>
|
||||
|
||||
</li>
|
||||
|
||||
|
@ -1539,7 +1546,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_text_BitmapText.js.html#l45"><code>src/pixi/text/BitmapText.js:45</code></a>
|
||||
<a href="../files/src_pixi_text_BitmapText.js.html#l44"><code>src/pixi/text/BitmapText.js:44</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1561,9 +1568,8 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
<li class="param">
|
||||
|
||||
<code class="param-name optional">[style]</code>
|
||||
<code class="param-name">style</code>
|
||||
<span class="type">Object</span>
|
||||
<span class="flag optional" title="This parameter is optional.">optional</span>
|
||||
|
||||
|
||||
|
||||
|
@ -1578,11 +1584,11 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
<li class="param">
|
||||
|
||||
<code class="param-name">font</code>
|
||||
<span class="type">Object</span>
|
||||
<span class="type">String</span>
|
||||
|
||||
|
||||
<div class="param-description">
|
||||
<p>The style and size of the font. If font size is not specified, it uses default bitmap font size. Font name is required</p>
|
||||
<p>The size (optional) and bitmap font id (required) eq "Arial" or "20px Arial" (must have loaded previously)</p>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1613,6 +1619,93 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="method_setText" class="method item">
|
||||
<h3 class="name"><code>setText</code></h3>
|
||||
|
||||
|
||||
<div class="args">
|
||||
<span class="paren">(</span><ul class="args-list inline commas">
|
||||
|
||||
<li class="arg">
|
||||
|
||||
<code>text</code>
|
||||
|
||||
</li>
|
||||
|
||||
</ul><span class="paren">)</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="meta">
|
||||
|
||||
|
||||
|
||||
<p>
|
||||
|
||||
Defined in
|
||||
|
||||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_text_BitmapText.js.html#l33"><code>src/pixi/text/BitmapText.js:33</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="description">
|
||||
<p>Set the copy for the text object</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="params">
|
||||
<h4>Parameters:</h4>
|
||||
|
||||
<ul class="params-list">
|
||||
|
||||
<li class="param">
|
||||
|
||||
<code class="param-name">text</code>
|
||||
<span class="type">String</span>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="param-description">
|
||||
<p>The copy that you would like the text to display</p>
|
||||
</div>
|
||||
|
||||
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1661,7 +1754,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObjectContainer.js.html#l113"><code>src/pixi/DisplayObjectContainer.js:113</code></a>
|
||||
<a href="../files/src_pixi_DisplayObjectContainer.js.html#l128"><code>src/pixi/DisplayObjectContainer.js:128</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1760,7 +1853,7 @@ for this callback to be fired, The touch must have started over the displayObjec
|
|||
|
||||
|
||||
|
||||
<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#l149"><code>src/pixi/DisplayObject.js:149</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1790,7 +1883,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
<div class="param-description">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1845,7 +1938,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l160"><code>src/pixi/DisplayObject.js:160</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l162"><code>src/pixi/DisplayObject.js:162</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1874,7 +1967,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
<div class="param-description">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -1929,7 +2022,7 @@ basically a touch version of click</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l166"><code>src/pixi/DisplayObject.js:166</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l168"><code>src/pixi/DisplayObject.js:168</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -1959,7 +2052,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
<div class="param-description">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -2014,7 +2107,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l154"><code>src/pixi/DisplayObject.js:154</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l156"><code>src/pixi/DisplayObject.js:156</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
@ -2043,7 +2136,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
<div class="param-description">
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -2128,7 +2221,7 @@ for this callback to be fired, The touch must have started over the sprite</p>
|
|||
|
||||
|
||||
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l93"><code>src/pixi/DisplayObject.js:93</code></a>
|
||||
<a href="../files/src_pixi_DisplayObject.js.html#l95"><code>src/pixi/DisplayObject.js:95</code></a>
|
||||
|
||||
</p>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue