![]() |
Kerbal Space Program
1.12.4
|
Public Types | |
| enum | EditorModes { EditorModes.SIMPLE = 0, EditorModes.ADVANCED = 1 } |
Public Member Functions | |
| bool | AnyTextFieldHasFocus () |
| Function to check if any textfield in the Editor (excluding DeltaVapp and RoboticControllerManager) is currently focused More... | |
| bool | AreAllPartsConnected () |
| Returns false if at least one part is not connected. More... | |
| int | CountAllSceneParts (bool includeSelected) |
| Returns the number of scene parts More... | |
| Part | CreatePartForInventoryUse (AvailablePart partInfo) |
| Creates a part that will then be turned into a part icon by the inventory. More... | |
| void | DestroySelectedPart () |
| List< Part > | getSortedShipList () |
| void | launchVessel () |
| Will launch the current vessel. (same as pressing the Launch button in the VAB/SPH). More... | |
| void | launchVessel (string siteName) |
| Will launch the current vessel from the specified siteName. Will check the siteName is a valid siteName and if not, will use the default Launchsite for the current Editor (SPH/VAB). More... | |
| void | Lock (bool lockLoad, bool lockExit, bool lockSave, string lockID) |
| bool | NameOrDescriptionFocused () |
| void | OnPartListBackgroundTap () |
| void | OnPartListIconTap (AvailablePart p) |
| void | OnPartListIconTap (ShipTemplate st) |
| void | OnPodSpawn (AvailablePart pod) |
| void | OnSubassemblyDialogDismiss (Part p) |
| void | ReleasePartToIcon () |
| Drops a part so it can be used to move over a PAW as an inventory item to be placed. More... | |
| void | ResetBackup () |
| Replaces the last undo state More... | |
| void | SelectPanelActions () |
| void | SelectPanelCargo () |
| void | SelectPanelCrew () |
| void | SelectPanelParts () |
| void | SelectPanelParts (bool isReset) |
| void | SetBackup () |
| Creates a new undo state More... | |
| void | SetIconAsPart (Part part) |
| Used to convert an existing part set as an icon, to a draggable Editor Part. More... | |
| void | snapButton (PointerEventData evtData=null) |
| void | SpawnConstruct (ShipConstruct construct) |
| void | SpawnPart (AvailablePart partInfo) |
| void | SpawnTemplate (ShipTemplate st) |
| void | SwitchEditor () |
| void | symButton (PointerEventData evtData=null) |
| void | UndoRedoInputUpdate () |
| void | Unlock (string lockID) |
| void | UpdateUI () |
Static Public Member Functions | |
| static void | DeletePart (Part part) |
| static Part | FirstNonSymmetricalParentFrom (Part p) |
| static void | LoadShipFromFile (string path) |
Static Public Member Functions inherited from EditorLogicBase | |
| 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... | |
Static Public Attributes | |
| static EditorLogic | fetch |
| static string | FlagURL = "" |
| static EditorPartIcon | iconRequestedVariantChange = null |
| This is the part icon where the variant switch button was actually clicked on More... | |
| static EditorModes | Mode = EditorModes.SIMPLE |
Protected Member Functions | |
| override void | partRotationResetUpdate () |
| bool | ShipIsValid (ShipConstruct ship) |
| Returns true if ship is not null and if ship contains at least 1 part. More... | |
Protected Member Functions inherited from EditorLogicBase | |
| 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 () |
Properties | |
| static string | autoShipName [get] |
| string | currentStateName [get] |
| Bounds | editorBounds [get] |
| ConstructionMode | EditorConstructionMode [get] |
| bool | FSMStarted [get] |
| Vector3 | initialPodPosition [get] |
| string | lastEventName [get] |
| static int | LayerMask [get] |
| static Part | RootPart [get] |
| static Part | SelectedPart [get] |
| The current selected part. Must be implementing ModuleCargoPart More... | |
| static Texture2D | ShipFileImage [get] |
| static List< Part > | SortedShipList [get] |
| A depth-first ordered list of ship parts (matches the SFS ordering) More... | |
| static Quaternion | VesselRotation [get] |
Properties inherited from EditorLogicBase | |
| 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... | |
|
inline |
Function to check if any textfield in the Editor (excluding DeltaVapp and RoboticControllerManager) is currently focused
|
inline |
Returns false if at least one part is not connected.
| ship |
|
inline |
Returns the number of scene parts
| includeSelected | |
| selectedPart |
|
inline |
Creates a part that will then be turned into a part icon by the inventory.
| partInfo | Available part as a referece for instancing the part. |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
Will launch the current vessel. (same as pressing the Launch button in the VAB/SPH).
|
inline |
Will launch the current vessel from the specified siteName. Will check the siteName is a valid siteName and if not, will use the default Launchsite for the current Editor (SPH/VAB).
| siteName | the siteName string |
< clear out any on-screen messages
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
< Added for Unity 4 support CJ 1-16-2012
|
inline |
|
inlineprotectedvirtual |
Reimplemented from EditorLogicBase.
|
inline |
Drops a part so it can be used to move over a PAW as an inventory item to be placed.
|
inline |
Replaces the last undo state
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Creates a new undo state
|
inline |
Used to convert an existing part set as an icon, to a draggable Editor Part.
|
inlineprotected |
Returns true if ship is not null and if ship contains at least 1 part.
| ship |
|
inline |
|
inline |
|
inline |
< Added for Unity 4 support CJ 1-16-2012
< Don't think it's necessary - RelinkPrefab(selectedPart, partInfo);
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| Button EditorLogic.actionPanelBtn |
| bool EditorLogic.allowNodeAttachment = true |
| bool EditorLogic.allowSrfAttachment = true |
| UIOnClick EditorLogic.angleSnapButton |
| UIStateImage EditorLogic.angleSnapSprite |
| AudioClip EditorLogic.attachClip |
| RectTransform EditorLogic.cargoBtnOrigPos |
| Button EditorLogic.cargoPanelBtn |
| Button EditorLogic.coordSpaceBtn |
| TMPro.TextMeshProUGUI EditorLogic.coordSpaceText |
| RectTransform EditorLogic.crewBtnOrigPos |
| Button EditorLogic.crewPanelBtn |
| bool EditorLogic.disallowSave = false |
| float EditorLogic.dragSharpness = 0.3f |
| RectTransform EditorLogic.editorBtnOrigPos |
| UIStateToggleButton EditorLogic.editorBtnStateToggle |
| EditorCamera EditorLogic.editorCam |
| Camera EditorLogic.editorCamera |
| Camera EditorLogic.editorCargoCamera |
| Button EditorLogic.exitBtn |
|
static |
| FlagBrowserButton EditorLogic.flagBrowserButton |
|
static |
|
static |
This is the part icon where the variant switch button was actually clicked on
| Button EditorLogic.launchBtn |
| string EditorLogic.launchSiteName = "LaunchPad" |
This is the currently selected launchSite Name.
| Button EditorLogic.loadBtn |
| UIStateImage EditorLogic.mirrorSprite |
| Collider [] EditorLogic.modalAreas |
|
static |
| Button EditorLogic.newBtn |
| Button EditorLogic.partPanelBtn |
| Button EditorLogic.radialSymmetryBtn |
| TMPro.TextMeshProUGUI EditorLogic.radialSymmetryText |
| Button EditorLogic.saveBtn |
| int EditorLogic.sceneToLoad |
| ShipConstruct EditorLogic.ship |
| GUISkin EditorLogic.shipBrowserSkin |
| TMPro.TMP_InputField EditorLogic.shipDescriptionField |
| Texture2D EditorLogic.shipFileImage |
| TMPro.TMP_InputField EditorLogic.shipNameField |
| float EditorLogic.srfAttachAngleSnap = 15f |
| float EditorLogic.srfAttachAngleSnapFine = 5f |
| string EditorLogic.startPodId = "mk1pod.v2" |
| Button EditorLogic.steamBtn |
| Button EditorLogic.switchEditorBtn |
| UIOnClick EditorLogic.symmetryButton |
| SymmetryMethod EditorLogic.symmetryMethod |
| int EditorLogic.symmetryMode = 0 |
| int EditorLogic.symmetryModeTmp = 0 |
| UIStateImage EditorLogic.symmetrySprite |
| EditorToolsUI EditorLogic.toolsUI |
| Quaternion EditorLogic.vesselRotation = Quaternion.identity |
|
staticget |
|
get |
|
get |
|
get |
|
get |
|
get |
|
get |
|
staticget |
|
staticget |
|
staticget |
The current selected part. Must be implementing ModuleCargoPart
|
staticget |
|
staticget |
A depth-first ordered list of ship parts (matches the SFS ordering)
|
staticget |
1.8.7