C# Class SSTUTools.ModuleSelectionGUI

Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: shadowmage45/SSTULabs Class Usage Examples

Public Properties

Property Type Description
INSTANCE ModuleSelectionGUI

Public Methods

Method Description
OnGUI ( ) : void
Start ( ) : void
closeGUI ( ) : void

Should be called by the PartModule to close the GUI. This cleans up resources that were initialized when the GUI was opened.

openGUI ( SSTUTools.ModelData models, float diameter, bool>.Action modelSelectedCB ) : void

Should be called by the PartModule to open the GUI.

Private Methods

Method Description
adapterSelected ( ModelGUISelection selection ) : void

Internal call from GUI interaction when the 'select adapter' button is pressed for a specific adapter. Should issue a callback to the opening PartModule with info regarding what adapter was selected, and then close the GUI?

addModelControls ( ) : void
closeInternal ( ) : void
updateGUI ( ) : void

Should be called by the PartModule to update the GUI on every OnGUI Unity call.

updateWindow ( int id ) : void

Method Details

OnGUI() public method

public OnGUI ( ) : void
return void

Start() public method

public Start ( ) : void
return void

closeGUI() public static method

Should be called by the PartModule to close the GUI. This cleans up resources that were initialized when the GUI was opened.
public static closeGUI ( ) : void
return void

openGUI() public static method

Should be called by the PartModule to open the GUI.
public static openGUI ( SSTUTools.ModelData models, float diameter, bool>.Action modelSelectedCB ) : void
models SSTUTools.ModelData
diameter float
modelSelectedCB bool>.Action
return void

Property Details

INSTANCE public_oe static_oe property

public static ModuleSelectionGUI,SSTUTools INSTANCE
return ModuleSelectionGUI