MCPcopy Create free account
hub / github.com/Monogatari/Monogatari / init

Method init

src/actions/Dialog.ts:118–126  ·  view source on GitHub ↗
(selector: string)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 1

settingMethod · 0.80

Tested by

no test coverage detected