Class NodeUI
Base class for any UI element that represents a native scenario element in the scenario editor
Inheritance
Focusable
NodeUI
Assembly: Xareus.Scenarios.Unity.Edition.dll
Syntax
public abstract class NodeUI : AMovableElementUI
Constructors
NodeUI(CanvasUI, Identifiable)
Declaration
protected NodeUI(CanvasUI canvas, Identifiable identifiable)
Parameters
Properties
Arcs
Declaration
public List<ArcUI> Arcs { get; }
Property Value
CanHaveAnotherDownstreamNode
Declaration
public virtual bool CanHaveAnotherDownstreamNode { get; }
Property Value
Id
Id.
NOTE : Cannot be modified after initialization
Declaration
public override string Id { get; }
Property Value
Overrides
Identifiable
Declaration
public Identifiable Identifiable { get; }
Property Value
Position
Position of the node in the business space
Declaration
public override Vector2 Position { get; set; }
Property Value
Overrides
Methods
AddArc(ArcUI)
Declaration
public void AddArc(ArcUI arc)
Parameters
Type |
Name |
Description |
ArcUI |
arc |
|
DrawLabel()
Declaration
protected override void DrawLabel()
Overrides
GetArcPreviewUI(CanvasUI, object)
Declaration
public virtual ArcPreviewUI GetArcPreviewUI(CanvasUI canvas, object parameters = null)
Parameters
Returns
GetArcUI(CanvasUI, NodeUI)
Declaration
public virtual ArcUI GetArcUI(CanvasUI canvas, NodeUI destinationUI)
Parameters
Returns
OnArcStarted(ArcStartedEvent)
Declaration
protected virtual void OnArcStarted(ArcStartedEvent args)
Parameters
OnLabelGet()
Declaration
protected override string OnLabelGet()
Returns
Overrides
Declaration
protected override void OpenContextMenu(ContextualMenuPopulateEvent evt)
Parameters
Overrides
RemoveArc(ArcUI)
Declaration
public void RemoveArc(ArcUI arc)
Parameters
Type |
Name |
Description |
ArcUI |
arc |
|
SetLabel(string)
Declaration
protected override void SetLabel(string label)
Parameters
Type |
Name |
Description |
string |
label |
|
Overrides
Events
ArcStarted
Declaration
public event EventHandler<ArcStartedEvent> ArcStarted
Event Type