@osbjs/components
Version:
osbjs pre-built components
18 lines (17 loc) • 544 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RemoveBackground = void 0;
const osbjs_1 = require("@osbjs/osbjs");
class RemoveBackground extends osbjs_1.Component {
constructor(path) {
super();
this.name = 'RemoveBackground';
this.path = path;
}
generate() {
let bg = new osbjs_1.Sprite(this.path, osbjs_1.Layer.Background);
bg.FadeAtTime(0, 0);
this.registerComponents(bg);
}
}
exports.RemoveBackground = RemoveBackground;