|
| 1 | +import './input-field-cursor'; |
| 2 | +import './input-field-type'; |
| 3 | +declare global { |
| 4 | + namespace modmanager.gui { |
| 5 | + interface InputField extends ig.FocusGui { |
| 6 | + gfx: ig.Image; |
| 7 | + value: string[]; |
| 8 | + bg: sc.ButtonBgGui; |
| 9 | + focusTimer: number; |
| 10 | + alphaTimer: number; |
| 11 | + animateOnPress: boolean; |
| 12 | + noFocusOnPressed: boolean; |
| 13 | + submitSound: ig.Sound; |
| 14 | + blockedSound: ig.Sound; |
| 15 | + type: modmanager.gui.InputFieldType; |
| 16 | + boundProcessInput: (this: Window, ev: KeyboardEvent) => any; |
| 17 | + validChars: RegExp; |
| 18 | + onCharacterInput: (value: string, key: string) => any; |
| 19 | + dummyForClipping: sc.DummyContainer; |
| 20 | + highlight: sc.ButtonHighlightGui; |
| 21 | + textChild: sc.TextGui; |
| 22 | + cursorTick: number; |
| 23 | + cursorPos: number; |
| 24 | + cursor: InputFieldCursor; |
| 25 | + obscure: boolean; |
| 26 | + obscureChar: string; |
| 27 | + calculateCursorPos(this: this): number; |
| 28 | + getValueAsString(this: this): string; |
| 29 | + processInput(this: this, event: KeyboardEvent): void; |
| 30 | + setTextChildText(this: this, text: string): void; |
| 31 | + setText(this: this, text: string): void; |
| 32 | + unsetFocus(this: this): void; |
| 33 | + updateCursorPos(this: this, delta: number): void; |
| 34 | + setObscure(this: this, obscure: boolean): void; |
| 35 | + } |
| 36 | + interface InputFieldCon extends ImpactClass<InputField> { |
| 37 | + new (width: number, height: number, type?: modmanager.gui.InputFieldType, obscure?: boolean, obscureChar?: string): InputField; |
| 38 | + } |
| 39 | + let InputField: InputFieldCon; |
| 40 | + } |
| 41 | +} |
0 commit comments