diff --git a/TODO.md b/TODO.md index 8829a07..abea286 100644 --- a/TODO.md +++ b/TODO.md @@ -17,7 +17,7 @@ - [x] Console rendering issues - [ ] DOM tree rendering issues -- [ ] Inconsistent text formatting +- [x] Inconsistent text formatting ### Dialogue diff --git a/src/components/DialogueBoxComponent.hx b/src/components/DialogueBoxComponent.hx index 32edb1c..273aaa4 100644 --- a/src/components/DialogueBoxComponent.hx +++ b/src/components/DialogueBoxComponent.hx @@ -211,7 +211,7 @@ class DialogueBoxComponent extends h2d.Flow implements h2d.domkit.Object { Game.current.globalEventBus.publishEvent(new NextLine()); else if (textPos < internalText.length) { textPos = internalText.length; - displayedText = internalText; + displayedText = applyTextAttributes(internalText); updateText(); }; }