Skip to content

About

A GDExtension for rendering and manipulating documents using RmlUi

Resources

Stars

28 stars

Watchers

1 watching

Forks

Repository files navigation

Godot RmlUi

Godot RmlUi logo

A GDExtension for rendering and manipulating documents using RmlUi.

Supports Godot version 4.5+

Platforms

  • Linux
  • Windows
  • Android (todo)

Getting Started

Download the addon from releases pages, or head over to Building Tutorial to build the GDExtension locally.

A new Control-based node is added: RMLDocument, add it to your scene to create a new document.

By default, this node creates an empty document where you can add, remove and modify elements. If you want to load a .rml document instead, use load_from_path, for example:

<!-- res://test.rml -->
<rml>
<body>
	<span>Hello!</span>
	<button>Test Button</button>
	<svg src="icon.svg"/>
	<input type="text"/>
</body>
</rml>
extends RMLDocument

func _ready() -> void:
	load_from_path("res://test.rml")

Supported features

  • Document creation and manipulation with RMLDocument node;
    • Can also create and manipulate documents directly through RMLServer.
  • Element reference with RMLElement class;
  • query_selector and query_selector_all to finding elements in the document;
  • Element inner RML, text content, attributes, style properties, class names and id;
  • Full event integration, as well listening to RmlUi's issued events through add_event_listener;
  • Full style support with RCSS;
  • User-agent style for basic element presentation and style based on Godot's theme;
    • Optional, can set project setting RmlUi/load_user_agent_stylesheet to false;
    • Can also override with project setting RmlUi/custom_user_agent_stylesheet;

Documentation

Head over to documentation page for the class reference and more tutorials on how to use this addon.

Thirdparty

See thirdparty README

About

A GDExtension for rendering and manipulating documents using RmlUi

Resources

Stars

28 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages