mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-12-16 23:05:23 +01:00
* Update packages * Add default values for tweens * Add mocks for `InputText` and `BBCodeText` * Delete deprecated `vitest.workspace.ts` * Replace `new InputText` with `globalScene.add.rexInputText` * Disable broken Magic Bounce test * Disable broken test in `stockpiling.test.ts`
25 lines
617 B
TypeScript
25 lines
617 B
TypeScript
import { MockText } from "#test/testUtils/mocks/mocksContainer/mockText";
|
|
|
|
export class MockInputText extends MockText {
|
|
public inputType: string;
|
|
public selectionStart: number;
|
|
public selectionEnd: number;
|
|
public selectedText: string;
|
|
|
|
constructor(textureManager, x, y, _w, _h, content, styleOptions) {
|
|
super(textureManager, x, y, content, styleOptions);
|
|
}
|
|
|
|
selectText(_selectionStart?: number, _selectionEnd?: number) {}
|
|
|
|
selectAll() {}
|
|
|
|
setCursorPosition(_value: number) {}
|
|
|
|
scrollToBottom() {}
|
|
|
|
resize(_width: number, _height: number) {}
|
|
|
|
setElement(_element, _style, _innerText) {}
|
|
}
|