Skip to content

<entry>

The <entry> element is the ManiaLink equivalent of an <input> in HTML. It allows arbitrary user input. Any data will be appended to the next navigation as a query parameter, static ManiaLink's therefore are not able to respond to player input.

Warn

<entry> elements always hold data as a string. Any syntax checking must be done server-side.

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

name="EntryName"

The name for this entry. While not technically unique, subsequent <entry> elements with the same name will overwrite any data. This name will be the query parameters key.

default="value"

The default value of this entry. It will be the query parameters value if unchanged.

autonewline="1"

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

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

<frame>
    <entry posn="15 -8 5" sizen="5 2" style="TextValueSmall" name="inputvalue" default="42" />
    <label posn="15 -1 -12 5" style="CardButtonMedium" text="Link with value" url="http://site.php?value=inputvalue" />
</frame>