MZ Building upon code that runs when you choose the main menu command and when you choose actor to enter equip tab with

I was revamping the look of UI in my game, but unfortunately I had to stop, because I want my bitmap sprites buttons to pop up when you're still choosing the commands in the main menu, or the actors changing poses when you hover over them before choosing going into equip tab, but I can't find code responsible for this, and even then I'm not sure how I would code it, so help with that would be appreciated.
I guess you'd need to explain more what you want to do for someone to help. Can't you check the index/commandname of the _commandWindow or _statuswindow (when selecting character) in the select method or some update method and make stuff happen depending on that (also check if the windows are currently active)?

EDIT: And like put in the draw method a conditional that if the index is selected it draws a different pic.

EDIT2: To clarify, just something like this (added the last line). And then put the conditional in the Window_MenuStatus.prototype.drawItemImage:
Window_MenuStatus.prototype.select = function(index) {
this._index = index;
this.refreshCursor();
this.callUpdateHelp();
this.redrawItem(index);
};
EDIT3: Oh yeah, you have to also draw the previous image (or all of them) back to original when you switch to next selection.
EDIT4: So you can do it like this (just use in the draw method the conditional that
if (this.active && this.index() === index)
draw something, else draw something else):
Window_MenuStatus.prototype.select = function(index) {
const previousIndex = this._index;
this._index = index;
this.refreshCursor();
this.callUpdateHelp();
this.redrawItem(previousIndex);
this.redrawItem(index);
};
Oh, I think I should report how I've been doing with that. And, well, it went pretty well so far, with me managing to accomplish everything I want so far.

Original thread: https://forums.rpgmakerweb.com/threads/building-upon-code-that-runs-when-you-choose-the-main-menu-command-and-when-you-choose-actor-to-enter-equip-tab-with.182527/