- Joined
- Jun 15, 2014
- Messages
- 245
- Reaction score
- 43
- First Language
- English Spanish
- Primarily Uses
- RMMV
Hi all!!
I want to load an image on a specific window, in this case, on the Status window (Scene_Status). I have the following code as my function:
And then I call it when you press PGup or PGdown on Scene_Status (cycle actors):
But I get this error attached:.
It is worth mentioning im using Yanfly status menu core and im calling the drawPicture function from there.
Thank you.
I want to load an image on a specific window, in this case, on the Status window (Scene_Status). I have the following code as my function:
Code:
Scene_Status.prototype.drawPicture = function(filename, x, y) {
var bitmap = ImageManager.loadPicture(filename);
this.contents.blt(bitmap, 0, 0, bitmap.width, bitmap.height, x, y);
};
And then I call it when you press PGup or PGdown on Scene_Status (cycle actors):
Code:
Scene_Status.prototype.setCommandWindowHandlers = function() {
this._commandWindow.setHandler('cancel', this.popScene.bind(this));
this._commandWindow.setHandler('pagedown', this.nextActor.bind(this));
this._commandWindow.setHandler('pageup', this.previousActor.bind(this));
this.drawPicture("Loading", 0, 0)
};
But I get this error attached:.
It is worth mentioning im using Yanfly status menu core and im calling the drawPicture function from there.
Thank you.