Table of Contents

Class Paragraph.Link

Namespace
MLEM.Ui.Elements
Assembly
MLEM.Ui.dll

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, IDisposable
Inheritance
Paragraph.Link
Implements
Inherited Members
Extension Methods

Constructors

Creates a new link element with the given settings

public Link(Anchor anchor, Token token, float textScale)

Parameters

anchor Anchor

The link's anchor

token Token

The token that this link represents

textScale float

The scale that text is rendered with

Fields

The token that this link represents

public readonly Token Token

Field Value

Token

Methods

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()

Returns the element under the given position, searching the current element and all of its GetRelevantChildren().

public override Element GetElementUnderPos(Vector2 position)

Parameters

position Vector2

The position to query

Returns

Element

The element under the position, or null if no such element exists