Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | List of all members
DialogGUITextInput Class Reference
Inheritance diagram for DialogGUITextInput:
DialogGUIBase

Public Member Functions

override GameObject Create (ref Stack< Transform > layouts, UISkinDef skin)
 
 DialogGUITextInput (string txt, bool multiline, int maxlength, Func< string, string > textSetFunc, float hght=-1.0f)
 
 DialogGUITextInput (string txt, bool multiline, int maxlength, Func< string, string > textSetFunc, float w, float hght)
 
 DialogGUITextInput (string txt, string placeHlder, bool multiline, int maxlength, Func< string, string > textSetFunc, float hght=-1.0f)
 
 DialogGUITextInput (string txt, string placeHlder, bool multiline, int maxlength, Func< string, string > textSetFunc, float w, float hght)
 
 DialogGUITextInput (string txt, bool multiline, int maxlength, Func< string, string > textSetFunc, Func< string > getString, TMPro.TMP_InputField.ContentType contentType, float hght=-1.0f)
 
override void Update ()
 
- Public Member Functions inherited from DialogGUIBase
void AddChild (DialogGUIBase child)
 
void AddChildren (DialogGUIBase[] c)
 
 DialogGUIBase (params DialogGUIBase[] list)
 
virtual void Resize ()
 
void SetOptionText (string text)
 

Public Attributes

Func< string > GetString = null
 
int maxLength
 
bool multiLine
 
Func< string, string > onTextUpdated = null
 
string placeholder
 
string text
 
- Public Attributes inherited from DialogGUIBase
List< DialogGUIBasechildren = new List<DialogGUIBase>()
 
bool flexibleHeight = true
 
UIStyle guiStyle = null
 
float height = -1.0f
 
Callback OnFixedUpdate = () => { }
 
Callback OnLateUpdate = () => { }
 
Callback OnRenderObject = () => { }
 
Callback OnResize = () => { }
 
Callback OnUpdate = () => { }
 
Func< bool > OptionEnabledCondition = () => { return true; }
 
Func< bool > OptionInteractableCondition = () => { return true; }
 
string OptionText = "No Function"
 
Vector2 position
 
Vector2 size = new Vector2(-1f, -1f)
 
Color tint
 
string tooltipText
 
GameObject uiItem = null
 
bool useColor = false
 
float width = -1.0f
 

Additional Inherited Members

- Static Public Member Functions inherited from DialogGUIBase
static bool SelectFirstItem (DialogGUIBase[] items)
 
static void SetUpTextObject (TMPro.TextMeshProUGUI text, string value, UIStyle style, UISkinDef skin, bool ignoreStyleColor=false)
 
- Protected Member Functions inherited from DialogGUIBase
virtual TMPro.TextMeshProUGUI GetTextObject ()
 
void SetupTransformAndLayout ()
 
- Protected Attributes inherited from DialogGUIBase
bool dirty = true
 
bool lastEnabledState = false
 
bool lastInteractibleState = true
 
- Properties inherited from DialogGUIBase
bool Dirty [get, set]
 

Constructor & Destructor Documentation

DialogGUITextInput.DialogGUITextInput ( string  txt,
bool  multiline,
int  maxlength,
Func< string, string >  textSetFunc,
float  hght = -1.0f 
)
inline
DialogGUITextInput.DialogGUITextInput ( string  txt,
bool  multiline,
int  maxlength,
Func< string, string >  textSetFunc,
float  w,
float  hght 
)
inline
DialogGUITextInput.DialogGUITextInput ( string  txt,
string  placeHlder,
bool  multiline,
int  maxlength,
Func< string, string >  textSetFunc,
float  hght = -1.0f 
)
inline
DialogGUITextInput.DialogGUITextInput ( string  txt,
string  placeHlder,
bool  multiline,
int  maxlength,
Func< string, string >  textSetFunc,
float  w,
float  hght 
)
inline
DialogGUITextInput.DialogGUITextInput ( string  txt,
bool  multiline,
int  maxlength,
Func< string, string >  textSetFunc,
Func< string >  getString,
TMPro.TMP_InputField.ContentType  contentType,
float  hght = -1.0f 
)
inline

Member Function Documentation

override GameObject DialogGUITextInput.Create ( ref Stack< Transform >  layouts,
UISkinDef  skin 
)
inlinevirtual

Reimplemented from DialogGUIBase.

override void DialogGUITextInput.Update ( )
inlinevirtual

Reimplemented from DialogGUIBase.

Member Data Documentation

Func<string> DialogGUITextInput.GetString = null
int DialogGUITextInput.maxLength
bool DialogGUITextInput.multiLine
Func<string, string> DialogGUITextInput.onTextUpdated = null
string DialogGUITextInput.placeholder
string DialogGUITextInput.text

The documentation for this class was generated from the following file: