Mission expansion line connector, this uses vectoricy to draw a line between to MEGUINodes
More...
|
void | MakeCurveType1 (Vector2 point, float deltaX, float deltaY, ref int index) |
| Generates the points to make a curve from horizontal to vertical More...
|
|
void | MakeCurveType2 (Vector2 point, float deltaX, float deltaY, ref int index) |
| Generate the points to make a curve from vertical to horizontal More...
|
|
Mission expansion line connector, this uses vectoricy to draw a line between to MEGUINodes
void Expansions.Missions.Editor.MEGUIConnector.Activate |
( |
| ) |
|
|
inline |
Activate this connector and restore all it's references with the nodes and the editor
void Expansions.Missions.Editor.MEGUIConnector.CleanUp |
( |
| ) |
|
|
inline |
void Expansions.Missions.Editor.MEGUIConnector.ConnectLogic |
( |
| ) |
|
|
inline |
Connect the inner MENode from the UI Connection
IEnumerator Expansions.Missions.Editor.MEGUIConnector.DelayedUpdateLine |
( |
| ) |
|
|
inline |
void Expansions.Missions.Editor.MEGUIConnector.Deselect |
( |
| ) |
|
|
inline |
void Expansions.Missions.Editor.MEGUIConnector.Destroy |
( |
| ) |
|
|
inline |
Disable this connector and remove all it's references with the nodes and the editor
void Expansions.Missions.Editor.MEGUIConnector.DisconnectLogic |
( |
| ) |
|
|
inline |
Disconnect the innter MENode from the UI Connection
MEGUINode Expansions.Missions.Editor.MEGUIConnector.GetConnectedNode |
( |
| ) |
|
|
inline |
ConfigNode Expansions.Missions.Editor.MEGUIConnector.GetState |
( |
| ) |
|
|
inline |
void Expansions.Missions.Editor.MEGUIConnector.HideLine |
( |
| ) |
|
|
inline |
Hides the line connector by setting the alpha value to 0
bool Expansions.Missions.Editor.MEGUIConnector.IsConnectedToNode |
( |
MEGUINode |
node | ) |
|
|
inline |
void Expansions.Missions.Editor.MEGUIConnector.MakeCurveType1 |
( |
Vector2 |
point, |
|
|
float |
deltaX, |
|
|
float |
deltaY, |
|
|
ref int |
index |
|
) |
| |
|
inlineprotected |
Generates the points to make a curve from horizontal to vertical
- Parameters
-
point | Point where the line blends |
deltaX | The delta x size between the two points that can affect the curve size |
deltaY | The delta y size between the two points that can affect the curve size |
index | Start point index in the line points array |
void Expansions.Missions.Editor.MEGUIConnector.MakeCurveType2 |
( |
Vector2 |
point, |
|
|
float |
deltaX, |
|
|
float |
deltaY, |
|
|
ref int |
index |
|
) |
| |
|
inlineprotected |
Generate the points to make a curve from vertical to horizontal
- Parameters
-
point | Point where the line blends |
deltaX | The delta x size between the two points that can affect the curve size |
deltaY | The delta y size between the two points that can affect the curve size |
index | Start point index in the line points array |
void Expansions.Missions.Editor.MEGUIConnector.Select |
( |
| ) |
|
|
inline |
void Expansions.Missions.Editor.MEGUIConnector.SetUpConnector |
( |
Canvas |
screenCanvas, |
|
|
RectTransform |
contentTransform, |
|
|
MissionEditorLogic |
missionEditorLogic |
|
) |
| |
|
inline |
Set up a new MEGUIConnector
- Parameters
-
screenCanvas | |
scrollMask | |
contentTransform | |
missionEditorLogic | |
void Expansions.Missions.Editor.MEGUIConnector.UpdateLine |
( |
| ) |
|
|
inline |
bool Expansions.Missions.Editor.MEGUIConnector.WasMouseClickWithinTolerance |
( |
Vector2 |
clickPosition, |
|
|
float |
acceptableDistanceForLineCheck |
|
) |
| |
|
inline |
VectorLine Expansions.Missions.Editor.MEGUIConnector.connectionLine |
|
protected |
float Expansions.Missions.Editor.MEGUIConnector.curveArcSize = 15.0f |
Size of the curve in line segments
int Expansions.Missions.Editor.MEGUIConnector.curveSegments = 5 |
Number of points used in the line curves
MEGUINode Expansions.Missions.Editor.MEGUIConnector.fromNode |
Node where the line starts from
bool Expansions.Missions.Editor.MEGUIConnector.isSelected |
Has the node been selected by the editor user?
float Expansions.Missions.Editor.MEGUIConnector.lineExtendFromConnectorDistance = 25.0f |
Distance that the line will extend from a node before bending
float Expansions.Missions.Editor.MEGUIConnector.normalLineWidth = 4.0f |
Thickness of the line when it's not selected
float Expansions.Missions.Editor.MEGUIConnector.selectedLineWidth = 8.0f |
Thickness of the line when it's selected
MEGUINode Expansions.Missions.Editor.MEGUIConnector.toNode |
Node where the line ends
4
Color Expansions.Missions.Editor.MEGUIConnector.LineColour |
|
getset |
The documentation for this class was generated from the following file:
- KSP/Assets/Expansions/Missions/_UI5/Screens/MissionEditorScreen/Scripts/MEGUIConnector.cs