* Show this module. * @param {number} speed The speed of the show animation. * @param {() => void} callback Called when the animation is done. * @param {object} [options] Optional settings for the show method.
(speed, callback, options)
| 396 | * @param {object} [options] Optional settings for the show method. |
| 397 | */ |
| 398 | show (speed, callback, options) { |
| 399 | let usedCallback = callback || function () {}; |
| 400 | let usedOptions = options; |
| 401 | |
| 402 | if (typeof callback === "object") { |
| 403 | Log.error("Parameter mismatch in module.show: callback is not an optional parameter!"); |
| 404 | usedOptions = callback; |
| 405 | usedCallback = function () {}; |
| 406 | } |
| 407 | |
| 408 | MM.showModule( |
| 409 | this, |
| 410 | speed, |
| 411 | () => { |
| 412 | this.resume(); |
| 413 | usedCallback(); |
| 414 | }, |
| 415 | usedOptions |
| 416 | ); |
| 417 | } |
| 418 | } |
| 419 | |
| 420 | globalThis.Module = Module; |
no test coverage detected