KSP API
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Properties | List of all members
EditorLogic Class Reference

This class has information about what is going on in the editor. In particular see SortedShipList. More...

Inheritance diagram for EditorLogic:

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< PartgetSortedShipList ()
 
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)
 

Public Attributes

UIButton actionPanelBtn
 
bool allowNodeAttachment
 
bool allowSrfAttachment
 
UIButton angleSnapButton
 
PackedSprite angleSnapSprite
 
AudioClip attachClip
 
GameObject attachNodePrefab
 
bool debugFlight
 
AudioClip deletePartClip
 
Vector3 dragPlaneCenter
 
float dragSharpness
 
Camera editorCamera
 
EditorLogic.EditorScreen editorScreen
 
EditorLogic.EditorMode editorType
 
UIButton exitBtn
 
Vector3 initialPodPosition
 
Vector3 initialPodRotation
 
UIButton launchBtn
 
string launchSiteName
 
UIButton loadBtn
 
float maxHeight
 
PackedSprite mirrorSprite
 
GameObject[] modalAreas
 
bool mouseGrab
 
UIButton newBtn
 
AudioClip partGrabClip
 
UIButton partPanelBtn
 
AudioClip partReleaseClip
 
Quaternion partRotation
 
UIButton saveBtn
 
int sceneToLoad
 
Vector3 selPartGrabOffset
 
ShipConstruct 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. More...
 
GUISkin shipBrowserSkin
 
Texture2D shipFileImage
 
UITextField shipNameField
 
float srfAttachAngleSnap
 
string startPodId
 
EditorLogic.EditorState state
 
UIButton symmetryButton
 
int symmetryMode
 
PackedSprite symmetrySprite
 

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< PartSortedShipList [get]
 A list of all parts in the vessel that is being edited. More...
 
EditorLogic.EditorState State [get, set]
 
static Quaternion VesselRotation [get]
 

Detailed Description

This class has information about what is going on in the editor. In particular see SortedShipList.

Member Enumeration Documentation

Enumerator
VAB 
SPH 
Enumerator
Parts 
Actions 
Staging 
Enumerator
GUI_UNSELECTED 
GUI_SELECTED 
PAD_UNSELECTED 
PAD_SELECTED 

Constructor & Destructor Documentation

EditorLogic.EditorLogic ( )

Member Function Documentation

bool EditorLogic.AreAllPartsConnected ( )
int EditorLogic.CountAllSceneParts ( bool  includeSelected)
static void EditorLogic.DeletePart ( Part  part)
static
void EditorLogic.DestroySelectedPart ( )
void EditorLogic.editText ( )
static Component EditorLogic.GetComponentUpwards ( string  type,
GameObject  obj 
)
static
static T EditorLogic.GetComponentUpwards< T > ( GameObject  obj)
static
Type Constraints
T :Component 
List<Part> EditorLogic.getSortedShipList ( )
static void EditorLogic.LoadShipFromFile ( string  path)
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 void EditorLogic.SetLayerRecursive ( GameObject  part,
int  layer,
int  ignoreLayersMask = 0 
)
static
static void EditorLogic.SetSoftLock ( bool  lockState)
static
void EditorLogic.snapButton ( )
void EditorLogic.SpawnPart ( AvailablePart  part)
void EditorLogic.symButton ( )
bool EditorLogic.UndoRedo ( )
void EditorLogic.Unlock ( )

Member Data Documentation

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
bool EditorLogic.editorLocked
static
EditorLogic.EditorScreen EditorLogic.editorScreen
EditorLogic.EditorMode EditorLogic.editorType
UIButton EditorLogic.exitBtn
EditorLogic EditorLogic.fetch
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
bool EditorLogic.softLock
static
float EditorLogic.srfAttachAngleSnap
Part EditorLogic.startPod
static
string EditorLogic.startPodId
EditorLogic.EditorState EditorLogic.state
UIButton EditorLogic.symmetryButton
int EditorLogic.symmetryMode
PackedSprite EditorLogic.symmetrySprite

Property Documentation

int EditorLogic.LayerMask
staticget
bool EditorLogic.mouseOverGUI
get
Quaternion EditorLogic.PartRotation
staticget
Part EditorLogic.PartSelected
getset
Part EditorLogic.SelectedPart
staticget
Texture2D EditorLogic.ShipFileImage
staticget
List<Part> EditorLogic.SortedShipList
staticget

A list of all parts in the vessel that is being edited.

EditorLogic.EditorState EditorLogic.State
getset
Quaternion EditorLogic.VesselRotation
staticget

The documentation for this class was generated from the following file: