Need advice on drawing overlapping menu windows

Hi,

My windowskin has curved corners. The problem with this is that when I draw a window on top of another window... the corners have a small bug: The background is redrawn on top of the underlying windows.

The image helps illustrate my issue:
1613687910128.png


Any clues on how to avoid this? (Yes, I'm ok with and willing to dive into the JS code if necessary).

I'll keep taking a stab at it in the meantime, but any advice would be appreciated 🙂
This is a side effect of all windows being drawn on the same layer.

SRD has a plugin that makes all windows draw on different layers, which corrects this issue. The plugin is pretty old, and I've never used it myself, so I can't guarantee it works anymore, but the video and screenshots on his site seem to imply it does what you need.
This is a side effect of all windows being drawn on the same layer.

SRD has a plugin that makes all windows draw on different layers, which corrects this issue. The plugin is pretty old, and I've never used it myself, so I can't guarantee it works anymore, but the video and screenshots on his site seem to imply it does what you need.
This is exactly what I needed. Thanks a lot 🙂
I tried a quick hack by using this, worked on MZ
JavaScript:
Scene_Base.prototype.createWindowLayer = function() {
    this._windowLayer = this;
};
It is more or less the same as SRD's
Screenshot_741.jpg

Original thread: https://forums.rpgmakerweb.com/threads/need-advice-on-drawing-overlapping-menu-windows.133568/