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

Method onLoad

src/actions/HideTextBox.ts:21–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19 }
20
21 static override async onLoad(): Promise<void> {
22 if (this.engine.state('textboxHidden') === true) {
23 const textBox = this.engine.element().find('[data-component="text-box"]').get(0) as TextBox | undefined;
24 textBox?.setState({ hidden: true });
25 }
26 }
27
28 static override matchString([hide, type]: string[]): boolean {
29 return hide === 'hide' && type === 'textbox';

Callers

nothing calls this directly

Calls 3

stateMethod · 0.80
getMethod · 0.65
elementMethod · 0.45

Tested by

no test coverage detected