MV Bugfix compatibility for GALV_CursorImage and YEP_GridFreeDoodads (Phantom cursors oh my!)

Issue + Request

I've happened to come across a rather annoying unavoidable bug between Yanfly's grid free doodads and Galv's Animated cursor image plugin, where upon game start up several static cursors are on screen and opening the doodad f10 gui then closing out will leave a static cursor behind in the last item the cursor was hovering over.

If it would be possible, could someone make a patch for this to remove the cursors on startup and fix the issue with the game not deleting cursor instances upon exiting the doodad gui?

Plugins

Yanfly Grid free doodads
Galv Animated Cursor Image

1653970571462.png

1653970702888.png

1653970735127.png
bump
bump
bump
bump (I have the same problem).

image.png
Have you figured it out?
Sorry to be a necromancer 😅 but I had the same problem and I see that @DrBuni is still connecting regularly:

So if anyone's still interested:
look for this block in GALV_cursorimage.js:

JavaScript:
Sprite_GalvCursor.prototype.update = function() {
    Sprite_Base.prototype.update.call(this);
    if (this._window.isCursorVisible() && !$gameSystem._cursorHidden) {
        this.opacity = this._window.openness >= 255 ? 255 : 0;
        if (this._window.active) this.updateFrame();
        this.updatePosition();
    } else {
        this.opacity = 0;
    };
};

and replace it with this block:

JavaScript:
Sprite_GalvCursor.prototype.update = function() {
    Sprite_Base.prototype.update.call(this);
    if (this._window._isGFDWindow) {
        this.opacity = 0;
        return;
    }
    if (this._window.isCursorVisible() && !$gameSystem._cursorHidden) {
        this.opacity = this._window.openness >= 255 ? 255 : 0;
        if (this._window.active) this.updateFrame();
        this.updatePosition();
    } else {
        this.opacity = 0;
    }
};

This block simply adds a condition to apply an opacity of 0 to the cursor if it's a window generated by YEP_GridFreeDoodads.

Original thread: https://forums.rpgmakerweb.com/threads/bugfix-compatibility-for-galv_cursorimage-and-yep_gridfreedoodads-phantom-cursors-oh-my.148082/