| 116 | } |
| 117 | |
| 118 | static override async init(selector: string): Promise<void> { |
| 119 | // Remove the Text Speed setting if the type animation was disabled |
| 120 | if (this.engine.setting('TypeAnimation') === false) { |
| 121 | $_(`${selector} [data-settings="text-speed"]`).hide(); |
| 122 | } |
| 123 | |
| 124 | this.engine.setting('maxTextSpeed', parseInt(($_(`${selector} [data-action="set-text-speed"]`).attribute('max') || '0'))); |
| 125 | this.engine.setting('minTextSpeed', parseInt(($_(`${selector} [data-action="set-text-speed"]`).attribute('min') || '0'))); |
| 126 | } |
| 127 | |
| 128 | static override async reset({ keepNVL = false, saveNVL = false }: { keepNVL?: boolean; saveNVL?: boolean } = {}): Promise<void> { |
| 129 | const textBox = this.engine.element().find('[data-component="text-box"]').get(0) as any; |