bitmap.draw_text(x, y, width, height, text, align)
bitmap.draw_text(rect, text, align)
class Bitmap
alias draw_shadow draw_text
def draw_text(x, y, w, h, string, align = 0, shadow = false)
if shadow
col = self.font.color.clone
self.font.color = Color.new(0, 0, 0)
draw_shadow(x + 1, y + 1, w, h, string, align)
self.font.color = col
end
draw_shadow(x, y, w, h, string, align)
end
end
def draw_text(*args)
if args[0].is_a?(Rect)
draw_shadow(args[0].x, args[0].y, args[0].width, args[0].height, args[1], args[2])
elsif args[0].is_a?(Integer)
draw_shadow(args[0], args[1], args[2], args[3], args[4], args[5])
end
end