Module flower.DeckMgr

This is a singleton class that manages MOAIDeck.

Info:

  • Release: V3.0.0
  • Author: Makoto

Functions

DeckMgr:getImageDeck (width, height, flipX, flipY) Return the Deck to be used in the Image.
DeckMgr:createImageDeck (width, height, flipX, flipY) Create the Deck to be used in the Image.
DeckMgr:getTileImageDeck (textureWidth, textureHeight, tileWidth, tileHeight, spacing, margin, gridFlag, flipX, flipY) Return the Deck to be used in the SheetImage.
DeckMgr:createTileImageDeck (textureWidth, textureHeight, tileWidth, tileHeight, spacing, margin, gridFlag, flipX, flipY) Create the Deck to be used in the SheetImage.
DeckMgr:getAtlasDeck (luaFilePath, flipX, flipY) Return the Deck for displaying TextureAtlas.
DeckMgr:createAtlasDeck (luaFilePath, flipX, flipY) Create the Deck for displaying TextureAtlas.
DeckMgr:getNineImageDeck (fileName) Returns the Deck to draw NineImage.
DeckMgr:createNineImageDeck (fileName) Create the Deck to draw NineImage.


Functions

DeckMgr:getImageDeck (width, height, flipX, flipY)
Return the Deck to be used in the Image.

Parameters:

  • width width
  • height height
  • flipX (Optional)flipX
  • flipY (Optional)flipY

Returns:

    deck
DeckMgr:createImageDeck (width, height, flipX, flipY)
Create the Deck to be used in the Image.

Parameters:

  • width width
  • height height
  • flipX (Optional)flipX
  • flipY (Optional)flipY

Returns:

    deck
DeckMgr:getTileImageDeck (textureWidth, textureHeight, tileWidth, tileHeight, spacing, margin, gridFlag, flipX, flipY)
Return the Deck to be used in the SheetImage.

Parameters:

  • textureWidth texture width
  • textureHeight texture height
  • tileWidth tile width
  • tileHeight tile height
  • spacing spacing
  • margin margin
  • gridFlag grid flag
  • flipX (option)flipX
  • flipY (option)flipY

Returns:

    deck
DeckMgr:createTileImageDeck (textureWidth, textureHeight, tileWidth, tileHeight, spacing, margin, gridFlag, flipX, flipY)
Create the Deck to be used in the SheetImage.

Parameters:

  • textureWidth texture width
  • textureHeight texture height
  • tileWidth tile width
  • tileHeight tile height
  • spacing spacing
  • margin margin
  • gridFlag grid flag
  • flipX (option)flipX
  • flipY (option)flipY

Returns:

    deck
DeckMgr:getAtlasDeck (luaFilePath, flipX, flipY)
Return the Deck for displaying TextureAtlas.

Parameters:

  • luaFilePath TexturePacker lua file path
  • flipX (option)flipX
  • flipY (option)flipY

Returns:

    Texture atlas deck
DeckMgr:createAtlasDeck (luaFilePath, flipX, flipY)
Create the Deck for displaying TextureAtlas.

Parameters:

  • luaFilePath TexturePacker lua file path
  • flipX (option)flipX
  • flipY (option)flipY

Returns:

    Texture atlas deck
DeckMgr:getNineImageDeck (fileName)
Returns the Deck to draw NineImage. For caching, you must not change the Deck.

Parameters:

  • fileName fileName

Returns:

    MOAIStretchPatch2D instance
DeckMgr:createNineImageDeck (fileName)
Create the Deck to draw NineImage.

Parameters:

  • fileName fileName

Returns:

    MOAIStretchPatch2D instance
generated by LDoc 1.3