MV Replacing image based on active or not

I am using Mog Hunter's monogatari menu system.

I think I found the coding that I need to edit... but I am not sure HOW to edit it. I managed to make it stop scaleing by changing the scale.x= 0.010 and 1.30 to 1.000. So it would stop growing when selected.

//==============================
// * create Buttons
//==============================
Scene_Item.prototype.createButtons = function() {
this._buttons = [];
this._buttonsAni = [];
for (var i = 0; i < 4; i++) {
this._buttonsAni = 0;
this._buttons = new Sprite(this._comImg);
this._buttons.anchor.x = 0.5;
this._buttons.anchor.y = 0.5;
if (i === 0) {
this._buttons.x = Moghunter.scItem_Com1_X;
this._buttons.y = Moghunter.scItem_Com1_Y;
} else if (i === 1) {
this._buttons.x = Moghunter.scItem_Com2_X;
this._buttons.y = Moghunter.scItem_Com2_Y;
} else if (i === 2) {
this._buttons.x = Moghunter.scItem_Com3_X;
this._buttons.y = Moghunter.scItem_Com3_Y;
} else if (i === 3) {
this._buttons.x = Moghunter.scItem_Com4_X;
this._buttons.y = Moghunter.scItem_Com4_Y;
};
this._field.addChild(this._buttons);
};
};

//==============================
// * update Buttons
//==============================
Scene_Item.prototype.updateButtons = function() {
for (var i = 0; i < this._buttons.length; i++) {
if (this._categoryWindow._index === i && !this._actorWindow.active) {
if (this._buttonsAni === 0) {
this._buttons.scale.x += 1.000;
if (this._buttons.scale.x >= 1.00) {
this._buttons.scale.x = 1.00;
this._buttonsAni = 1;
};
} else {
this._buttons.scale.x -= 0.010;
if (this._buttons.scale.x <= 1.00) {
this._buttons.scale.x = 1.00;
this._buttonsAni = 0;
};
};
this._buttons.opacity += 20;
} else {
this._buttonsAni = 0
if (this._buttons.scale.x >= 1.00) {
this._buttons.scale.x -= 0.010;
if (this._buttons.scale.x <= 1.00) {
this._buttons.scale.x = 1.00;
};
};
if (this._buttons.opacity > 180) {
this._buttons.opacity -= 15;
};
};

this._buttons.scale.y = this._buttons.scale.x;
};
};

I want it to basically be the white image when active and the grey image when in active.

Com_00.png
Com_0.png


So instead of scaling and changing ocupancy, the else case should be like 'Com11' replacing
'Com1', Com2=Com22, ect ect.

Can I do that in this specific portion of the coding?

Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/replacing-image-based-on-active-or-not.127273/