I'm trying to make a plugin to change the background of the default menu, based on a solution to a menu background problem from another thread:
With "Untitled" being the name of the background a made.
However, when testing, it doesn't seem to work, and nothing changes. I made sure to add this plugins alongside the others, and the background is in the pictures folder, so I'm wondering if it's something wrong with the code or something else.
For context I want to create a simple menu similar to these:
View attachment 327379View attachment 327380
Scene_MenuBase.prototype.createBackground = function() { let pictureName = "Untitled"; if (!pictureName) { // This is the fallback image when the code doesn't know which to show pictureName = "ErrorPicture"; } const bitmap = ImageManager.loadPicture(pictureName); this._backgroundSprite = new Sprite(bitmap); // stretch picture to screen size bitmap.addLoadListener(() => { this._backgroundSprite.scale.x = Graphics.width / bitmap.width; this._backgroundSprite.scale.y = Graphics.height / bitmap.height; }); this.addChild(this._backgroundSprite);}With "Untitled" being the name of the background a made.
However, when testing, it doesn't seem to work, and nothing changes. I made sure to add this plugins alongside the others, and the background is in the pictures folder, so I'm wondering if it's something wrong with the code or something else.
For context I want to create a simple menu similar to these:
View attachment 327379View attachment 327380