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
UIPartActionVariantSelector Class Reference
Inheritance diagram for UIPartActionVariantSelector:
UIPartActionFieldItem UIPartActionItem

Public Member Functions

UIPartActionVariantButton AddVariantButton (int entryIndex, string hexPrimaryColor, string hexSecondaryColor)
 
void OnButtonNext ()
 
void OnButtonPressed (int newIndex)
 
void OnButtonPrev ()
 
void RefreshVariantButtons ()
 
void ResetButtonOverText ()
 
void SetButtonOverText (int entryIndex)
 
override void Setup (UIPartActionWindow window, Part part, PartModule partModule, UI_Scene scene, UI_Control control, BaseField field)
 Setup UI Element. More...
 
override void UpdateItem ()
 
- Public Member Functions inherited from UIPartActionFieldItem
bool CheckInRange ()
 Checks if the field is within range from the active vessel. More...
 
override bool IsItemValid ()
 
- Public Member Functions inherited from UIPartActionItem
virtual void AddInputFieldLock (string val)
 
virtual void RemoveInputfieldLock ()
 
void SetupItem (UIPartActionWindow window, Part part, PartModule partModule, UI_Scene scene, UI_Control control)
 

Public Attributes

Button buttonNext
 
Button buttonPrevious
 
GameObject prefabVariantButton
 
ScrollRect scrollMain
 
TMPro.TextMeshProUGUI variantName
 

Additional Inherited Members

- Protected Member Functions inherited from UIPartActionFieldItem
BaseField GetField (string name)
 
void SetFieldValue (object newValue)
 
bool SetSymCounterpartValue (object value)
 
- Protected Attributes inherited from UIPartActionFieldItem
BaseField field
 
bool isActiveUnfocused
 
float itemRange
 
bool removedIfPinned
 
- Protected Attributes inherited from UIPartActionItem
UI_Control control
 
bool isModule
 
Part part
 
PartModule partModule
 
UI_Scene scene
 
UIPartActionWindow window
 
- Properties inherited from UIPartActionFieldItem
BaseField Field [get]
 
object Host [get]
 
- Properties inherited from UIPartActionItem
UI_Control Control [get]
 
bool IsModule [get]
 
Part Part [get]
 
PartModule PartModule [get]
 
UI_Scene Scene [get]
 
UIPartActionWindow Window [get]
 

Member Function Documentation

UIPartActionVariantButton UIPartActionVariantSelector.AddVariantButton ( int  entryIndex,
string  hexPrimaryColor,
string  hexSecondaryColor 
)
inline
void UIPartActionVariantSelector.OnButtonNext ( )
inline
void UIPartActionVariantSelector.OnButtonPressed ( int  newIndex)
inline
void UIPartActionVariantSelector.OnButtonPrev ( )
inline
void UIPartActionVariantSelector.RefreshVariantButtons ( )
inline
void UIPartActionVariantSelector.ResetButtonOverText ( )
inline
void UIPartActionVariantSelector.SetButtonOverText ( int  entryIndex)
inline
override void UIPartActionVariantSelector.Setup ( UIPartActionWindow  window,
Part  part,
PartModule  partModule,
UI_Scene  scene,
UI_Control  control,
BaseField  field 
)
inlinevirtual

Setup UI Element.

Parameters
windowThe UIPartActionWindow
partThe Part
partModulethe PartModule
sceneThe UI_Scene
controlThe UI_Control
fieldthe BaseField

Reimplemented from UIPartActionFieldItem.

override void UIPartActionVariantSelector.UpdateItem ( )
inlinevirtual

Reimplemented from UIPartActionItem.

Member Data Documentation

Button UIPartActionVariantSelector.buttonNext
Button UIPartActionVariantSelector.buttonPrevious
GameObject UIPartActionVariantSelector.prefabVariantButton
ScrollRect UIPartActionVariantSelector.scrollMain
TMPro.TextMeshProUGUI UIPartActionVariantSelector.variantName

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