phaser4-rex-plugins
Version:
26 lines (21 loc) • 623 B
JavaScript
import GridTable from '../gridtable/GridTable.js';
import Methods from './methods/Methods.js';
class Carousel extends GridTable {
constructor(scene, x, y, width, height, config) {
if (config === undefined) {
config = {};
}
config.columns = 1; // Force columns to 1
if (!config.hasOwnProperty('clampTableOXY')) {
config.clampTableOXY = false;
}
super(scene, x, y, width, height, config);
this.type = 'rexCarousel';
}
}
// mixin
Object.assign(
Carousel.prototype,
Methods
);
export default Carousel;