![]() |
Kerbal Space Program
1.12.4
|
Base class for Editor Logic More...
Static Public Member Functions | |
| static List< Part > | FindPartsInChildren (Part part) |
| Finds all parts in the child hierarchy of the given part, part included More... | |
| static void | FindPartsInChildren (ref List< Part > parts, Part part) |
| Finds all parts in the child hierarchy of the given part, part included More... | |
Public Attributes | |
| EditorScreen | editorScreen |
| Vector3 | selPartGrabOffset |
Protected Member Functions | |
| void | AssignAttachIcon (Part part, AttachNode node, bool stackNodes, bool srfNodes, bool dockNodes) |
| void | CreateSelectedPartIcon () |
| Creates a part icon for the current selected part when it's not null and it's a cargo part. More... | |
| void | displayAttachNodeIcons (List< Part > parts, Part selectedPart, bool stackNodes, bool srfNodes, bool dockNodes) |
| Displays all attachNodes currently available for attaching. (depending on rules) (false, false disables the node icons) More... | |
| float | FindPartSurface (Part p, Vector3 origin, Vector3 direction, Vector3 fromParent, RaycastHit hit, out Vector3 srfNormal) |
| Find the surface of the part using its enabled colliders More... | |
| float | FindPartSurface (Part p, Vector3 origin, Vector3 direction, Vector3 fromParent, RaycastHit hit, out Vector3 srfNormal, int layerMask) |
| Find the surface of the part using its enabled colliders More... | |
| void | handleAttachNodeIcons (Part part, bool stackNodes, bool srfNodes, bool dockNodes) |
| void | handleChildNodeIcons (Part part) |
| bool | PartInHierarchy (Part part, Part tgtPart) |
| Detects whether the given part has the target part in it's child hierarchy. Used to detect and prevent parts connecting to their own childs and creating hierarchy loops. More... | |
| void | partRotationInputUpdate () |
| virtual void | partRotationResetUpdate () |
Static Protected Member Functions | |
| static void | clearAttachNodes (Part part, Part otherPart) |
Protected Attributes | |
| GameObject | attachNodePrefab |
| bool | checkInputLocks = true |
| KerbalFSM | fsm = null |
| ScreenMessage | interactMsg |
| bool | isCurrentPartFlag |
| ScreenMessage | modeMsg |
| bool | partTweaked |
| CompoundPart | selectedCompoundPart |
| Part | selectedPart |
| Quaternion | stackRotation |
Static Protected Attributes | |
| static string | cacheAutoLOC_125488 |
| static string | cacheAutoLOC_125583 |
| static string | cacheAutoLOC_125724 |
| static string | cacheAutoLOC_125784 |
| static string | cacheAutoLOC_125798 |
| static string | cacheAutoLOC_6001217 |
| static string | cacheAutoLOC_6001218 |
| static string | cacheAutoLOC_6001219 |
| static string | cacheAutoLOC_6001220 |
| static string | cacheAutoLOC_6001221 |
| static string | cacheAutoLOC_6001222 |
| static string | cacheAutoLOC_6001223 |
| static string | cacheAutoLOC_6001224 |
| static string | cacheAutoLOC_6001225 |
| static string | cacheAutoLOC_6001226 |
| static string | cacheAutoLOC_6004038 |
| static string | cacheAutoLOC_6006095 |
Properties | |
| bool | IsCurrentPartFlag [get] |
| Returns true if the current held part is a Flag, returns false if there is no current part flag or if it's not a Flag. More... | |
Base class for Editor Logic
|
inlineprotected |
< Added for Unity 4 Support CJ
|
inlineprotected |
Creates a part icon for the current selected part when it's not null and it's a cargo part.
|
inlineprotected |
Displays all attachNodes currently available for attaching. (depending on rules) (false, false disables the node icons)
| stackNodes | show stack points (if true) or destroy the ones visible (if false) |
| srfNodes | show surface attach points (if true) or destroy the ones visible (if false) |
Finds all parts in the child hierarchy of the given part, part included
| part |
Finds all parts in the child hierarchy of the given part, part included
| part |
|
inlineprotected |
Find the surface of the part using its enabled colliders
| p | The part |
| origin | Where to cast from |
| direction | in which direction the part is pointing |
| fromParent | the irection to cast |
| hit | the position of the hit |
| srfNormal | the direction the part should face when attached |
|
inlineprotected |
Find the surface of the part using its enabled colliders
| p | The part |
| origin | Where to cast from |
| direction | in which direction the part is pointing |
| fromParent | the irection to cast |
| hit | the position of the hit |
| srfNormal | the direction the part should face when attached |
| layerMask | a bit mask of layers to ignore in the test |
|
inlineprotected |
|
inlineprotected |
Detects whether the given part has the target part in it's child hierarchy. Used to detect and prevent parts connecting to their own childs and creating hierarchy loops.
| part | the part from which to search |
| tgtPart | the part to find |
|
inlineprotected |
|
inlineprotectedvirtual |
Reimplemented in EditorLogic, and EVAConstructionModeEditor.
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
| EditorScreen EditorLogicBase.editorScreen |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| Vector3 EditorLogicBase.selPartGrabOffset |
|
protected |
|
get |
Returns true if the current held part is a Flag, returns false if there is no current part flag or if it's not a Flag.
1.8.7