Class Paragraph.Link
A link is a sub-element of the Paragraph that is added onto it as a child for any tokens that contain LinkCode, to make them selectable and clickable.
public class Paragraph.Link : Element, IGenericDataHolder
- Inheritance
-
Paragraph.Link
- Implements
- Inherited Members
- Extension Methods
Constructors
Link(Anchor, Token, float)
Creates a new link element with the given settings
public Link(Anchor anchor, Token token, float textScale)
Parameters
anchor
AnchorThe link's anchor
token
TokenThe token that this link represents
textScale
floatThe scale that text is rendered with
Fields
Token
The token that this link represents
public readonly Token Token
Field Value
Methods
ForceUpdateArea()
Forces this element's Area to be updated if it is not IsHidden. This method also updates all of this element's Children's areas.
public override void ForceUpdateArea()
GetElementUnderPos(Vector2)
Returns the element under the given position, searching the current element and all of its GetRelevantChildren().
public override Element GetElementUnderPos(Vector2 position)
Parameters
position
Vector2The position to query
Returns
- Element
The element under the position, or null if no such element exists