mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Fixed text positioning and removed individual character offsets
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user