mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-10-31 21:00:51 +01:00
Fixed bold and italic formatting code closing tags working on each other
This commit is contained in:
parent
62ef75441a
commit
0c5369e687
3 changed files with 8 additions and 1 deletions
|
@ -31,6 +31,7 @@ Fixes
|
|||
- Fixed TextInput not working correctly when using surrogate pairs
|
||||
- Fixed InputHandler touch states being initialized incorrectly when touch handling is disabled
|
||||
- Fixed empty NinePatch regions stalling when using tile mode
|
||||
- Fixed bold and italic formatting code closing tags working on each other
|
||||
|
||||
### MLEM.Ui
|
||||
Additions
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace Demos {
|
|||
|
||||
private const string Text =
|
||||
"MLEM's text formatting system allows for various <b>formatting codes</b> to be applied in the middle of a string. Here's a demonstration of some of them.\n\n" +
|
||||
"You can write in <b>bold</i>, <i>italics</i>, <u>with an underline</u>, <st>strikethrough</st>, with a <s>drop shadow</s> whose <s #ff0000 4>color</s> and <s #000000 10>offset</s> you can modify in each application of the code, with an <o>outline</o> that you can also <o #ff0000 4>modify</o> <o #ff00ff 2>dynamically</o>, or with various types of <b>combined <c Pink>formatting</c> codes</b>.\n\n" +
|
||||
"You can write in <b>bold</b>, <i>italics</i>, <u>with an underline</u>, <st>strikethrough</st>, with a <s>drop shadow</s> whose <s #ff0000 4>color</s> and <s #000000 10>offset</s> you can modify in each application of the code, with an <o>outline</o> that you can also <o #ff0000 4>modify</o> <o #ff00ff 2>dynamically</o>, or with various types of <b>combined <c Pink>formatting</c> codes</b>.\n\n" +
|
||||
"You can apply <c CornflowerBlue>custom</c> <c Yellow>colors</c> to text, including all default <c Orange>MonoGame colors</c> and <c #aabb00>inline custom colors</c>.\n\n" +
|
||||
"You can also use animations like <a wobbly>a wobbly one</a>, as well as create custom ones using the <a wobbly>Code class</a>.\n\n" +
|
||||
"You can also display <i grass> icons in your text, and use super<sup>script</sup> or sub<sub>script</sub> formatting!\n\n" +
|
||||
|
|
|
@ -18,5 +18,11 @@ namespace MLEM.Formatting.Codes {
|
|||
return this.font?.Invoke(defaultPick);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public override bool EndsHere(Code other) {
|
||||
// turning a string bold/italic should only end when that specific code is ended using SimpleEndCode
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue