[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!!
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!!
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...
...instead of what's there normally? I think it might be more like...
...this? Here's what the help file says about the Bitmap.blt function...
...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.
Anyway, let me get this straight. You're trying to use...
Window_Selectable.prototype.drawBackgroundRect = function() { ImageManager.loadBitmap("img/system/", "Prova"); };
Window_Selectable.prototype.drawBackgroundRect = function() { bitmap = ImageManager.loadBitmap("img/system/", "Prova"); this.contents.blt(bitmap, 0, 0, bitmap.width, bitmap.height, 0, 0); };
Performs a block transfer.
Name Type Default Description source Bitmap The bitmap to draw. sx number The x coordinate in the source. sy number The y coordinate in the source. sw number The width of the source image. sh number The height of the source image. dx number The x coordinate in the destination. dy number The y coordinate in the destination. dw number sw [optional] The width to draw the image in the destination. dh number sh [optional] The height to draw the image in the destination.
*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














