In VX I came across a few lines of code that allowed me to draw a picture with the pictures name, x and y for its arguments. I'm trying to bring this over into VX Ace but, obviously, the cut and paste method doesn't work. I was wondering if anyone could look at the chunk of code and point me in the right direct. Any help is appreciated.
Code from VX:
Spoiler
class Window_Base < Window
def draw_picture(picture_name, x, y)
bitmap = Cache.picture(picture_name)
self.contents.blt(x, y, bitmap, bitmap.rect)
end
end
def draw_picture(picture_name, x, y)
bitmap = Cache.picture(picture_name)
self.contents.blt(x, y, bitmap, bitmap.rect)
end
end
Code:

