From 144ad91bc16392f6fe1e9e83b0ceb96d44cbed9e Mon Sep 17 00:00:00 2001 From: Maruno17 Date: Mon, 18 Apr 2022 21:16:46 +0100 Subject: [PATCH] Fixed icons in messages being misaligned --- Data/Scripts/007_Objects and windows/010_DrawText.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/Data/Scripts/007_Objects and windows/010_DrawText.rb b/Data/Scripts/007_Objects and windows/010_DrawText.rb index 7feaa0a7e..f3dc1b561 100644 --- a/Data/Scripts/007_Objects and windows/010_DrawText.rb +++ b/Data/Scripts/007_Objects and windows/010_DrawText.rb @@ -606,6 +606,7 @@ def getFormattedText(bitmap, xDst, yDst, widthDst, heightDst, text, lineheight = width = graphicWidth # +8 # No padding xStart = 0 # 4 yStart = [(lineheight / 2) - (graphicHeight / 2), 0].max + yStart += 4 # TEXT OFFSET graphicRect = Rect.new(graphicX, graphicY, graphicWidth, graphicHeight) else xStart = 0