phaser/tasks/manifests/pixi.json
photonstorm a69c156526 The Text Bounds is a rectangular region that allows you to align your text within it, regardless of the number of lines of text or position within the world. For example in an 800x600 sized game if you set the textBounds to be 0,0,800,600 and text alignment to 'left' and vertical alignment to 'bottom' then the text will render in the bottom-right hand corner of the game, regardless of the size of font you're using or the number of lines in the text itself.
Set the Style properties `boundsAlignH` and `boundsAlignV` or adjust them via the Text setters to change the alignment.

It works by calculating the final position based on the Text.canvas size, which is modified as the text is updated. Some fonts have additional padding around them which you can mitigate by tweaking the Text.padding property.

Setting a textBounds _doesn't_ update the wordWrapWidth, so be aware of the relationship between the two.

Call this method with nothing defined for any of the parameters to reset an existing textBounds.

#1824
2015-06-17 17:18:04 +01:00

50 lines
1.8 KiB
JSON

[
"src/pixi/Intro.js",
"src/pixi/Pixi.js",
"src/pixi/display/DisplayObject.js",
"src/pixi/display/DisplayObjectContainer.js",
"src/pixi/display/Sprite.js",
"src/pixi/display/SpriteBatch.js",
"src/pixi/display/Stage.js",
"src/pixi/utils/Utils.js",
"src/pixi/utils/Polyk.js",
"src/pixi/renderers/webgl/utils/WebGLShaderUtils.js",
"src/pixi/renderers/webgl/shaders/PixiShader.js",
"src/pixi/renderers/webgl/shaders/PixiFastShader.js",
"src/pixi/renderers/webgl/shaders/StripShader.js",
"src/pixi/renderers/webgl/shaders/PrimitiveShader.js",
"src/pixi/renderers/webgl/shaders/ComplexPrimitiveShader.js",
"src/pixi/renderers/webgl/utils/WebGLGraphics.js",
"src/pixi/renderers/webgl/WebGLRenderer.js",
"src/pixi/renderers/webgl/utils/WebGLBlendModeManager.js",
"src/pixi/renderers/webgl/utils/WebGLMaskManager.js",
"src/pixi/renderers/webgl/utils/WebGLStencilManager.js",
"src/pixi/renderers/webgl/utils/WebGLShaderManager.js",
"src/pixi/renderers/webgl/utils/WebGLSpriteBatch.js",
"src/pixi/renderers/webgl/utils/WebGLFastSpriteBatch.js",
"src/pixi/renderers/webgl/utils/WebGLFilterManager.js",
"src/pixi/renderers/webgl/utils/FilterTexture.js",
"src/pixi/renderers/canvas/utils/CanvasBuffer.js",
"src/pixi/renderers/canvas/utils/CanvasMaskManager.js",
"src/pixi/renderers/canvas/utils/CanvasTinter.js",
"src/pixi/renderers/canvas/CanvasRenderer.js",
"src/pixi/renderers/canvas/CanvasGraphics.js",
"src/pixi/primitives/Graphics.js",
"src/pixi/primitives/GraphicsData.js",
"src/pixi/extras/Strip.js",
"src/pixi/extras/Rope.js",
"src/pixi/extras/TilingSprite.js",
"src/pixi/textures/BaseTexture.js",
"src/pixi/textures/Texture.js",
"src/pixi/textures/RenderTexture.js",
"src/pixi/filters/AbstractFilter.js",
"src/pixi/Outro.js"
]