Rewrote assertions

This commit is contained in:
2023-11-01 21:48:10 -05:00
parent ab1d39aa57
commit c5cfc31436
12 changed files with 146 additions and 133 deletions

View File

@ -39,7 +39,7 @@ void UIRichTextLabel::onStart() {
bufferTexts.push_back(text);
} else if(child.nodeType == XML_NODE_TYPE_ELEMENT) {
auto node = child.child;
assertTrue(node->node == "font", "UIRichTextLabel::onStart: Unknown node type '" + node->node + "'");
assertTrue(node->node == "font", "UIRichTextLabel::onStart: Unknown node type '%s'", node->node.c_str());
struct UILabelStyle style;
if(node->attributes.contains("font")) {