Window Background Opacity and Custom Background Images?

So I have two questions regarding windows:

1: How do I change the Opacity of a windows background?

All windows seem to be build with two parts. A border which is totally opaque and a background which seems to always be somewhat transparent.
Here is an example. Golden border that is totally opaque and and grayish background that is somewhat transparent.
I would like the background to also be opaque like in this picture.
When I take the Window.png for the book style that Skotty TV provides in that post the background part of my windows is still transparent and not opaque like in his screenshot. So it is not the Window.png that determines the level of opacity of the window background. But if it is not the Window.png, then what does determine the opacity? How do I get completely opaque windows?





2: How do I set a custom Image as a background for a window while still keeping the frame?

I have one specific window in my menu which I want to look different to the others in this scene. It still is supposed to have the same border as all other windows but I want it to have a different background. I want the background to be a specific image. So far I have a really hacky solution for this:

When creating this window I load a different windowskin. One that is the exact same as the normal 'Window.png' but the upper left part is completely blank (transparent). Now this window has the same border as all other windows but the background is completely empty(transparent).
Upon scene creation I detect which layer the Window layer is in my scene, create a new sprite with the image that I want as the background for my Window and insert that sprite beneath the window layer in this scene.

Though this seems really hacky and I wonder whether there is a better way of doing this.
You could check out this plugin.
You could check out this plugin.
This isn't really what I am looking for. From what I understand that plugin lets you replace whole windows with images where as I only want to change the background part of a window and keep the border part.

Also this doesn't adress question one at all.
Are you using a custom window plugin currently? Or have you been editing the window.png file within the game?

This video is pretty good at showing what to replace/change in order to customize a window.png file. GIMP is a pretty good image editing program this is free-to-use.

For Q1: By default, I don't think you can set a window opacity to not be transparent without using a plugin. Lots of plugins are available that let you change that though. Yanfly core engine being one example.
Sounds like this plugin will solve your problems.
Are you using a custom window plugin currently?
I am not using any plugins except for for Comunity_Basic and MadeWithMV.
I prefere to write my own. I enjoy software development and writing custom code is half the fun!

Or have you been editing the window.png file within the game?
What do you mean by "Within the game"? I have not written custom software that changes the Window.png during runtime. I have created a second window file without the background part of windows using gimp that I just load in my custom window with the loadWindowskin() method.

This video is pretty good at showing what to replace/change in order to customize a window.png file. GIMP is a pretty good image editing program this is free-to-use.
Nice video. I have been looking for some documentation on how the Window.png works, but documentation with everyting RPG Maker is sparse.

For Q1: By default, I don't think you can set a window opacity to not be transparent without using a plugin. Lots of plugins are available that let you change that though. Yanfly core engine being one example.
What do you mean by default? I am writing a custom plugin. Since other plugins can do this it is obviously possible. I just want to know how other plugins do this.



Sounds like this plugin will solve your problems.
Again, I am not looking for a plugin. I am writing my own code. I just want some documentation on how the Window_Base Class works so that I can make this specific part opaque and add backgrounds to windows. I gues I am gonna take a look at Menu Backgrounds source. I just wish someone could give me a direct explanation on how to do what I am trying to do.
What do you mean by "Within the game"?

I just meant the window.png that comes in the project image/system folder. Sorry, my wording was misleading.

What do you mean by default? I am writing a custom plugin. Since other plugins can do this it is obviously possible. I just want to know how other plugins do this.

By default I meant that you cannot make the window.png file have 100% opacity. Even if you alter the image to have 100% opacity in that section, the engine will always give some degree of transparency unless you alter the game engine code or use a plugin.

Again, I am not looking for a plugin. I am writing my own code. I just want some documentation on how the Window_Base Class works so that I can make this specific part opaque and add backgrounds to windows. I gues I am gonna take a look at Menu Backgrounds source. I just wish someone could give me a direct explanation on how to do what I am trying to do.

Sorry, I don't know how to write JS plugins. Since there are a lot of plugins that do what you want though, you may just look through the coding that addresses that particular part about the window scene and try to isolate the JS the authors have used so that you can write your own. Sorry I can't be more helpful in that area.

Original thread: https://forums.rpgmakerweb.com/threads/window-background-opacity-and-custom-background-images.122899/