Expand XCUI layout lab editor widgets
This commit is contained in:
@@ -388,6 +388,15 @@ void EmitNode(
|
||||
++stats.textCommandCount;
|
||||
}
|
||||
|
||||
if (tagName == "Button" && title.empty() && subtitle.empty()) {
|
||||
drawList.AddText(
|
||||
UIPoint(node.rect.x + 12.0f, node.rect.y + 12.0f),
|
||||
ResolveNodeText(source),
|
||||
ToUIColor(Color(0.95f, 0.97f, 1.0f, 1.0f)),
|
||||
kDefaultFontSize);
|
||||
++stats.textCommandCount;
|
||||
}
|
||||
|
||||
for (const RuntimeLayoutNode& child : node.children) {
|
||||
EmitNode(child, drawList, stats);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user