Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Attributes | Protected Member Functions | List of all members
KSP.UI.Screens.AppUIMemberDropdown Class Reference

A Dropdown field for selecting an item from a list More...

Inheritance diagram for KSP.UI.Screens.AppUIMemberDropdown:
KSP.UI.Screens.AppUIMember KSP.UI.Screens.AppUIMemberDropdownMultiLine

Classes

class  AppUIDropdownItem
 A Data representation of a drop down item More...
 
class  AppUIDropdownItemDictionary
 A Dictionary of dropdown items so we can correlate the selected index with the actual value More...
 

Public Attributes

TMP_Dropdown dropdown
 
string dropdownItemsFieldName
 
AppUIDropdownItemDictionary itemList
 
- Public Attributes inherited from KSP.UI.Screens.AppUIMember
AppUI_Control.HorizontalAlignment guiNameHorizAlignment = AppUI_Control.HorizontalAlignment.Left
 The horizontal alignment for the guiName text. More...
 
TextMeshProUGUI guiNameLabel
 
AppUI_Control.VerticalAlignment guiNameVertAlignment = AppUI_Control.VerticalAlignment.Midline
 The vertical alignment for the guiName text. More...
 
bool hideOnError
 If set true will hide this control in error states. More...
 
int order
 Sort order index for this parameter in the panel More...
 
bool showGuiName = true
 

Protected Member Functions

virtual void BuildDropDownItemsList ()
 
override void OnInitialized ()
 Overridable Method called after a member is correctly set up More...
 
override void OnRefreshUI ()
 Method called in subclasses when refreshUI is called More...
 
override void OnStart ()
 Overridable Method called at end of Unity Start More...
 
- Protected Member Functions inherited from KSP.UI.Screens.AppUIMember
object GetValue ()
 Get the value of the underlying member More...
 
GetValue< T > ()
 
virtual void OnAwake ()
 Overridable Method called at end of Unity Awake More...
 
virtual void OnUpdate ()
 Overridable Method called at end of Unity Update More...
 
bool SetValue (object newValue)
 Set the value of the underlying member More...
 

Additional Inherited Members

- Public Member Functions inherited from KSP.UI.Screens.AppUIMember
void RefreshUI ()
 Method called for refreshing the UI More...
 
void SetHoverTextTarget (TextMeshProUGUI textTargetForHover)
 
virtual void Setup (AppUI_Data host, MemberInfo member, AppUI_Control attribs, AppUIInputPanel parentPanel)
 Setup the UI element from the host, member and attributes More...
 
- Static Public Member Functions inherited from KSP.UI.Screens.AppUIMember
static int SortByOrder (AppUIMember m1, AppUIMember m2)
 Sort AppUIMembers by ascending order More...
 
- Protected Attributes inherited from KSP.UI.Screens.AppUIMember
AppUI_Control _attribs
 
FieldInfo _field
 
AppUI_Data _host
 
MemberInfo _member
 
PropertyInfo _property
 
RectTransform guiNameLabelRectTransform = null
 
List< UIHoverTexthoverTextList
 List of hover text elemants that should have their help text set by this component More...
 
bool isEnum
 
VerticalLayoutGroup parentLayoutGroup = null
 The layout group of the parent More...
 
AppUIInputPanel parentPanel = null
 The panel that is holding this member More...
 
RectTransform valueHolderRectTransform = null
 
Vector2 valueRectOffsetMin
 
Type valueType
 
- Properties inherited from KSP.UI.Screens.AppUIMember
string guiName [get, set]
 The field's gui name More...
 
string HoverText [get, set]
 WHat to change the panels textTargetForHover to when mouse is over this More...
 
bool IsInitialized [get, set]
 Did the reflected member get all set up correctly More...
 
string Name [get]
 The Member Name More...
 

Detailed Description

A Dropdown field for selecting an item from a list

Member Function Documentation

virtual void KSP.UI.Screens.AppUIMemberDropdown.BuildDropDownItemsList ( )
inlineprotectedvirtual
override void KSP.UI.Screens.AppUIMemberDropdown.OnInitialized ( )
inlineprotectedvirtual

Overridable Method called after a member is correctly set up

Reimplemented from KSP.UI.Screens.AppUIMember.

Reimplemented in KSP.UI.Screens.AppUIMemberDropdownMultiLine.

override void KSP.UI.Screens.AppUIMemberDropdown.OnRefreshUI ( )
inlineprotectedvirtual

Method called in subclasses when refreshUI is called

Implements KSP.UI.Screens.AppUIMember.

Reimplemented in KSP.UI.Screens.AppUIMemberDropdownMultiLine.

override void KSP.UI.Screens.AppUIMemberDropdown.OnStart ( )
inlineprotectedvirtual

Overridable Method called at end of Unity Start

Reimplemented from KSP.UI.Screens.AppUIMember.

Member Data Documentation

TMP_Dropdown KSP.UI.Screens.AppUIMemberDropdown.dropdown
string KSP.UI.Screens.AppUIMemberDropdown.dropdownItemsFieldName
AppUIDropdownItemDictionary KSP.UI.Screens.AppUIMemberDropdown.itemList

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