Property | Type | Description | |
---|---|---|---|
currentMainTankModule | |||
currentMountModule | SSTUTools.SingleModelData | ||
currentNoseModule | SSTUTools.SingleModelData | ||
initialized | bool | ||
mainTankModules | SSTUTools.TankModelData[] | ||
mountModules | SSTUTools.SingleModelData[] | ||
noseModules | SSTUTools.SingleModelData[] |
Method | Description | |
---|---|---|
GetInfo ( ) : string |
Cleans up the 'default' assignments from the prefab part (put here due to lack of multi-pass loading). Also adds a quick blurb to the right-click menu regarding possible additional part functionality.
|
|
GetModuleCost ( float defaultCost, ModifierStagingSituation sit ) : float |
Return the adjusted cost for the part based on current tank setup
|
|
GetModuleCostChangeWhen ( ) : ModifierChangeWhen | ||
GetModuleMass ( float defaultMass, ModifierStagingSituation sit ) : float | ||
GetModuleMassChangeWhen ( ) : ModifierChangeWhen | ||
OnDestroy ( ) : void |
Overriden/defined in order to remove the on-editor-ship-modified event from the game-event callback queue
|
|
OnLoad ( |
||
OnStart ( StartState state ) : void | ||
Start ( ) : void | ||
mountTypeUpdated ( BaseField field, object obj ) : void | ||
noseTypeUpdated ( BaseField field, object obj ) : void | ||
onEditorVesselModified ( ShipConstruct ship ) : void |
Event callback for when vessel is modified in the editor. Used to know when the gui-fields for this module have been updated.
|
|
onMountTextureUpdated ( BaseField field, object obj ) : void | ||
onNoseTextureUpdated ( BaseField field, object obj ) : void | ||
onTankTextureUpdated ( BaseField field, object obj ) : void | ||
tankDiameterUpdated ( BaseField field, object obj ) : void | ||
tankHeightScaleUpdated ( BaseField field, object obj ) : void | ||
tankSetUpdated ( BaseField field, object obj ) : void | ||
tankTypeUpdated ( BaseField field, object obj ) : void |
Method | Description | |
---|---|---|
getMountRootTransform ( bool recreate ) : |
||
getNoseRootTransform ( bool recreate ) : |
||
getTankRootTransform ( bool recreate ) : |
||
initialize ( ) : void | ||
setMainTankModuleFromEditor ( String newMainTank, bool updateSymmetry ) : void | ||
setMountModuleFromEditor ( String newMountType, bool updateSymmetry ) : void | ||
setNoseModuleFromEditor ( String newNoseType, bool updateSymmetry ) : void | ||
setTankSetFromEditor ( String newTankSet, bool updateSymmetry ) : void | ||
updateAttachNodes ( bool userInput ) : void |
Method | Description | |
---|---|---|
loadConfigData ( ) : void |
Restores ModelData instances from config node data, and populates the 'currentModule' instances with the currently enabled modules.
|
|
restoreEditorFields ( ) : void |
Restores the editor-only diameter and height-adjustment values;
|
|
restoreModels ( ) : void |
Loads or builds the models for the currently selected modules.
|
|
selectMountEvent ( ) : void | ||
selectNoseEvent ( ) : void | ||
setMountTextureFromEditor ( String newSet, bool updateSymmetry ) : void | ||
setNoseTextureFromEditor ( String newSet, bool updateSymmetry ) : void | ||
setTankDiameterFromEditor ( float newDiameter, bool updateSymmetry ) : void | ||
setTankScaleFromEditor ( float editorScaleValue, bool updateSymmetry ) : void | ||
setTankTextureFromEditor ( String newSet, bool updateSymmetry ) : void | ||
updateAvailableVariants ( ) : void | ||
updateContainerVolume ( ) : void | ||
updateEditorStats ( bool userInput ) : void | ||
updateGuiState ( ) : void | ||
updateModels ( ) : void | ||
updateModuleStats ( ) : void |
Updates the internal cached values for the modules based on the current tank settings for scale/volume/position; done separately from updating the actual models so that the values can be used without the models even being present
|
|
updateTankStats ( ) : void | ||
updateTextureSet ( bool updateSymmetry ) : void | ||
updateUIScaleControls ( ) : 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 |
protected getMountRootTransform ( bool recreate ) : |
||
recreate | bool | |
return |
protected getNoseRootTransform ( bool recreate ) : |
||
recreate | bool | |
return |
protected getTankRootTransform ( bool recreate ) : |
||
recreate | bool | |
return |
public mountTypeUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public noseTypeUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public onEditorVesselModified ( ShipConstruct ship ) : void | ||
ship | ShipConstruct | |
return | void |
public onMountTextureUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public onNoseTextureUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public onTankTextureUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
protected setMainTankModuleFromEditor ( String newMainTank, bool updateSymmetry ) : void | ||
newMainTank | String | |
updateSymmetry | bool | |
return | void |
protected setMountModuleFromEditor ( String newMountType, bool updateSymmetry ) : void | ||
newMountType | String | |
updateSymmetry | bool | |
return | void |
protected setNoseModuleFromEditor ( String newNoseType, bool updateSymmetry ) : void | ||
newNoseType | String | |
updateSymmetry | bool | |
return | void |
protected setTankSetFromEditor ( String newTankSet, bool updateSymmetry ) : void | ||
newTankSet | String | |
updateSymmetry | bool | |
return | void |
public tankDiameterUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public tankHeightScaleUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public tankSetUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
public tankTypeUpdated ( BaseField field, object obj ) : void | ||
field | BaseField | |
obj | object | |
return | void |
protected updateAttachNodes ( bool userInput ) : void | ||
userInput | bool | |
return | void |
protected TankModelData,SSTUTools currentMainTankModule | ||
return |
protected SingleModelData,SSTUTools currentMountModule | ||
return | SSTUTools.SingleModelData |
protected SingleModelData,SSTUTools currentNoseModule | ||
return | SSTUTools.SingleModelData |
protected TankModelData[],SSTUTools mainTankModules | ||
return | SSTUTools.TankModelData[] |
protected SingleModelData[],SSTUTools mountModules | ||
return | SSTUTools.SingleModelData[] |