Package noppes.npcs.api.gui
Interface ITextField
- All Superinterfaces:
ICustomGuiComponent
- All Known Subinterfaces:
ITextArea
-
Method Summary
Modifier and TypeMethodDescriptionint
int
getColor()
float
getFloat()
boolean
int
getText()
setCharacterType
(int type) setColor
(int color) setFloat
(float f) setFocused
(boolean bo) setInteger
(int i) setMinMax
(int min, int max) Incase CharacterType is 1 or 2, you can set the min and max valuesetOnChange
(GuiComponentUpdate<ITextField> onChange) setOnFocusLost
(GuiComponentUpdate<ITextField> onChange) Methods inherited from interface noppes.npcs.api.gui.ICustomGuiComponent
getEnabled, getHeight, getHoverText, getID, getPosX, getPosY, getType, getUniqueID, getVisible, getWidth, hasHoverText, setEnabled, setHoverText, setHoverText, setID, setPos, setSize, setVisible
-
Method Details
-
getText
String getText() -
setText
-
getColor
int getColor() -
setColor
-
setOnChange
-
setOnFocusLost
-
setFocused
-
getFocused
boolean getFocused() -
setCharacterType
- Parameters:
type
- 0:string, 1:int, 2:hex, 3:float
-
getCharacterType
int getCharacterType()- Returns:
- 0:string, 1:int, 2:hex, 3:float
-
getInteger
int getInteger()- Returns:
- Incase CharacterType is 1 or 2 it will convert text to an integer
-
setInteger
- Parameters:
i
- Incase CharacterType is 1 or 2 set the text as the integer, if its CharacterType 2 it will convert to Hex
-
getFloat
float getFloat() -
setFloat
-
setMinMax
Incase CharacterType is 1 or 2, you can set the min and max value
-