From 2a63c748f1bb0851565d767c51d33c5f25dc7242 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Fri, 23 Feb 2024 11:58:53 -0300 Subject: [PATCH] Fix a bug --- TODO.md | 2 +- src/components/DialogueBoxComponent.hx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); }; }