New account registration is temporarily disabled.

[RMMZ] SAVE LIST BACKGROUND

Posts

Pages: 1
Hi guys i hope you can help me, i am new at js.
After reading all the .js files, i successfully modified scene_file, as i needed to. My problem is, i cannot find and modify the "savefile" boxes background.
I wold like to use an image but i can olny change the color.

using

ImageManager.loadBitmap("img/system/", "Prova");

in

Window_Selectable.prototype.drawBackgroundRect

nothing is happening

help me please, thank you!!
Marrend
Guardian of the Description Thread
21806
I'm not 100% sure if Window_Selectable is the level at which you want to edit at in relation to Window_SavefileList.

Anyway, let me get this straight. You're trying to use...
Window_Selectable.prototype.drawBackgroundRect = function() {
	ImageManager.loadBitmap("img/system/", "Prova");
};
...instead of what's there normally? I think it might be more like...
Window_Selectable.prototype.drawBackgroundRect = function() {
	bitmap = ImageManager.loadBitmap("img/system/", "Prova");
	this.contents.blt(bitmap, 0, 0, bitmap.width, bitmap.height, 0, 0);
};
...this? Here's what the help file says about the Bitmap.blt function...
Performs a block transfer.
NameTypeDefaultDescription
sourceBitmapThe bitmap to draw.
sxnumberThe x coordinate in the source.
synumberThe y coordinate in the source.
swnumberThe width of the source image.
shnumberThe height of the source image.
dxnumberThe x coordinate in the destination.
dynumberThe y coordinate in the destination.
dwnumbersw[optional] The width to draw the image in the destination.
dhnumbersh[optional] The height to draw the image in the destination.
...as this.contents is an instance of the Bitmap class.

*Edit: As an aside, it's my personal policy to never edit the files in the "js" directory. What I would recommend is making a file in the "plugins" sub-directory, and adding it to your game via Plugin Manager. If nothing else, you'd have a backup of the original code in case this idea doesn't pan out.
Pages: 1