Kerbal Space Program
1.12.4
|
Public Member Functions | |
void | AddNewLine (MEGUIConnector line, MENodeConnectionType type) |
bool | CanDock () |
Checks whether this node can dock to others. More... | |
void | CheckDockStatus () |
Check the current status of the node and evalute if a dock status change is needed More... | |
void | CheckNodeDockingPosition (Vector3 nodePositionCheckOverride) |
Checks whether this node should be docked to another and handles docking and undocking. More... | |
void | CleanNodeBodyParameters () |
Clean the node More... | |
void | CleanUp () |
void | ClearHighlighter () |
Turn off the highlighter More... | |
void | ClearValidityIndicators () |
Clear any gui indicators More... | |
void | Deselect () |
Deselect this node More... | |
void | Destroy () |
Disable this node and remove all it's references with the editor and other nodes More... | |
void | DisplayNodeBodyParameters () |
Displays the node body parameters More... | |
void | DockNode (MEGUINode parentNode) |
Dock myself to a new node. More... | |
void | DockNode (MEGUINode parentNode, int dockIndex, bool fromHistory) |
Overload 1, Dock myself to a node recovered by history "undo" or a new one with a specific index More... | |
bool | DoesConnectionExist (MEGUINode otherNode, MENodeConnectionType otherNodeConnectionType) |
Returns true if this node is already linked through a connector to the other node, false if it isn't connected. More... | |
float | GetDepthOfDockedNode (MEGUINode dockedNode) |
Gets the depth of a docked node inside the stack that it's in. More... | |
Color | GetHighlighterColor () |
Get the current Highlighter Color. More... | |
Vector2 | GetInputButtonPosition () |
Vector2 | GetOutputButtonPosition () |
ConfigNode | GetState () |
Gets the current node state More... | |
bool | HasInputConnections () |
bool | HasOutputConnections () |
void | OnPointerClick (PointerEventData eventData) |
Implements the IPointerClickHandler event. More... | |
void | PlaceNodeAtCanvas (Vector3 position) |
Place the node at a canvas world relative position More... | |
void | PlaceNodeAtCanvas (Vector3 position, MEGUINodeIcon baseNodeIcon) |
Place the node at a canvas world relative position More... | |
void | PushUndoActionOnPasteNode () |
Add the paste nodes to the undo action history More... | |
void | RemoveAllConnections () |
Delete and un link all the connectors for this node More... | |
void | RemoveLine (MEGUIConnector line, MENodeConnectionType type) |
Removes a line from the lines connections list More... | |
void | Select (bool deselectOtherNodes=false, bool bypassNodeSelection=false) |
Select this node More... | |
void | SetEndNode (bool setNode, bool initialize=false) |
Set the Nodes End visuals More... | |
void | SetHighlighter (Color color) |
Turn on the highlighter with the specifed color More... | |
void | SetNode (MENode node) |
Set the logic node that is used in this GUINode More... | |
void | SetNodeColor () |
Updates the node color and associated bits using the current color More... | |
void | SetNodeColor (Color color) |
Set/changes the node header color and associated items More... | |
void | SetTitleText (string title) |
Set/changes the node title string More... | |
void | SetupDockingData () |
Initialise all the information pertaining to docking for this node. More... | |
void | SetValidityIndicators (MissionValidationTestResult result) |
Turn on the Validity Indicators More... | |
void | ToggleHighlighter () |
Toggle the Highlighter to other state More... | |
void | ToggleHighlighter (bool state) |
Toggle the highlighter visibility to that passed in More... | |
void | ToggleInputHolderHighlighter (bool state) |
void | ToggleOutputHolderHighlighter (bool state) |
void | ToggleParametersButtonClicked () |
void | UndockNode () |
Undock myself from a node. More... | |
void | UpdateConnectors () |
void | UpdateDockedIndex () |
Checks and updates the dock index of this node More... | |
void | UpdateInputConnectorImage () |
Update the input connector image depending on the current state. More... | |
void | UpdateOutputConnectorImage () |
Update the input connector image depending on the current state. More... | |
Public Attributes | |
RectTransform | dockedNodesParentTransform |
When logic nodes are docked to this node, they parent to this transform. More... | |
MEGUINode | dockedParentNode |
This is the node that I am docked to. More... | |
Image | headerImage |
Image used for the header. Used to change the colour of the header. More... | |
Button | inputConnectorButton |
RectTransform | InputOutputGroup |
bool | isSelected |
Node has been selected in the mission editor More... | |
MEGUINodeBodyParameter | nodeBodyParameterPrefab |
Prefab used to instantiate the node body parameters. More... | |
int | numberOfParametersToDisplayWhenMinimised = 1 |
Number of node body parameters to display when the minimise button is clicked More... | |
Button | outputConnectorButton |
Transform | ParameterListTransform |
TextMeshProUGUI | title |
Button | toggleParametersButton |
Protected Member Functions | |
IEnumerator | DelayedUpdateConnectors () |
void | DisplayModuleSection (IMENodeDisplay module, string parameterName, int parameterPosition) |
Displays the module parameter in the node body More... | |
void | DisplayParameter (string displayString, int parameterPosition, bool allowEmpty) |
void | DisplayParameter (string displayString, int parameterPosition) |
virtual void | Setup () |
Protected Attributes | |
KSP.UI.UIDragPanel | dragPanel |
Properties | |
MEBasicNode | BasicNode [get] |
This is a reference to the MEBasicNode that this MEGUINode is based from. More... | |
MEGUINode | DockCandidate [get] |
List< MEGUIConnector > | InputConnectors [get, set] |
MENode | Node [get, set] |
The object that underpins this graphical representation More... | |
List< MEGUIConnector > | OutputConnectors [get, set] |
RectTransform | rectTransform [get, set] |
Events | |
System.Action< MEGUINode > | DockStatusChange = (node) => { } |
Triggered when the dock status of this node changes More... | |
|
inline |
|
inline |
Checks whether this node can dock to others.
|
inline |
Check the current status of the node and evalute if a dock status change is needed
|
inline |
Checks whether this node should be docked to another and handles docking and undocking.
|
inline |
Clean the node
|
inline |
|
inline |
Turn off the highlighter
|
inline |
Clear any gui indicators
node | the Node to work on |
|
inlineprotected |
|
inline |
Deselect this node
|
inline |
Disable this node and remove all it's references with the editor and other nodes
|
inlineprotected |
Displays the module parameter in the node body
module | |
parameterName | |
parameterPosition |
|
inline |
Displays the node body parameters
node | Node to be displayed |
|
inlineprotected |
|
inlineprotected |
|
inline |
Dock myself to a new node.
parentNode | Node that we want to dock to. |
|
inline |
Overload 1, Dock myself to a node recovered by history "undo" or a new one with a specific index
parentNode | Node that we want to dock to. |
dockIndex | Node's index to insert. |
fromHistory | Wheter it's recovered from history Undo/Redo. |
|
inline |
Returns true if this node is already linked through a connector to the other node, false if it isn't connected.
|
inline |
Gets the depth of a docked node inside the stack that it's in.
dockedNode | Node that we want to calculate the depth of. |
|
inline |
Get the current Highlighter Color.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Implements the IPointerClickHandler event.
eventData |
|
inline |
Place the node at a canvas world relative position
position |
|
inline |
Place the node at a canvas world relative position
position | |
baseNodeIcon | The MEGUINodeIcon for this MEGUINode; or Null if there isn't one. |
|
inline |
Add the paste nodes to the undo action history
|
inline |
Delete and un link all the connectors for this node
|
inline |
Removes a line from the lines connections list
line | |
type |
|
inline |
Select this node
deselectOtherNodes | set this to true to deselect any other selected nodes |
bypassNodeSelection | set this to true to not fire the change of the currently selected node. Used for pasting multiple nodes and not generating SAP redraws primarliy |
|
inline |
Set the Nodes End visuals
setNode | |
initialize |
|
inline |
Turn on the highlighter with the specifed color
color | Color to highlight in |
|
inline |
Set the logic node that is used in this GUINode
node |
|
inline |
Updates the node color and associated bits using the current color
|
inline |
Set/changes the node header color and associated items
color |
|
inline |
Set/changes the node title string
title |
|
inlineprotectedvirtual |
|
inline |
Initialise all the information pertaining to docking for this node.
|
inline |
Turn on the Validity Indicators
node | The node to affect |
message | The message for the tooltip |
|
inline |
Toggle the Highlighter to other state
|
inline |
Toggle the highlighter visibility to that passed in
state | New state |
|
inline |
|
inline |
|
inline |
|
inline |
Undock myself from a node.
|
inline |
|
inline |
Checks and updates the dock index of this node
|
inline |
Update the input connector image depending on the current state.
|
inline |
Update the input connector image depending on the current state.
RectTransform Expansions.Missions.Editor.MEGUINode.dockedNodesParentTransform |
When logic nodes are docked to this node, they parent to this transform.
MEGUINode Expansions.Missions.Editor.MEGUINode.dockedParentNode |
This is the node that I am docked to.
|
protected |
Image Expansions.Missions.Editor.MEGUINode.headerImage |
Image used for the header. Used to change the colour of the header.
Button Expansions.Missions.Editor.MEGUINode.inputConnectorButton |
RectTransform Expansions.Missions.Editor.MEGUINode.InputOutputGroup |
bool Expansions.Missions.Editor.MEGUINode.isSelected |
Node has been selected in the mission editor
MEGUINodeBodyParameter Expansions.Missions.Editor.MEGUINode.nodeBodyParameterPrefab |
Prefab used to instantiate the node body parameters.
int Expansions.Missions.Editor.MEGUINode.numberOfParametersToDisplayWhenMinimised = 1 |
Number of node body parameters to display when the minimise button is clicked
Button Expansions.Missions.Editor.MEGUINode.outputConnectorButton |
Transform Expansions.Missions.Editor.MEGUINode.ParameterListTransform |
TextMeshProUGUI Expansions.Missions.Editor.MEGUINode.title |
Button Expansions.Missions.Editor.MEGUINode.toggleParametersButton |
|
get |
This is a reference to the MEBasicNode that this MEGUINode is based from.
|
get |
|
getset |
|
getset |
The object that underpins this graphical representation
|
getset |
|
getset |
System.Action<MEGUINode> Expansions.Missions.Editor.MEGUINode.DockStatusChange = (node) => { } |
Triggered when the dock status of this node changes