@doranikofu
Hey, thank you! I'm in need of this.
Yet, I don't know where to place these lines. In my code I did it in a way that I call the scene again and then pop it out. I wish I could make it the right way. Looking at my code, what do you think I should do?
//////////////////////////THE IMAGE I WANT////////////////////////////////Window_SavefileStatus.prototype.drawScreenshot = function(info, x, y) { if (info && info.characters) { var bitmap = ImageManager.loadScreenShots(info.screen); if (info.screen == undefined || info.screen == null) { } else { this.contents.blt(bitmap, 0, 0, bitmap._canvas.width, bitmap._canvas.height, Graphics.boxWidth - 299, 5, 256, 143); } } }; ////OTHER INFOS AND WHERE I WANT//// ImageManager.loadScreenShots = function(filename, hue) { return this.loadBitmap('img/Screenshots/', filename, hue, true); }; Window_SavefileStatus.prototype.drawContents = function(info, rect, valid) { var bottom = rect.y + rect.height; if (valid) { this.drawPartyCharacters(info, rect.x + 25, 140); if (Utils.isNwjs()) { this.drawScreenshot(info, Graphics.boxWidth - 299, 5); } else { // var bitmap = ImageManager.loadScreenShots(info.map_id); // this.contents.blt(bitmap, 0, 0, bitmap._canvas.width, bitmap._canvas.height, Graphics.boxWidth - 299, 5, 256, 143); } } var playtimeY = bottom - this.lineHeight(); this.drawText('Localização:' + ' ' + info.location, -6, 157, rect.width, 'right'); this.drawText('Tempo:' + ' ' + info.playtime, 6, 35, rect.width, 'left'); this.drawText('Grana:' + ' ' + info.gold, 6, 157, rect.width, 'left'); OLDscreen = info.screen; ///AQUI protectchecking = info.protect; };simply add this before your blt function:
bitmap.addLoadListener(function() {
and add this after your blt:
}.bind(this));