Skip to main content

TileGrid

TileGridView

Kind: global class

new TileGridView(model, [dragAndDropContext], [enableDragAndDrop], [tileSize], [tileSpacing], [hookTileAdded], [hookTileRemoved], [hookInvalidDrop], [captureEventTap])

ParamType
modelTileGrid
[dragAndDropContext]DragAndDropContext
[enableDragAndDrop]boolean
[tileSize]Vector2
[tileSpacing]Vector2
[hookTileAdded]function
[hookTileRemoved]function
[hookInvalidDrop]function
[captureEventTap]boolean

tileGridView.model : TileGrid

Kind: instance property of TileGridView

tileGridView.generateSlots(width, height)

Kind: instance method of TileGridView

ParamType
widthnumber
heightnumber

tileGridView.addTile(tile)

Kind: instance method of TileGridView

ParamType
tileRectangle

tileGridView.getSlot(x, y) ⇒ View

Kind: instance method of TileGridView

ParamType
xnumber
ynumber

tileGridView.removeTile(tile)

Kind: instance method of TileGridView

ParamType
tileRectangle

tileGridView.findTileView(tile) ⇒ View

Kind: instance method of TileGridView

ParamType
tileRectangle