Fixed text positioning and removed individual character offsets

This commit is contained in:
m3rein
2020-09-11 16:32:04 +02:00
parent c732b35931
commit 8da6ef64a3
5 changed files with 23 additions and 37 deletions

View File

@@ -4,13 +4,6 @@ def mkxp?
return $MKXP
end
CHARACTER_OFFSETS = {
"p" => [0, 2],
"g" => [0, 2],
"y" => [0, 2],
"q" => [0, 2]
}
def pbSetWindowText(string)
if mkxp?
System.set_window_title(string || System.game_title)
@@ -18,3 +11,13 @@ def pbSetWindowText(string)
Win32API.SetWindowText(string || "RGSS Player")
end
end
class Bitmap
if mkxp?
alias mkxp_draw_text draw_text
def draw_text(x, y, width, height, text, align = 0)
height = text_size(text).height
mkxp_draw_text(x, y, width, height, text, align)
end
end
end