MV [SOLVED] How to make it so certain windows will not use your windowskin?

please ignore the placeholder image and the absolute mess that is the font, i messed up the order of the colors in my windowskin : ^)
I'm using SumRndmDde's AltMenu plugin, and that's working great. My issue is that I want the two windows on the top to not use the windowskin, since the borders clash.
example:
Spoiler: image example
NVIDIA_Share_LsR6Ou37Wd.png
I've tried setting the opacity to 0 by adding an extra line of code to
this._windowLayer.removeChild(this._goldWindow); this.addWindow(this._goldWindow) this._windowLayer.removeChild(this._commandWindow); this.addWindow(this._commandWindow); this._commandLabel = new Window_CommandLabel(0, 0, this._commandWindow); this.addWindow(this._commandLabel);
, just literally "this._commandLabel.opacity = 0" and while it does work, it actually erases the main menu's windowskin as well, leaving two holes in it x)
Spoiler: image example again
Game_Xed06OL5c8.png

I found some plugins that claim to do this, but because (i assume) this plugin has some different nomenclatures for the windows, they don't seem to work for me.
Can anyone help me out?
Title's a bit misleading.

What you ACTUALLY want to know is: "How can I make the subwindows not erase chunks of the window underneath?"

Because I can tell you, even if you set those windows not to use any windowskin - which can be done with "whateverwindow.windowskin = ImageManager.loadEmptyBitmap()" - they will STILL end up taking chunks out of the image underneath.

In fact, if you look at your own screenshots - and the screenshots of the plugin on SumRndmDde's site - you will see that when you are using a windowskin that has curved or otherwise not-perfectly-90-degree-flush corners, it is actually still "erasing" chunks of the underlying window past the boundaries of the corners. It's why you're getting those thin strips of "clear" background to the sides and underneath your window containing the command buttons, the edges of that command buttons window is also eating away the background of the window that's supposed to be beneath it.

The reason for this is that the default behavior of RMMV is to draw all windows on the same layer. So even if it's meant to be a "sub-window", it still gets drawn on the same layer as any parent/background window. New windows completely paint over old ones, they overwrite each other.

They're never actually being drawn "ontop" of each other.

Even in the default menu, using the default windowskin, if you try to shift one window over the other, you'll see the excess space from the curved corners "erase" bits of the underlying window. If you then try to change the opacity of the window "ontop" to 0 and make it transparent, you'll then see that the "overlapping" bit just vanishes entirely - because there was no overlap. The window "ontop" was never "ontop", it completely replaced the previous one and overwrote the image "underneath".

Why they decided to make MV behave like this, I couldn't tell you (probably to minimize resource usage or something similar). But this is meant to be one of those "it's not a bug, it's a feature" things.

So how do you "solve" this "feature"?

Actually fairly simple in this case:
JavaScript:
        this.addChild(this._goldWindow)
        this._windowLayer.removeChild(this._commandWindow);
        this.addChild(this._commandWindow);
        this._commandLabel = new Window_CommandLabel(0, 0, this._commandWindow);
        this.addChild(this._commandLabel);
Instead of using "addWindow", alter the plugin to use "addChild" to draw them instead. And then add your code to set their window opacity to 0.

The PIXI renderer behind MV does allow for things to overlap when you use "addChild", other sprites in the game do so after all. It's just that the way window drawing specifically was implemented (via the "addWindow" function in SceneBase) forces them all to be on one layer, the "WindowLayer".
Thank you so much for explaining it in so much detail!! I think I get it now, and I'll try it out asap, I just have one more question if you don't mind it:
JavaScript:
this.addChild(this._goldWindow)
this._windowLayer.removeChild(this._commandWindow);
this.addChild(this._commandWindow);
this._commandLabel = new Window_CommandLabel(0, 0, this._commandWindow);
this.addChild(this._commandLabel);
Instead of using "addWindow", alter the plugin to use "addChild" to draw them instead. And then add your code to set their window opacity to 0.
would that make it

JavaScript:
this.addChild(this._goldWindow)
this._goldWindow.opacity = 0
this._windowLayer.removeChild(this._commandWindow);
this.addChild(this._commandWindow);
this._commandLabel = new Window_CommandLabel(0, 0, this._commandWindow);
this.addChild(this._commandLabel)
this._commandLabel.opacity = 0;
, or should I be adding them somewhere else?


Thank you again!

EDIT
So,
it worked for the Gold window, but not for the Label window, not sure if I did something wrong here x_x
Spoiler: image
Captura de tela 2021-03-16 095826.png
The code is looking like
JavaScript:
var _Scene_Menu_create = Scene_Menu.prototype.create;
    Scene_Menu.prototype.create = function() {
        _Scene_Menu_create.call(this);
        this.addChild(this._goldWindow);
        this._goldWindow.opacity = 0;
        this._windowLayer.removeChild(this._commandWindow);
        this.addChild(this._commandWindow);
        this._commandLabel = new Window_CommandLabel(0, 0, this._commandWindow);
        this.addChild(this._commandLabel);
        this._commandLabel.opacity = 0;
        this.addWindow(this._commandLabel);
        this._statusWindow.x = 0;
        this._statusWindow.y = 0;
        this._commandLabel.x = eval(_labelX);
        this._commandLabel.y = eval(_labelY);
        this._commandWindow.x = eval(_x);
        this._commandWindow.y = eval(_y);
        this._goldWindow.x = eval(goldX);
        this._goldWindow.y = eval(goldY);
    };
Yes, pretty much that.

The important thing is that the windows need to be drawn actually overlapping instead of overwriting each other using "addChild()" instead of "addWindow()". After that, removing the windowskin will also work, so will setting opacity to 0, you can take you pick of whichever you want to do.

About your edit, you had an extra "this.addWindow(this._commandLabel) after you set the opacity of that window to 0, you need to get rid of that.

JavaScript:
        this.addChild(this._commandWindow);
        this._commandLabel = new Window_CommandLabel(0, 0, this._commandWindow);
        this.addChild(this._commandLabel);
        this._commandLabel.opacity = 0;
        this.addWindow(this._commandLabel); // <--- Get rid of this line.
        this._statusWindow.x = 0;
Thank you so much for your patience, dude, you're a life saver!

Original thread: https://forums.rpgmakerweb.com/threads/solved-how-to-make-it-so-certain-windows-will-not-use-your-windowskin.134448/