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

Public Member Functions

void CloseColorPickWindow ()
 Force-closes the color picker window More...
 
override void Setup (UIPartActionWindow window, Part part, PartModule partModule, UI_Scene scene, UI_Control control, BaseField field)
 
- 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)
 
virtual void UpdateItem ()
 

Public Attributes

ColorPicker colorPicker
 Holds a reference of the color picker class. More...
 
Button colorPickerButton
 Button for opening and closing the color select window More...
 
Transform colorPresetLayout
 Parent of the color preset images. More...
 
GameObject colorPresetPrefab
 Prefab for the color preset images. More...
 
ColorPresets colorPresets
 Holds reference to the color presets manager. All colorPresetPrefab should reference this. More...
 
GameObject colorSelectWindow
 Color select Window Game Object reference for pening it and closing it. More...
 
Image currentColorImage
 Current color swatch to left of name More...
 
TMPro.TextMeshProUGUI fieldNameText
 Text mesh pro reference in order to update the field name. More...
 
string id
 Name of the field, for ID purposes More...
 
bool showingColorSelectWindow = false
 Whether the color window is currently open More...
 
UI_ColorPicker UI_colorPicker
 The UI_Control child class for color picker. More...
 

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

void UIPartActionColorPicker.CloseColorPickWindow ( )
inline

Force-closes the color picker window

override void UIPartActionColorPicker.Setup ( UIPartActionWindow  window,
Part  part,
PartModule  partModule,
UI_Scene  scene,
UI_Control  control,
BaseField  field 
)
inlinevirtual

Reimplemented from UIPartActionFieldItem.

Member Data Documentation

ColorPicker UIPartActionColorPicker.colorPicker

Holds a reference of the color picker class.

Button UIPartActionColorPicker.colorPickerButton

Button for opening and closing the color select window

Transform UIPartActionColorPicker.colorPresetLayout

Parent of the color preset images.

GameObject UIPartActionColorPicker.colorPresetPrefab

Prefab for the color preset images.

ColorPresets UIPartActionColorPicker.colorPresets

Holds reference to the color presets manager. All colorPresetPrefab should reference this.

GameObject UIPartActionColorPicker.colorSelectWindow

Color select Window Game Object reference for pening it and closing it.

Image UIPartActionColorPicker.currentColorImage

Current color swatch to left of name

TMPro.TextMeshProUGUI UIPartActionColorPicker.fieldNameText

Text mesh pro reference in order to update the field name.

string UIPartActionColorPicker.id

Name of the field, for ID purposes

bool UIPartActionColorPicker.showingColorSelectWindow = false

Whether the color window is currently open

UI_ColorPicker UIPartActionColorPicker.UI_colorPicker

The UI_Control child class for color picker.


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