CHANGING THE SELECTION HIGHLIGHT

Is there any way for me to change the teal highlight border to a different image? one that isn’t the ‘window.png’ file? Let me know if there is and/or if there’s any plugins that help with it.

Additionally, is there any way that I can stop it from blinking?

The highlight comes from the 48x48 square at x 96, y 96 in Window.png, the bottom left corner of its right half. So if you just want it to look different, you can edit that square with no plugin. MV stretches the middle of it and keeps the outer 4 pixels as the border.

If you want it to use its own image, I don’t know of a plugin that does just this, so here’s a small one. It makes the highlight use img/system/Cursor.png instead, and it also stops the blinking. Make a 48x48 Cursor.png laid out the same way as that square in Window.png:

/*:
 * @plugindesc Selection highlight from img/system/Cursor.png, no blinking.
 * @help Put a 48x48 Cursor.png in img/system.
 * The outer 4 pixels are the border, the middle gets stretched.
 */
(function() {
    var cursorSkin = null;

    Window.prototype._refreshCursor = function() {
        var pad = this._padding;
        var x = this._cursorRect.x + pad - this.origin.x;
        var y = this._cursorRect.y + pad - this.origin.y;
        var w = this._cursorRect.width;
        var h = this._cursorRect.height;
        var m = 4;
        var q = 48;
        var x2 = Math.max(x, pad);
        var y2 = Math.max(y, pad);
        var ox = x - x2;
        var oy = y - y2;
        var w2 = Math.min(w, this._width - pad - x2);
        var h2 = Math.min(h, this._height - pad - y2);
        var bitmap = new Bitmap(w2, h2);
        this._windowCursorSprite.bitmap = bitmap;
        this._windowCursorSprite.setFrame(0, 0, w2, h2);
        this._windowCursorSprite.move(x2, y2);
        if (!cursorSkin) cursorSkin = ImageManager.loadSystem('Cursor');
        if (!cursorSkin.isReady()) {
            cursorSkin.addLoadListener(this._refreshCursor.bind(this));
            return;
        }
        if (w > 0 && h > 0) {
            var s = cursorSkin;
            bitmap.blt(s, m, m, q-m*2, q-m*2, ox+m, oy+m, w-m*2, h-m*2);
            bitmap.blt(s, m, 0, q-m*2, m, ox+m, oy, w-m*2, m);
            bitmap.blt(s, m, q-m, q-m*2, m, ox+m, oy+h-m, w-m*2, m);
            bitmap.blt(s, 0, m, m, q-m*2, ox, oy+m, m, h-m*2);
            bitmap.blt(s, q-m, m, m, q-m*2, ox+w-m, oy+m, m, h-m*2);
            bitmap.blt(s, 0, 0, m, m, ox, oy, m, m);
            bitmap.blt(s, q-m, 0, m, m, ox+w-m, oy, m, m);
            bitmap.blt(s, 0, q-m, m, m, ox, oy+h-m, m, m);
            bitmap.blt(s, q-m, q-m, m, m, ox+w-m, oy+h-m, m, m);
        }
    };

    var _updateCursor = Window.prototype._updateCursor;
    Window.prototype._updateCursor = function() {
        _updateCursor.call(this);
        this._windowCursorSprite.alpha = this.contentsOpacity / 255;
    };
})();

If you only want the blinking gone and want to keep the Window.png highlight, delete everything from var cursorSkin down through the end of _refreshCursor, and keep just the last part.

I’d put it near the bottom of your plugin list, since anything that changes windows could override it.

The forum won’t let me attach a .js file, but it only takes a minute to make one from the code above:

  1. Hover over the code block in my last post and click the copy button in its top right corner.
  2. Open Notepad and paste it in.
  3. Go to File > Save As and change Save as type to All files. Name it CursorHighlight.js and save it in your project’s js/plugins folder. If you’re not sure where your project is, Game > Open Folder in the editor will take you there.
  4. In the editor, open Tools > Plugin Manager, double click an empty line, pick CursorHighlight from the Name list, set Status to ON and click OK.

If Save as type stays on Text Documents, Windows saves it as CursorHighlight.js.txt and it won’t show up in the Plugin Manager.

Then your 48x48 Cursor.png goes in img/system.