From d56dcd70320f2ffae844272e27728e0b978f8fbe Mon Sep 17 00:00:00 2001 From: m3rein Date: Mon, 7 Sep 2020 16:57:51 +0200 Subject: [PATCH] Tweaked line spacing --- Data/Scripts/009_Objects and windows/006_DrawText.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Data/Scripts/009_Objects and windows/006_DrawText.rb b/Data/Scripts/009_Objects and windows/006_DrawText.rb index 8defb9f3e..af0e68680 100644 --- a/Data/Scripts/009_Objects and windows/006_DrawText.rb +++ b/Data/Scripts/009_Objects and windows/006_DrawText.rb @@ -906,7 +906,7 @@ def getLineBrokenChunks(bitmap,value,width,dims,plain=false) if ccheck=="\n" x=0 # y+=(textheight==0) ? bitmap.text_size("X").height : textheight - y+=(textheight==0) ? bitmap.text_size("X").height+1 : textheight + y+=(textheight==0) ? bitmap.text_size("X").height + 1 + (mkxp? ? 6 : 0) : textheight textheight=0 next end @@ -928,12 +928,12 @@ def getLineBrokenChunks(bitmap,value,width,dims,plain=false) if x>0 && x+minTextSize.width>width x=0 # y+=32 # (textheight==0) ? bitmap.text_size("X").height : textheight - y+=(textheight==0) ? bitmap.text_size("X").height+1 : textheight + y+=(textheight==0) ? bitmap.text_size("X").height + 1 + (mkxp? ? 6 : 0) : textheight textheight=0 end end # textheight=32 # [textheight,textSize.height].max - textheight=[textheight,textSize.height+1].max + textheight=[textheight,textSize.height + 1 + (mkxp? ? 6 : 0)].max ret.push([word,x,y,textwidth,textheight,color]) x+=textwidth dims[0]=x if dims && dims[0]