Remove blue selection box from certain menus

Hello everyone!

I'm working on a Pokémon-type battle menu and I was wondering if there is a good way to not show the selection highlight box in specific Windows, as seen below:

blueboxr2jbq.png


That's really annoying and I cannot find the correct javascript function ...

Best regards!
There should be plugins that allow you to change the window skin,
you could use it to change to a second window skin with the selection box removed for battles?
The window skin idea is good, you should be able to assign a different window skin to your window in its initialize routine~ 😂

Otherwise, check rpg_core.js: the cursor sprite is inherited from the base Window object. The reference is _windowCursorSprite. 🙂

Something like this may work, not sure if there's an easier alternative (change location/size of cursor, maybe?):
Code:
(function(alias) {
	Window_Command.prototype._updateCursor = function() {
		alias.call(this);
		this._windowCursorSprite.alpha = 0;
	};
})(Window_Command.prototype._updateCursor);
This just says "update as usual, then give the cursor 0 opacity". Just replace the Window_Command thing with your window. 🙏

Original thread: https://forums.rpgmakerweb.com/threads/remove-blue-selection-box-from-certain-menus.113584/