C# Class SSTUTools.SSTUNodeFairing

Procedrually created (and adjustable/configurable) replacement for engine fairings, or any other part-attached fairing.
Inheritance: PartModule
Datei anzeigen Open project: shadowmage45/SSTULabs Class Usage Examples

Public Methods

Method Description
LateUpdate ( ) : void
OnDestroy ( ) : void
OnLoad ( ConfigNode node ) : void
OnSave ( ConfigNode node ) : void
OnStart ( StartState state ) : void
bottomDiameterUpdated ( BaseField field, object obj ) : void
colliderGuiUpdated ( BaseField field, object obj ) : void
onEditorVesselModified ( ShipConstruct ship ) : void
onVesselModified ( Vessel v ) : void
sectionsUpdated ( BaseField field, object obj ) : void
topDiameterUpdated ( BaseField field, object obj ) : void
transparencyUpdated ( BaseField field, object obj ) : void
updateExternal ( FairingUpdateData data ) : void

Private Methods

Method Description
buildFairing ( ) : void
canSpawnFairing ( ) : bool

Returns true for empty/null node name (whereas shouldSpawnFairing returns false)

enableFairing ( bool enable ) : void
enableFairingRender ( bool val ) : void
getLowestNode ( Part p, float &fairingPos ) : AttachNode
initialize ( ) : void
jettisonAction ( KSPActionParam param ) : void
jettisonEvent ( ) : void
jettisonFairing ( ) : void
loadFairingData ( ConfigNode node ) : void
nextTextureEvent ( ) : void
rebuildFairing ( ) : void
reparentFairing ( Part newParent ) : void

Reparents the fairing panel parts to the input part; should only be used on jettison of the fairings when they stay attached to the part below

shouldSpawnFairingForNode ( AttachNode &watchedNode, Part &triggerPart, float &fairingPos ) : bool
updateEditorFields ( bool forceUpdate ) : void

Updates the editor GUI fields with current live values and upates the prev/cached check values

updateFairingStatus ( ) : void

Blanket method to update the attached/visible status of the fairing based on its fairing type, current jettisoned status, and if a part is present on the fairings watched node (if any/applicable)

updateFromExternalData ( FairingUpdateData eData ) : void
updateGuiState ( ) : void

Updates GUI labels and action availability based on current module state (jettisoned, watchedNode attached status, canAdjustRadius, etc)

updateOpacity ( ) : void
updatePersistentDataString ( ) : void
updateShieldingStatus ( ) : void
updateStatusForNode ( ) : void
updateTextureSet ( ) : void

Method Details

LateUpdate() public method

public LateUpdate ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnLoad() public method

public OnLoad ( ConfigNode node ) : void
node System.ConfigNode
return void

OnSave() public method

public OnSave ( ConfigNode node ) : void
node System.ConfigNode
return void

OnStart() public method

public OnStart ( StartState state ) : void
state StartState
return void

bottomDiameterUpdated() public method

public bottomDiameterUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
return void

colliderGuiUpdated() public method

public colliderGuiUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
return void

onEditorVesselModified() public method

public onEditorVesselModified ( ShipConstruct ship ) : void
ship ShipConstruct
return void

onVesselModified() public method

public onVesselModified ( Vessel v ) : void
v Vessel
return void

sectionsUpdated() public method

public sectionsUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
return void

topDiameterUpdated() public method

public topDiameterUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
return void

transparencyUpdated() public method

public transparencyUpdated ( BaseField field, object obj ) : void
field BaseField
obj object
return void

updateExternal() public method

public updateExternal ( FairingUpdateData data ) : void
data FairingUpdateData
return void