Window animations & tags instead of classes

This commit is contained in:
Luke Street
2026-04-30 20:55:14 -06:00
parent dca3e2eba6
commit 8aa08c9443
17 changed files with 141 additions and 98 deletions
+3 -3
View File
@@ -6,17 +6,17 @@
namespace dusk::ui {
namespace {
Rml::ElementDocument* load_document(const Rml::String& path) {
Rml::ElementDocument* load_document(const Rml::String& source) {
auto* context = aurora::rmlui::get_context();
if (context == nullptr) {
return nullptr;
}
return context->LoadDocument(path);
return context->LoadDocumentFromMemory(source);
}
} // namespace
Document::Document(const Rml::String& path) : mDocument(load_document(path)) {
Document::Document(const Rml::String& source) : mDocument(load_document(source)) {
listen(Rml::EventId::Keydown, [this](Rml::Event& event) {
const auto cmd = map_nav_event(event);
if (cmd != NavCommand::None && handle_nav_command(event, cmd)) {