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

Public Member Functions

override GameObject Create (ref Stack< Transform > layouts, UISkinDef skin)
 
 DialogGUIToggle (bool set, string lbel, Callback< bool > selected, float w=-1f, float h=-1f)
 
 DialogGUIToggle (bool set, Func< string > lbel, Callback< bool > selected, float w=-1f, float h=-1f)
 
 DialogGUIToggle (Func< bool > set, string lbel, Callback< bool > selected, float w=-1f, float h=-1f)
 
 DialogGUIToggle (Func< bool > set, Func< string > lbel, Callback< bool > selected, float w=-1f, float h=-1f)
 
 DialogGUIToggle (Func< bool > set, Func< UnityEngine.Sprite > checkSet, Callback< bool > selected, UnityEngine.Sprite overImage, float w=-1f, float h=-1f)
 
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

string label
 
Callback< bool > onToggled = (bool b) => { }
 
UnityEngine.Sprite overlayImage = null
 
Func< UnityEngine.Sprite > setCheck = null
 
Func< string > setLabel = null
 
bool setting
 
Func< bool > setValue = null
 
Toggle toggle
 
- 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
 

Protected Attributes

TMPro.TextMeshProUGUI textItem
 
- Protected Attributes inherited from DialogGUIBase
bool dirty = true
 
bool lastEnabledState = false
 
bool lastInteractibleState = true
 

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 ()
 
- Properties inherited from DialogGUIBase
bool Dirty [get, set]
 

Constructor & Destructor Documentation

DialogGUIToggle.DialogGUIToggle ( bool  set,
string  lbel,
Callback< bool >  selected,
float  w = -1f,
float  h = -1f 
)
inline
DialogGUIToggle.DialogGUIToggle ( bool  set,
Func< string >  lbel,
Callback< bool >  selected,
float  w = -1f,
float  h = -1f 
)
inline
DialogGUIToggle.DialogGUIToggle ( Func< bool >  set,
string  lbel,
Callback< bool >  selected,
float  w = -1f,
float  h = -1f 
)
inline
DialogGUIToggle.DialogGUIToggle ( Func< bool >  set,
Func< string >  lbel,
Callback< bool >  selected,
float  w = -1f,
float  h = -1f 
)
inline
DialogGUIToggle.DialogGUIToggle ( Func< bool >  set,
Func< UnityEngine.Sprite >  checkSet,
Callback< bool >  selected,
UnityEngine.Sprite  overImage,
float  w = -1f,
float  h = -1f 
)
inline

Member Function Documentation

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

Reimplemented from DialogGUIBase.

Reimplemented in DialogGUIToggleButton.

override void DialogGUIToggle.Update ( )
inlinevirtual

Reimplemented from DialogGUIBase.

Member Data Documentation

string DialogGUIToggle.label
Callback<bool> DialogGUIToggle.onToggled = (bool b) => { }
UnityEngine.Sprite DialogGUIToggle.overlayImage = null
Func<UnityEngine.Sprite> DialogGUIToggle.setCheck = null
Func<string> DialogGUIToggle.setLabel = null
bool DialogGUIToggle.setting
Func<bool> DialogGUIToggle.setValue = null
TMPro.TextMeshProUGUI DialogGUIToggle.textItem
protected
Toggle DialogGUIToggle.toggle

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