Mods: Add toasts to UiService (#2252)

This commit is contained in:
Luke Street
2026-07-30 00:28:08 -06:00
committed by GitHub
parent 7305ef09b9
commit 4504e5009f
5 changed files with 62 additions and 3 deletions
+3
View File
@@ -71,6 +71,9 @@ Rml::Element* create_toast(Rml::Element* parent, const Toast& toast) {
}
auto* elem = append(parent, "toast");
if (!toast.modId.empty()) {
elem->SetAttribute("mod-id", toast.modId);
}
if (!toast.type.empty()) {
elem->SetClass(toast.type, true);
}