UNPKG

phaser4-rex-plugins

Version:
23 lines (18 loc) 470 B
var SetItems = function (items, updateTable) { if (items === undefined) { this.items = []; } else { this.items = items; } if (updateTable === undefined) { updateTable = true; } var table = this.childrenMap.child; table.setCellsCount(this.items.length); if (updateTable) { table.updateTable(true); this.resizeController(); } return this; } export default SetItems;