Javascript Code to refresh Window Layer

I'm trying to look for a code that will refresh the window layer in the message window (The image behind the text). Yanfly's message box doesn't update it's window layer only the window text. So I'm trying to add a line of code to it's .refresh in order for the name box to refresh its window layer. (I'm using a Himeworks Plugin of windowskin swapping but the plugin doesn't refresh Yanfly's name box. So I have to find a code to add it in that will do it)
yanfly name box refresh normally on it own, but if you change the window skin and doesn't
up, than you have a comflict between the 2 plugins.

if the himes plugin is below message plugin, try to place it above the message core.
if that doesn't help, you might want to create a addon for those.

1 that alias yanfly plugin to update the name box, else the window skin change to update
around the same way.

but if you use more yanfly plugins, are those in the correct order? because that is the most
common issue if it work incorrectly.
@ShadowDragon I don't think it's the compatible issue. They are both compatible, but Yanfly didn't bother in refreshing the window layer. She just refreshed the text.

If I go to a different scene, then the window skin changes, but it's not refreshing on the same map actively.
if using differen skins (same height) here is a clever solution to someone that can add
or make an addon to refresh the window.

make an empty text box and empty name box, or edit that in photoshop, krita or gimp,
than use show image and transparant text window's, so you only need to show picture 1
with another picture 1 for a different person.
erase picture x on hte end of the dialog.

in case you use picture, replace 1 with a higher number (this is a way I do my message box)
galv have messege background, but the idea is the same though.

I dont know how to refresh the window, but refresh window isn't need if name box only need
to to refresh the text.

But this is only a simply solution though or for the time being.
Nvm I solved it.
This was the code I needed.
this.windowskin = ImageManager.loadSystem('Window');
if it's solved, report your 1st post and tell it its solved so the thread can be closed 🙂

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/javascript-code-to-refresh-window-layer.120649/