TileGrid
TileGridView
Kind: global class
new TileGridView(model, [dragAndDropContext], [enableDragAndDrop], [tileSize], [tileSpacing], [hookTileAdded], [hookTileRemoved], [hookInvalidDrop], [captureEventTap])
Param | Type |
---|---|
model | TileGrid |
[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
Param | Type |
---|---|
width | number |
height | number |
tileGridView.addTile(tile)
Kind: instance method of TileGridView
Param | Type |
---|---|
tile | Rectangle |
tileGridView.getSlot(x, y) ⇒ View
Kind: instance method of TileGridView
Param | Type |
---|---|
x | number |
y | number |
tileGridView.removeTile(tile)
Kind: instance method of TileGridView
Param | Type |
---|---|
tile | Rectangle |
tileGridView.findTileView(tile) ⇒ View
Kind: instance method of TileGridView
Param | Type |
---|---|
tile | Rectangle |