small cleanup

This commit is contained in:
Moka 2024-11-19 20:54:59 +01:00
parent 341332c55d
commit f4de91d9ff

View File

@ -352,7 +352,6 @@ export default class AbstractSettingsUiHandler extends MessageUiHandler {
if (settingIndex === -1) { if (settingIndex === -1) {
settingIndex = this.cursor + this.scrollCursor; settingIndex = this.cursor + this.scrollCursor;
} }
const setting = this.settings[settingIndex]; const setting = this.settings[settingIndex];
const lastCursor = this.optionCursors[settingIndex]; const lastCursor = this.optionCursors[settingIndex];
@ -463,8 +462,7 @@ export default class AbstractSettingsUiHandler extends MessageUiHandler {
this.cursorObj = null; this.cursorObj = null;
} }
showText(text: string, delay?: integer, callback?: Function, callbackDelay?: integer, prompt?: boolean, promptDelay?: integer) { override showText(text: string, delay?: integer, callback?: Function, callbackDelay?: integer, prompt?: boolean, promptDelay?: integer) {
console.log("HELLO");
this.messageBoxContainer.setVisible(!!text?.length); this.messageBoxContainer.setVisible(!!text?.length);
super.showText(text, delay, callback, callbackDelay, prompt, promptDelay); super.showText(text, delay, callback, callbackDelay, prompt, promptDelay);
} }