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.
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.