mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-17 12:39:27 -04:00
Mods: Add toasts to UiService (#2252)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user