MZ Adding a pointer on Selectable Window.

Could someone please help me with making a custom pointer, similar to the game Omori's title screen and menus.

I have managed to space the buttons out and have been able to find where the overlay for the buttons is created which is under

Window_Selectable.prototype._refreshCursor = function() { const drect = this._cursorRect.clone(); const srect = { x: 96, y: 96, width: 48, height: 48 }; const m = 4; for (const child of this._cursorSprite.children) { child.bitmap = this._windowskin; } this._setRectPartsGeometry(this._cursorSprite, srect, drect, m); };

I don't think I fully understand it especially the setRectPartsGeometry which looks very confusing in the file, if its not too much could you explain how it works and how I could implement it.

I don't know if this would make any difference, but the cursor is disabled.

Original thread: https://forums.rpgmakerweb.com/threads/adding-a-pointer-on-selectable-window.133327/