Problem changing WindowSkin! (BUG?)

QUESTION: Where should I change a window skin?
I'm currently doing it after initialize base, with:
 

this.windowskin = ImageManager.loadSystem('Window_new');I created a new windowskin and named it - "Window_new.png"
All the other windows have Window.png as windowskin (default)

My problem is when I draw text... the text is always black :/ can't change the color to anything else..

If I do the opposite... change Window.png to Window_old.png
and rename Window_new.png to Window.png, every window gets the new skin and the colors work right.
So I wanted to know if I'm doing something wrong or if this is a bug!!

EDIT: If I close the menu and open it again the text color is correctly displayed... so I think the problem is that I'm doing it the wrong way!! Where should the code to change to windowskin go?! and what must I refresh for it to work... the first time? I was looking at the windowskin property and it has a get and set implementation that calls an _onWindowskinLoad (doesn't this function does the refreshing work)?
It's because it needs time to load, and by the time you display it initially, the image hasn't loaded.


Look in Scene_Boot.loadSystemImages - that's where you'd need to put it.
I see quite a lot of posts lately that are related to pre-loading and asynchronously loading files. This is new from Ace (although I also pre-loaded images in Ace for performance) and it seems a lot of people are having trouble with it. Maybe we could use a basic tutorial on loading/saving images, checking if files exist (cross-platform), loading xml, etc.

Original thread: https://forums.rpgmakerweb.com/threads/problem-changing-windowskin-bug.52189/