From 0029bfe825c5a613bb557589de746dd35d875cba Mon Sep 17 00:00:00 2001 From: m3rein Date: Wed, 9 Sep 2020 17:00:47 +0200 Subject: [PATCH] More line spacing tweaks --- Data/Scripts/009_Objects and windows/006_DrawText.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Data/Scripts/009_Objects and windows/006_DrawText.rb b/Data/Scripts/009_Objects and windows/006_DrawText.rb index af0e68680..396fdbfbc 100644 --- a/Data/Scripts/009_Objects and windows/006_DrawText.rb +++ b/Data/Scripts/009_Objects and windows/006_DrawText.rb @@ -1112,8 +1112,9 @@ end def pbDrawShadowText(bitmap,x,y,width,height,string,baseColor,shadowColor=nil,align=0) return if !bitmap || !string - width=(width<0) ? bitmap.text_size(string).width+4 : width - height=(height<0) ? bitmap.text_size(string).height+4 : height + width=(width<0) ? bitmap.text_size(string).width+1 : width + height=(height<0) ? bitmap.text_size(string).height+1 : height + y = y + (mkxp? ? -2 : 0) if shadowColor && shadowColor.alpha>0 bitmap.font.color=shadowColor bitmap.draw_text(x+2,y,width,height,string,align) @@ -1130,6 +1131,7 @@ def pbDrawOutlineText(bitmap,x,y,width,height,string,baseColor,shadowColor=nil,a return if !bitmap || !string width=(width<0) ? bitmap.text_size(string).width+4 : width height=(height<0) ? bitmap.text_size(string).height+4 : height + y = y + (mkxp? ? 4 : 0) if shadowColor && shadowColor.alpha>0 bitmap.font.color=shadowColor bitmap.draw_text(x-2,y-2,width,height,string,align)