Kerbal Space Program
1.12.4
|
This is the UI element, with a link to the object.field or property behind it More...
Public Member Functions | |
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 | |
static int | SortByOrder (AppUIMember m1, AppUIMember m2) |
Sort AppUIMembers by ascending order More... | |
Public Attributes | |
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 | |
object | GetValue () |
Get the value of the underlying member More... | |
T | GetValue< T > () |
virtual void | OnAwake () |
Overridable Method called at end of Unity Awake More... | |
virtual void | OnInitialized () |
Overridable Method called after a member is correctly set up More... | |
abstract void | OnRefreshUI () |
Method called in subclasses when refreshUI is called More... | |
virtual void | OnStart () |
Overridable Method called at end of Unity Start 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... | |
Protected Attributes | |
AppUI_Control | _attribs |
FieldInfo | _field |
AppUI_Data | _host |
MemberInfo | _member |
PropertyInfo | _property |
RectTransform | guiNameLabelRectTransform = null |
List< UIHoverText > | hoverTextList |
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 | |
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... | |
This is the UI element, with a link to the object.field or property behind it
|
inlineprotected |
Get the value of the underlying member
|
inlineprotected |
|
inlineprotectedvirtual |
Overridable Method called at end of Unity Awake
|
inlineprotectedvirtual |
Overridable Method called after a member is correctly set up
Reimplemented in KSP.UI.Screens.AppUIMemberDateTime, KSP.UI.Screens.AppUIMemberInput, KSP.UI.Screens.AppUIMemberToggleBool, KSP.UI.Screens.AppUIMemberLabelList, KSP.UI.Screens.AppUIMemberRadioBool, KSP.UI.Screens.AppUIMemberDropdown, KSP.UI.Screens.AppUIMemberHeading, KSP.UI.Screens.AppUIMemberSliderFloat, KSP.UI.Screens.AppUIMemberLabel, KSP.UI.Screens.AppUIMemberInputFloat, KSP.UI.Screens.AppUIMemberSliderFloatMultiLine, and KSP.UI.Screens.AppUIMemberDropdownMultiLine.
|
protectedpure virtual |
Method called in subclasses when refreshUI is called
Implemented in KSP.UI.Screens.AppUIMemberDateTime, KSP.UI.Screens.AppUIMemberDropdown, KSP.UI.Screens.AppUIMemberInput, KSP.UI.Screens.AppUIMemberToggleBool, KSP.UI.Screens.AppUIMemberLabelList, KSP.UI.Screens.AppUIMemberRadioBool, KSP.UI.Screens.AppUIMemberSliderFloat, KSP.UI.Screens.AppUIMemberHeading, KSP.UI.Screens.AppUIMemberLabel, KSP.UI.Screens.AppUIMemberDropdownMultiLine, and KSP.UI.Screens.AppUIMemberSliderFloatMultiLine.
|
inlineprotectedvirtual |
Overridable Method called at end of Unity Start
Reimplemented in KSP.UI.Screens.AppUIMemberDateTime, KSP.UI.Screens.AppUIMemberInput, and KSP.UI.Screens.AppUIMemberDropdown.
|
inlineprotectedvirtual |
Overridable Method called at end of Unity Update
Reimplemented in KSP.UI.Screens.AppUIMemberDateTime.
|
inline |
Method called for refreshing the UI
|
inline |
|
inlinevirtual |
Setup the UI element from the host, member and attributes
host | The data class based off AppUI_Data |
member | The member (field or property) that is being linked to this UI |
attribs | The attribs that holds guiName, etc about the control |
|
inlineprotected |
Set the value of the underlying member
newValue | The new value |
|
inlinestatic |
Sort AppUIMembers by ascending order
m1 | member 1 |
m2 | member 2 |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
AppUI_Control.HorizontalAlignment KSP.UI.Screens.AppUIMember.guiNameHorizAlignment = AppUI_Control.HorizontalAlignment.Left |
The horizontal alignment for the guiName text.
TextMeshProUGUI KSP.UI.Screens.AppUIMember.guiNameLabel |
|
protected |
AppUI_Control.VerticalAlignment KSP.UI.Screens.AppUIMember.guiNameVertAlignment = AppUI_Control.VerticalAlignment.Midline |
The vertical alignment for the guiName text.
bool KSP.UI.Screens.AppUIMember.hideOnError |
If set true will hide this control in error states.
|
protected |
List of hover text elemants that should have their help text set by this component
|
protected |
int KSP.UI.Screens.AppUIMember.order |
Sort order index for this parameter in the panel
|
protected |
The layout group of the parent
Note: No need to null check this as the component is required on a AppUIInputPanel
|
protected |
The panel that is holding this member
bool KSP.UI.Screens.AppUIMember.showGuiName = true |
|
protected |
|
protected |
|
protected |
|
getset |
The field's gui name
|
getset |
WHat to change the panels textTargetForHover to when mouse is over this
|
getset |
Did the reflected member get all set up correctly
|
get |
The Member Name