Galv's Message Background + Jatopian's Message Window Hide

Galv's Message Background - is changing message box's background image, while Jatopian's Message Window Hide hids message box. In general, these two plugins work fine and do not interfere with each other. But there is a big BUT! When the text is hidden, image of message box remains.

All I want: to click the button to hide the message window as in all visual novels and still have my own message backgraund image.

Help me please! And thanks in advance!

I've moved this thread to Plugin Requests. Thank you.

Moved to: Plugin Requests
S-sorry, and thank you.😅
Here's a thread that I made that has a similar goal in mind.
https://forums.rpgmakerweb.com/inde...er-the-text-window-appears-disappears.105660/

It requires the use of Yanflys Picture Common Events plugin.
The only problem is if you want it to be synced to the message window, you would need to run the on screen button each time the message window pops up and disappears.

However, this would require a common event for that to be run each time the the message windo appears/disappears. I am requesting a way on how to do that atm.

EDIT: Nevermind, I don't think it's possible because of the way messages are displayed. The game waits for player input before displaying the next message, a click is considered an input so it will undoubtedly cause problems for the on screen buttons. What we need is a plugin specifically tailored to have a visual novel like interface for the message window.
Here you go. This plugin should make them compatible. If you encounter any issues with this please contact me. 🙂
EDIT: actually this probably disables the posibility to disable custom backgrounds. I'll fix that in a couple of hours
EDIT2: Turned out it didn't because of the sequence of calls in GALV_MessageBackground. However, I added what would have been the fix anyway as I think it is more appropriate.

Code:
//=============================================================================
// MRP_GALV_MessageBackground_MessageHide_Compatibility.js
//=============================================================================

/*:
 * @plugindesc This plugin is to make GALV_MessgeBackground and MessageHide compatibility with eachother.
 * @author Magnus0808
 * @help Have GALV_MessageBackground (version 2.0) and MessageHide (v1.1.0) before this plugin.
 */

(function (){
    var MRP_GALV_HIDE_WM_OLD = Window_Message.prototype.update;
    Window_Message.prototype.update = function() {
        MRP_GALV_HIDE_WM_OLD.call(this);
        if(Galv.MBG){ // Kind of test for if GALV_MessgeBackground is on
            if(MessageHide_messageWindowVisible){
                Galv.MBG.disable = $gameSwitches.value(Galv.MBG.s);
            } else {
                Galv.MBG.disable = true;
            }
        }
    }
 })();
Here you go. This plugin should make them compatible. If you encounter any issues with this please contact me. 🙂
EDIT: actually this probably disables the posibility to disable custom backgrounds. I'll fix that in a couple of hours
EDIT2: Turned out it didn't because of the sequence of calls in GALV_MessageBackground. However, I added what would have been the fix anyway as I think it is more appropriate.

Code:
//=============================================================================
// MRP_GALV_MessageBackground_MessageHide_Compatibility.js
//=============================================================================

/*:
 * @plugindesc This plugin is to make GALV_MessgeBackground and MessageHide compatibility with eachother.
 * @author Magnus0808
 * @help Have GALV_MessageBackground (version 2.0) and MessageHide (v1.1.0) before this plugin.
 */

(function (){
    var MRP_GALV_HIDE_WM_OLD = Window_Message.prototype.update;
    Window_Message.prototype.update = function() {
        MRP_GALV_HIDE_WM_OLD.call(this);
        if(Galv.MBG){ // Kind of test for if GALV_MessgeBackground is on
            if(MessageHide_messageWindowVisible){
                Galv.MBG.disable = $gameSwitches.value(Galv.MBG.s);
            } else {
                Galv.MBG.disable = true;
            }
        }
    }
 })();

Man, you are a GOD! Thank you! Works perfectly!
Gonna use this, THANK YOU VERY MUCH!!!

Original thread: https://forums.rpgmakerweb.com/threads/galvs-message-background-jatopians-message-window-hide.105558/