Method | Description | |
---|---|---|
GetInfo ( ) : string |
Overriden to provide an opportunity to remove any existing models from the prefab part, so they do not get cloned into live parts as for some reason they cause issues when cloned in that fashion.
|
|
GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float | ||
GetModuleCostChangeWhen ( ) : ModifierChangeWhen | ||
GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float | ||
GetModuleMassChangeWhen ( ) : ModifierChangeWhen | ||
OnLoad ( |
||
OnStart ( PartModule state ) : void | ||
Start ( ) : void | ||
onDiameterUpdated ( BaseField field, object obj ) : void | ||
onHeightUpdated ( BaseField field, object obj ) : void | ||
onLayoutUpdated ( BaseField field, object obj ) : void | ||
onMountTextureUpdated ( BaseField field, object obj ) : void | ||
onMountUpdated ( BaseField field, object obj ) : void | ||
onSpacingUpdated ( BaseField field, object obj ) : void |
Method | Description | |
---|---|---|
clearMountEvent ( ) : void | ||
getCurrentMountScale ( ) : float |
Returns the current mount scale; calculated by the current user-set size and the default size specified in definition file
|
|
getSplitThrustNode ( float originalValues, int positions ) : |
Return a config node representing the 'split thrust transform' setup for this engine given the original input thrust-split setup and the number of engines currently in the part/model.
|
|
initialize ( ) : void | ||
initializePrefab ( |
||
initializeSmokeTransform ( ) : void | ||
loadConfigNodeData ( |
||
loadEngineLayouts ( |
||
positionEngineModels ( ) : void |
Updates the engine model positions and rotations for the current layout positioning with the given mount vertical offset, engine vertical offset, and user-specified vertical offset
|
|
positionMountModel ( ) : void |
Position the mount model according to its current scale and model position/offset parameters.
|
|
reInitEngineModule ( ) : void |
Re-initializes the engine and gimbal modules from their original config nodes -- this should -hopefully- allow them to grab updated transforms and update FX stuff properly
|
|
removeStockTransforms ( ) : void |
Removes the named transforms from the model hierarchy. Removes the entire branch of the tree starting at the named transform.
|
|
selectMountEvent ( ) : void | ||
setMountTextureFromEditor ( String newSet, bool updateSymmetry ) : void | ||
setupEngineModels ( ) : void |
Removes existing engine models and create new models, but does not position or scale them
|
|
setupMountModel ( ) : void |
Sets up the actual models for the mount(s), but does not position or scale the models
|
|
setupSplitThrustCache ( ModuleEngines engines ) : void | ||
setupThrustCache ( ModuleEngines engines ) : void | ||
updateDragCubes ( ) : void | ||
updateEditorFields ( ) : void |
Restores the editor-adjustment values from the current/persistent tank size data Should only be called when a new mount is selected, or the part is fist initialized in the editor
|
|
updateEngineOffsetFromEditor ( float newOffset, bool updateSymmetry ) : void | ||
updateEngineSpacingFromEditor ( float newSpacing, bool updateSymmetry ) : void | ||
updateFairing ( bool userInput ) : void |
Updates the position and enable/disable status of the SSTUNodeFairing (if present).
|
|
updateGuiState ( ) : void |
Updates the context-menu GUI buttons/etc as the config of the part changes.
|
|
updateLayoutFromEditor ( String newLayout, bool updateSymmetry ) : void | ||
updateLayoutOptionsGuiControl ( bool forceUpdate ) : void | ||
updateMountFromEditor ( String newMount, bool updateSymmetry ) : void | ||
updateMountOptionsGuiControl ( ) : void | ||
updateMountSizeFromEditor ( float newSize, bool updateSymmetry ) : void | ||
updateMountSizeGuiControl ( bool forceUpdate, float forceVal ) : void | ||
updateMountTexture ( ) : void | ||
updateMountTextureOptionsGuiControl ( ) : void | ||
updateNodePositions ( bool userInput ) : void |
Updates attach node position based on the current mount/parameters
|
|
updatePartCostAndMass ( ) : void |
public GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float | ||
defaultCost | float | |
sit | ModifierStagingSituation | |
return | float |
public GetModuleCostChangeWhen ( ) : ModifierChangeWhen | ||
return | ModifierChangeWhen |
public GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float | ||
defaultMass | float | |
sit | ModifierStagingSituation | |
return | float |
public GetModuleMassChangeWhen ( ) : ModifierChangeWhen | ||
return | ModifierChangeWhen |
public onDiameterUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public onHeightUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public onLayoutUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public onMountTextureUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public onMountUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public onSpacingUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |