A text input field. This wraps Unity's IMGUI TextField and TextArea.
More...
|
| Text (Rect box, string initialText=null, string name=null, bool multiline=false) |
| Initialize the text input field. More...
|
|
| Text (string initialText=null, string name=null, bool multiline=false) |
| Initialize the text input field with automatic layout. More...
|
|
void | OnGUI () |
| GUI operations to perform in the OnGUI scope. This is basically equivalent to a MonoBehaviour's OnGUI method. More...
|
|
|
Rect | Box = Rect.zero [get, set] |
| The rectangular area that the text field can use. More...
|
|
bool | Enabled = true [get, set] |
| Whether to display the text field. More...
|
|
bool | Multiline [get, set] |
| Whether the text input field is multiline (true -> TextArea) or not (false -> TextField). More...
|
|
string | Name [get] |
| The text field's unique name. More...
|
|
|
EventHandler< string > | OnEdit |
| An event that fires whenever the text input is edited. More...
|
|
A text input field. This wraps Unity's IMGUI TextField and TextArea.
◆ Text() [1/2]
GamecraftModdingAPI.Interface.IMGUI.Text.Text |
( |
string |
initialText = null , |
|
|
string |
name = null , |
|
|
bool |
multiline = false |
|
) |
| |
|
inline |
Initialize the text input field with automatic layout.
- Parameters
-
initialText | Initial text in the input field. |
name | The text field's name. |
multiline | Allow multiple lines? |
◆ Text() [2/2]
GamecraftModdingAPI.Interface.IMGUI.Text.Text |
( |
Rect |
box, |
|
|
string |
initialText = null , |
|
|
string |
name = null , |
|
|
bool |
multiline = false |
|
) |
| |
|
inline |
Initialize the text input field.
- Parameters
-
box | Rectangular area for the text field. |
initialText | Initial text in the input field. |
name | The text field's name. |
multiline | Allow multiple lines? |
◆ OnGUI()
void GamecraftModdingAPI.Interface.IMGUI.Text.OnGUI |
( |
| ) |
|
|
inline |
◆ Box
Rect GamecraftModdingAPI.Interface.IMGUI.Text.Box = Rect.zero |
|
getset |
The rectangular area that the text field can use.
◆ Enabled
bool GamecraftModdingAPI.Interface.IMGUI.Text.Enabled = true |
|
getset |
Whether to display the text field.
◆ Multiline
bool GamecraftModdingAPI.Interface.IMGUI.Text.Multiline |
|
getset |
Whether the text input field is multiline (true -> TextArea) or not (false -> TextField).
◆ Name
string GamecraftModdingAPI.Interface.IMGUI.Text.Name |
|
get |
The text field's unique name.
◆ OnEdit
EventHandler< string> GamecraftModdingAPI.Interface.IMGUI.Text.OnEdit |
An event that fires whenever the text input is edited.
The documentation for this class was generated from the following file:
- GamecraftModdingAPI/Interface/IMGUI/Text.cs