mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
19 lines
346 B
Ruby
19 lines
346 B
Ruby
$MKXP = !!defined?(System)
|
|
|
|
def mkxp?
|
|
return $MKXP
|
|
end
|
|
|
|
def pbSetWindowText(string)
|
|
System.set_window_title(string || System.game_title)
|
|
end
|
|
|
|
class Bitmap
|
|
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
|