blob: 4d97e9a71a17cdd7aed4a1357f380281d37ad07f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Widget
New widget callbacks introduced in OpenStarbound.
## General callbacks
These callbacks are available for all widgets.
---
## Widget specific callbacks
These callbacks only work for some widget types.
---
#### `String` widget.getHint(`String` widgetName)
Gets the hint text of a TextBoxWidget.
#### `void` widget.setHint(`String` widgetName, `String` hint)
Sets the hint text of a TextBoxWidget.
---
#### `String` widget.getCursorPosition(`String` widgetName)
Gets the cursor position of a TextBoxWidget.
#### `void` widget.setCursorPosition(`String` widgetName, `int` cursorPosition)
Sets the cursor position of a TextBoxWidget.
|