This class is responsible of comments within the UI.
A comment allows the user to add text information to scenario.
Inheritance
Focusable
CommentUI
Assembly: Xareus.Scenarios.Unity.Edition.dll
public class CommentUI : AMovableElementUI
Constructors
Declaration
public CommentUI(CanvasUI canvas, Comment comment)
Parameters
Properties
Declaration
public Comment Comment { get; }
Property Value
The data associated with this UI element. This can be null if the element is based on other elements' data.
Declaration
public override object Data { get; }
Property Value
Overrides
Id.
Cannot be modified after initialization
Declaration
public override string Id { get; }
Property Value
Overrides
Indicates if the comment is folded or not.
Shortcut to business data
Declaration
public bool IsFolded { get; set; }
Property Value
Position in the business space
Declaration
public override Vector2 Position { get; set; }
Property Value
Overrides
Methods
Declaration
public override void DeleteUIElement()
Overrides
Declaration
protected override string OnLabelGet()
Returns
Overrides
Declaration
protected override void OnMouseDown(MouseDownEvent evt)
Parameters
Overrides
Declaration
protected override void OnMouseUp(MouseUpEvent evt)
Parameters
Overrides
Declaration
protected override void OpenContextMenu(ContextualMenuPopulateEvent evt)
Parameters
Overrides
Emits a label changed command.
Is triggered when the comment label is changed.
Declaration
protected override void SetLabel(string label)
Parameters
Type |
Name |
Description |
string |
label |
|
Overrides
Declaration
protected override void UpdatePosition()
Overrides