Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
Expansions.Missions.Editor.MEPartSelectorBrowser Class Reference

ME dialog that allow us to select which parts are going to be enabled in the VAB/SPH for this mission More...

Inheritance diagram for Expansions.Missions.Editor.MEPartSelectorBrowser:

Public Member Functions

delegate void CancelledCallback ()
 
void Dismiss ()
 Dismiss this dialog More...
 
void OnFilterSelectionChange (EditorPartListFilter< AvailablePart > filter, bool status)
 Triggered when the filter category selection changes More...
 
void OnPartSelectionChange (AvailablePart part, bool selected)
 Triggered when a part selection state changes More...
 
void OnSearchChange (EditorPartListFilter< AvailablePart > filter)
 Triggered when a new search term is input More...
 
delegate void PartSelectionCallback (AvailablePart part, bool state)
 
delegate void SelectionCallback (List< string > selectedParts)
 
void SetPartSelectionStatus (AvailablePart part, bool selected)
 Sets the selection status of a part More...
 
void Setup (MEGUIParameterPartPicker parameter, PartSelectionCallback onPartSelect)
 Setup updates this instance with the new values and variables More...
 
MEPartSelectorBrowser Spawn (List< string > partList, Dictionary< string, List< string >> excludedParts, Color selectionColor, SelectionCallback onSelect, CancelledCallback onCancel, RectTransform parent=null)
 Creates a new instance of this class and setup the apropiate variables and delegate callbacks. More...
 
MEPartSelectorBrowser Spawn (MEGUIParameterPartPicker parameter, PartSelectionCallback onPartSelect, RectTransform parent=null)
 Creates a new instance of this class and setup the apropiate variables and delegate callbacks. More...
 
IEnumerator Start ()
 

Public Attributes

Button cancelButton
 
float iconOverScale
 
float iconOverSpin
 
float iconSize
 
MEPartSelectorEntry mePrefab
 
CancelledCallback OnBrowseCancelled
 
SelectionCallback OnBrowseSelectedParts
 
PartSelectionCallback OnPartSelectedChange
 
MEPartCategorizer PartCategorizer
 
ScrollRect partListScrollRect
 
UIListSorter partListSorter
 
Button selectButton
 

Protected Member Functions

void AddPartIcon (MEPartSelectorEntry entry, RectTransform listParent)
 
void ClearPartList ()
 
void DisablePart (MEPartSelectorEntry entry, bool status, string excludeReason)
 
void Hide ()
 Hide this dialog More...
 
void onButtonCancel ()
 Triggered when the cancel button is pressed More...
 
void onButtonSelect ()
 Triggered when the select button is pressed More...
 
void Show ()
 Show this dialog More...
 

Protected Attributes

Dictionary< string, List
< string > > 
excludedParts
 Dictionary of excluded parts and the reason for this part picker More...
 
EditorPartListFilterList
< AvailablePart
partsFilter
 
List< MEPartSelectorEntrypartsList
 
EditorPartListFilter
< AvailablePart
searchFilter
 
string title
 

Properties

List< string > SelectedParts [get]
 
Color SelectionColor [get]
 

Detailed Description

ME dialog that allow us to select which parts are going to be enabled in the VAB/SPH for this mission

Member Function Documentation

void Expansions.Missions.Editor.MEPartSelectorBrowser.AddPartIcon ( MEPartSelectorEntry  entry,
RectTransform  listParent 
)
inlineprotected
delegate void Expansions.Missions.Editor.MEPartSelectorBrowser.CancelledCallback ( )
void Expansions.Missions.Editor.MEPartSelectorBrowser.ClearPartList ( )
inlineprotected
void Expansions.Missions.Editor.MEPartSelectorBrowser.DisablePart ( MEPartSelectorEntry  entry,
bool  status,
string  excludeReason 
)
inlineprotected
void Expansions.Missions.Editor.MEPartSelectorBrowser.Dismiss ( )
inline

Dismiss this dialog

void Expansions.Missions.Editor.MEPartSelectorBrowser.Hide ( )
inlineprotected

Hide this dialog

void Expansions.Missions.Editor.MEPartSelectorBrowser.onButtonCancel ( )
inlineprotected

Triggered when the cancel button is pressed

void Expansions.Missions.Editor.MEPartSelectorBrowser.onButtonSelect ( )
inlineprotected

Triggered when the select button is pressed

void Expansions.Missions.Editor.MEPartSelectorBrowser.OnFilterSelectionChange ( EditorPartListFilter< AvailablePart filter,
bool  status 
)
inline

Triggered when the filter category selection changes

void Expansions.Missions.Editor.MEPartSelectorBrowser.OnPartSelectionChange ( AvailablePart  part,
bool  selected 
)
inline

Triggered when a part selection state changes

Parameters
partThe afected part
selectedThe new selection status
void Expansions.Missions.Editor.MEPartSelectorBrowser.OnSearchChange ( EditorPartListFilter< AvailablePart filter)
inline

Triggered when a new search term is input

Parameters
filter
delegate void Expansions.Missions.Editor.MEPartSelectorBrowser.PartSelectionCallback ( AvailablePart  part,
bool  state 
)
delegate void Expansions.Missions.Editor.MEPartSelectorBrowser.SelectionCallback ( List< string >  selectedParts)
void Expansions.Missions.Editor.MEPartSelectorBrowser.SetPartSelectionStatus ( AvailablePart  part,
bool  selected 
)
inline

Sets the selection status of a part

Parameters
part
selected
void Expansions.Missions.Editor.MEPartSelectorBrowser.Setup ( MEGUIParameterPartPicker  parameter,
PartSelectionCallback  onPartSelect 
)
inline

Setup updates this instance with the new values and variables

Parameters
partListList of parts already enabled in the mission
partBlacklistList of parts already selected in other part selector and should be blacklisted (greyed)
selectionColorColor used on the part selection
void Expansions.Missions.Editor.MEPartSelectorBrowser.Show ( )
inlineprotected

Show this dialog

MEPartSelectorBrowser Expansions.Missions.Editor.MEPartSelectorBrowser.Spawn ( List< string >  partList,
Dictionary< string, List< string >>  excludedParts,
Color  selectionColor,
SelectionCallback  onSelect,
CancelledCallback  onCancel,
RectTransform  parent = null 
)
inline

Creates a new instance of this class and setup the apropiate variables and delegate callbacks.

Parameters
partListList of parts already enabled in the mission
excludedPartsList of parts already selected in other part selector and should be blacklisted (greyed)
selectionColorColor used on the part selection
onSelectCallback triggered when the new part selection is ready
onCancelCallback triggered on this dialog cancel
parentParent transform of this dialog
Returns
MEPartSelectorBrowser Expansions.Missions.Editor.MEPartSelectorBrowser.Spawn ( MEGUIParameterPartPicker  parameter,
PartSelectionCallback  onPartSelect,
RectTransform  parent = null 
)
inline

Creates a new instance of this class and setup the apropiate variables and delegate callbacks.

Parameters
parameterReference to the MEGUI_PartPicker control
onPartSelectCallback triggered when a part selection state changes
parentParent transform of this dialog
Returns
IEnumerator Expansions.Missions.Editor.MEPartSelectorBrowser.Start ( )
inline

Member Data Documentation

Button Expansions.Missions.Editor.MEPartSelectorBrowser.cancelButton
Dictionary<string, List<string> > Expansions.Missions.Editor.MEPartSelectorBrowser.excludedParts
protected

Dictionary of excluded parts and the reason for this part picker

float Expansions.Missions.Editor.MEPartSelectorBrowser.iconOverScale
float Expansions.Missions.Editor.MEPartSelectorBrowser.iconOverSpin
float Expansions.Missions.Editor.MEPartSelectorBrowser.iconSize
MEPartSelectorEntry Expansions.Missions.Editor.MEPartSelectorBrowser.mePrefab
CancelledCallback Expansions.Missions.Editor.MEPartSelectorBrowser.OnBrowseCancelled
SelectionCallback Expansions.Missions.Editor.MEPartSelectorBrowser.OnBrowseSelectedParts
PartSelectionCallback Expansions.Missions.Editor.MEPartSelectorBrowser.OnPartSelectedChange
MEPartCategorizer Expansions.Missions.Editor.MEPartSelectorBrowser.PartCategorizer
ScrollRect Expansions.Missions.Editor.MEPartSelectorBrowser.partListScrollRect
UIListSorter Expansions.Missions.Editor.MEPartSelectorBrowser.partListSorter
EditorPartListFilterList<AvailablePart> Expansions.Missions.Editor.MEPartSelectorBrowser.partsFilter
protected
List<MEPartSelectorEntry> Expansions.Missions.Editor.MEPartSelectorBrowser.partsList
protected
EditorPartListFilter<AvailablePart> Expansions.Missions.Editor.MEPartSelectorBrowser.searchFilter
protected
Button Expansions.Missions.Editor.MEPartSelectorBrowser.selectButton
string Expansions.Missions.Editor.MEPartSelectorBrowser.title
protected

Property Documentation

List<string> Expansions.Missions.Editor.MEPartSelectorBrowser.SelectedParts
get
Color Expansions.Missions.Editor.MEPartSelectorBrowser.SelectionColor
get

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