From 728e2a53f225a0d71d48d6ee4dfa9317810eb5cc Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sun, 17 May 2020 14:26:45 +0200 Subject: [PATCH] fixed font formatting codes not having priority --- Demos/UiDemo.cs | 8 ++++---- MLEM/Formatting/Token.cs | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Demos/UiDemo.cs b/Demos/UiDemo.cs index 1c112da..b1f7f7a 100644 --- a/Demos/UiDemo.cs +++ b/Demos/UiDemo.cs @@ -184,18 +184,18 @@ namespace Demos { var children = this.root.GetChildren(); var totalChildren = this.root.GetChildren(regardGrandchildren: true); - this.root.AddChild(new Paragraph(Anchor.AutoLeft, 1, $"The root has [Bold]{children.Count()}[Regular] children, but there are [Bold]{totalChildren.Count()}[Regular] when regarding children's children")); + this.root.AddChild(new Paragraph(Anchor.AutoLeft, 1, $"The root has {children.Count()} children, but there are {totalChildren.Count()} when regarding children's children")); var textFields = this.root.GetChildren(); - this.root.AddChild(new Paragraph(Anchor.AutoLeft, 1, $"The root has [Bold]{textFields.Count()}[Regular] text fields")); + this.root.AddChild(new Paragraph(Anchor.AutoLeft, 1, $"The root has {textFields.Count()} text fields")); var paragraphs = this.root.GetChildren(); var totalParagraphs = this.root.GetChildren(regardGrandchildren: true); - this.root.AddChild(new Paragraph(Anchor.AutoLeft, 1, $"The root has [Bold]{paragraphs.Count()}[Regular] paragraphs, but there are [Bold]{totalParagraphs.Count()}[Regular] when regarding children's children")); + this.root.AddChild(new Paragraph(Anchor.AutoLeft, 1, $"The root has {paragraphs.Count()} paragraphs, but there are {totalParagraphs.Count()} when regarding children's children")); var autoWidthChildren = this.root.GetChildren(e => e.Size.X == 1); var autoWidthButtons = this.root.GetChildren