This class has information about what is going on in the editor. In particular see SortedShipList. More...
Public Types | |
enum | EditorMode { EditorMode.VAB = 0, EditorMode.SPH = 1 } |
enum | EditorScreen { EditorScreen.Parts = 0, EditorScreen.Actions = 1, EditorScreen.Staging = 2 } |
enum | EditorState { EditorState.GUI_UNSELECTED = 0, EditorState.GUI_SELECTED = 1, EditorState.PAD_UNSELECTED = 2, EditorState.PAD_SELECTED = 3 } |
Public Member Functions | |
EditorLogic () | |
bool | AreAllPartsConnected () |
int | CountAllSceneParts (bool includeSelected) |
void | DestroySelectedPart () |
void | editText () |
List< Part > | getSortedShipList () |
void | Lock (bool lockLoad, bool lockExit, bool lockSave) |
void | OnPodSelect (AvailablePart pod) |
void | SelectPanelActions () |
void | SelectPanelParts () |
void | SetBackup () |
void | SetHighlightRecursive (bool recursive, List< Part > parts) |
void | SetHighlightRecursive (bool recursive, Part p) |
void | SetHighlightRecursive (bool recursive, ShipConstruct parts) |
void | snapButton () |
void | SpawnPart (AvailablePart part) |
void | symButton () |
bool | UndoRedo () |
void | Unlock () |
Static Public Member Functions | |
static void | DeletePart (Part part) |
static T | GetComponentUpwards< T > (GameObject obj) |
static Component | GetComponentUpwards (string type, GameObject obj) |
static void | LoadShipFromFile (string path) |
static void | SetLayerRecursive (GameObject part, int layer, int ignoreLayersMask=0) |
static void | SetSoftLock (bool lockState) |
Static Public Attributes | |
static bool | editorLocked |
static EditorLogic | fetch |
static bool | softLock |
static Part | startPod |
Properties | |
static int | LayerMask [get] |
bool | mouseOverGUI [get] |
static Quaternion | PartRotation [get] |
Part | PartSelected [get, set] |
static Part | SelectedPart [get] |
static Texture2D | ShipFileImage [get] |
static List< Part > | SortedShipList [get] |
A list of all parts in the vessel that is being edited. More... | |
EditorLogic.EditorState | State [get, set] |
static Quaternion | VesselRotation [get] |
This class has information about what is going on in the editor. In particular see SortedShipList.
EditorLogic.EditorLogic | ( | ) |
bool EditorLogic.AreAllPartsConnected | ( | ) |
int EditorLogic.CountAllSceneParts | ( | bool | includeSelected | ) |
|
static |
void EditorLogic.DestroySelectedPart | ( | ) |
void EditorLogic.editText | ( | ) |
|
static |
|
static |
T | : | Component |
List<Part> EditorLogic.getSortedShipList | ( | ) |
|
static |
void EditorLogic.Lock | ( | bool | lockLoad, |
bool | lockExit, | ||
bool | lockSave | ||
) |
void EditorLogic.OnPodSelect | ( | AvailablePart | pod | ) |
void EditorLogic.SelectPanelActions | ( | ) |
void EditorLogic.SelectPanelParts | ( | ) |
void EditorLogic.SetBackup | ( | ) |
void EditorLogic.SetHighlightRecursive | ( | bool | recursive, |
List< Part > | parts | ||
) |
void EditorLogic.SetHighlightRecursive | ( | bool | recursive, |
Part | p | ||
) |
void EditorLogic.SetHighlightRecursive | ( | bool | recursive, |
ShipConstruct | parts | ||
) |
|
static |
|
static |
void EditorLogic.snapButton | ( | ) |
void EditorLogic.SpawnPart | ( | AvailablePart | part | ) |
void EditorLogic.symButton | ( | ) |
bool EditorLogic.UndoRedo | ( | ) |
void EditorLogic.Unlock | ( | ) |
UIButton EditorLogic.actionPanelBtn |
bool EditorLogic.allowNodeAttachment |
bool EditorLogic.allowSrfAttachment |
UIButton EditorLogic.angleSnapButton |
PackedSprite EditorLogic.angleSnapSprite |
AudioClip EditorLogic.attachClip |
GameObject EditorLogic.attachNodePrefab |
bool EditorLogic.debugFlight |
AudioClip EditorLogic.deletePartClip |
Vector3 EditorLogic.dragPlaneCenter |
float EditorLogic.dragSharpness |
Camera EditorLogic.editorCamera |
|
static |
EditorLogic.EditorScreen EditorLogic.editorScreen |
EditorLogic.EditorMode EditorLogic.editorType |
UIButton EditorLogic.exitBtn |
|
static |
Vector3 EditorLogic.initialPodPosition |
Vector3 EditorLogic.initialPodRotation |
UIButton EditorLogic.launchBtn |
string EditorLogic.launchSiteName |
UIButton EditorLogic.loadBtn |
float EditorLogic.maxHeight |
PackedSprite EditorLogic.mirrorSprite |
GameObject [] EditorLogic.modalAreas |
bool EditorLogic.mouseGrab |
UIButton EditorLogic.newBtn |
AudioClip EditorLogic.partGrabClip |
UIButton EditorLogic.partPanelBtn |
AudioClip EditorLogic.partReleaseClip |
Quaternion EditorLogic.partRotation |
UIButton EditorLogic.saveBtn |
int EditorLogic.sceneToLoad |
Vector3 EditorLogic.selPartGrabOffset |
ShipConstruct EditorLogic.ship |
EditorLogic.fetch.ship.parts is a list of the parts in the ship currently under construction, ordered by the order in which they were added to the ship.
GUISkin EditorLogic.shipBrowserSkin |
Texture2D EditorLogic.shipFileImage |
UITextField EditorLogic.shipNameField |
|
static |
float EditorLogic.srfAttachAngleSnap |
|
static |
string EditorLogic.startPodId |
EditorLogic.EditorState EditorLogic.state |
UIButton EditorLogic.symmetryButton |
int EditorLogic.symmetryMode |
PackedSprite EditorLogic.symmetrySprite |
|
staticget |
|
get |
|
staticget |
|
getset |
|
staticget |
|
staticget |
|
staticget |
A list of all parts in the vessel that is being edited.
|
getset |
|
staticget |