RML Documents: Difference between revisions

MjnMixael (talk | contribs)
Created page with "{{RML}} RML documents have this basic structure. ==<rml>== All libRocket documents begin with the <rml> element. The element should contain two children, <head> and <body>. <p..."
 
MjnMixael (talk | contribs)
Replaced content with "{{SCPUI moved|https://github.com/MjnMixael/SCPUI/wiki/RML-Documents}}"
Tag: Replaced
 
Line 1: Line 1:
{{RML}}
{{SCPUI moved|https://github.com/MjnMixael/SCPUI/wiki/RML-Documents}}
RML documents have this basic structure.
==<rml>==
All libRocket documents begin with the <rml> element. The element should contain two children, <head> and <body>.
<pre>
<rml>
<head>
...
</head>
<body>
...
</body>
</rml>
</pre>
===<head>===
The <head> element contains information about the current document, such as its title, style and template information is references. No information in the header is rendered.
 
===<title>===
The <title> element contains the title of the document. This is often used for the specifying the contents of the title bar of a game window.
 
===<link>===
The <link> element is used to specify additional resources the document requires.
 
====Attributes====
=====type=====
*Type of link, which should be one of:
*text/rcss - libRocket Style Sheet Specification
*text/template - libRocket Template
*text/script - libRocket script
=====href=====
*Specifies the source URI, relative to the document being parsed.
 
===<body>===
The body of a document contains the document’s content. All elements within the <body> tag is laid out and rendered by libRocket based on the active style sheets.

Latest revision as of 18:31, 28 October 2026

This page has moved. SCPUI documentation now lives on the SCPUI GitHub wiki.
See the new version of this page. The old content is still available in this page's history.