UNPKG

@osbjs/osbjs

Version:

a minimalist osu! storyboarding framework

22 lines (21 loc) 643 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RemoveBackground = void 0; const Core_1 = require("../Core"); class RemoveBackground extends Core_1.Component { /** * Hide beatmap background. * @param path relative path to beatmap background. */ constructor(path) { super(); this.name = 'RemoveBackground'; this.path = path; } generate() { let bg = new Core_1.Sprite(this.path, Core_1.Layer.Background); bg.FadeAtTime(0, 0); this.registerComponents(bg); } } exports.RemoveBackground = RemoveBackground;