Свойство | Type | Description | |
---|---|---|---|
ScaleFactors | float[] | ||
ScaleNodes | int[] |
Свойство | Type | Description | |
---|---|---|---|
AutoScale | void | ||
ChainScale | void | ||
CheckForDuplicateTweakScale | bool | ||
CheckForInvalidCfg | bool | ||
GetRelativeScaling | float? | ||
MoveNode | void | ||
NodesBetween | AttachNode>?.Tuple | ||
OnTweakScaleChanged | void | ||
RescaleNode | void | ||
SetupFromConfig | void | ||
Update | void | ||
UpdateByWidth | void | ||
UpdateWindow | void |
Méthode | Description | |
---|---|---|
GetModuleCost ( float defaultCost ) : float | ||
OnLoad ( |
||
OnSave ( |
||
OnStart ( StartState state ) : void |
Méthode | Description | |
---|---|---|
Setup ( ) : void |
Sets up values from ScaleType, creates updaters, and sets up initial values.
|
Méthode | Description | |
---|---|---|
AutoScale ( |
Automatically scale part to match other part, if applicable.
|
|
ChainScale ( ) : void |
Scale children with the part.
|
|
CheckForDuplicateTweakScale ( ) : bool |
Checks if there is more than one TweakScale instance on this part.
|
|
CheckForInvalidCfg ( ) : bool |
Checks if the config for this TweakScale instance is valid. If not, logs it and returns false.
|
|
GetRelativeScaling ( |
Calculate the correct scale to use for scaling a part relative to another.
|
|
MoveNode ( AttachNode node, AttachNode baseNode, bool movePart, bool absolute ) : void |
Moves node to reflect the new scale. If movePart is true, also moves attached parts.
|
|
NodesBetween ( Part a, Part b ) : AttachNode>?.Tuple |
Find the Attachnode that fastens a to b and vice versa.
|
|
OnTweakScaleChanged ( ) : void |
Scale has changed!
|
|
RescaleNode ( AttachNode node, AttachNode baseNode ) : void |
Change the size of node to reflect the new size of the part it's attached to.
|
|
SetupFromConfig ( |
Loads settings from scaleType.
|
|
Update ( ) : void | ||
UpdateByWidth ( bool moveParts, bool absolute ) : void |
Updates properties that change linearly with scale.
|
|
UpdateWindow ( ) : void |
Marks the right-click window as dirty (i.e. tells it to update).
|
public GetModuleCost ( float defaultCost ) : float | ||
defaultCost | float | |
Résultat | float |
public OnLoad ( |
||
node | ||
Résultat | void |
public OnSave ( |
||
node | ||
Résultat | void |