mirror of
https://github.com/AR2000AR/openComputers_codes.git
synced 2025-09-06 21:51:14 +02:00
1.4 KiB
1.4 KiB
Input(Text)
Get text input from the user. The widget must be able to
Inherited public methods
- setX
- setY
- setPos
- getX
- getY
- getPos
- draw
- collide
- setWidth
- setHeight
- setSize
- setColor
- getWidth
- getHeight
- getSize
- getColor
- getForeground
- getBackground
- setForeground
- setBackground
Do not use :
This methods are replaced by getValue and setValue
Public methods
setPlaceholder
If set, the widget will show the placeholder character instead of the normal text. Useful for password prompts
Arguments
- char : string|nil
getPlaceholder
Get the placeholder character.
Return
- char : string
getValue
Get the inputted value. Return a different value than getText
. Prefer this method.
Return
- value : string
setValue
Get the inputted value. Should be used instead of setText