Skip to content

<label>

A label can be used to display text. It can have a link and be localized.

Attributes

pos="X Y Z"

Classic positioning, available for backwards compatibility

posn="X Y Z"

Modern positioning

size="width height"

Classic sizing, available for backwards compatibility

sizen="width height"

Modern sizing

scale="factor"

Element scale, a scale of 2 doubles the size.

halign="left|center|right"

Horizontal Aligment

valign="top|center|bottom"

Vertical Aligment

text="Hello"

The text to display, it supports all text formatting options. Word-wraps are preserved.

autonewline="1"

This attribute enables automatic word-wrap if text overflows. If set to 0, overflowing text will be cut off instead.

maxline="Number"

Controls how many lines this <label> can occupy.

url="https://google.com"

Links to an external page. Clicking minimizes the game and opens the default browser.

Note

You can only use either url, manialink or maniazones

Links to a ManiaLink, either linked or by URL.

Note

You can only use either url, manialink or maniazones

maniazones="ManiaZone"

Links to a ManiaZone

Note

You can only use either url, manialink or maniazones

addplayerid="1"

Adds additional playerdata to the URL as a query parameter.

Parameter Example Description
playerlogin nadeo The players login name
lang en The players language
nickname $f00Nadeo The players nickname (with styling)
path World/Germany/Bavaria/Nuremberg The players leaderboard location

Warning

This data can be manipulated by the player. More information

textsize="Number"

The size of the text.

textcolor="RGBA"

A color used for the text color.

style="StyleName"

A predefined style. Only text styles can be used.

Examples

<label
    posn="-30 -20 5"
    halign="center"
    style="CardButtonMedium"
    text="$o$008White Button with darkblue Font"
/>