Done, the result was that both 'Can Equip' (was green) and 'Equipped' (was also green but I ideally want to be blue) are now Blue.
Undoing the change (setting it back to '3') sets them both back to green.
Okay, thought so. I get it straightened out tomorrow and start looking more into the in possession values feature.
@LunaFamiliar Here's my work from tonight:
Can't Equip Code
JavaScript:Window_ShopStatus.prototype.drawActorEquipInfo = function(x, y, actor) {
var enabled = actor.canEquip(this._item);
this.changePaintOpacity(enabled);
this.resetTextColor();
this.resetFontSettings();
this.drawText(actor.name(), x, y, this.contents.width - x);
var item1 = this.currentEquippedItem(actor, this._item.etypeId);
if (enabled) {
this.contents.fontSize = Yanfly.Param.ShopStatFontSize;
this.drawActorParamChange(x, y, actor, item1);
this.resetTextColor();
} else {
this.contents.fontSize = Yanfly.Param.ShopCantSize;
var ww = this.contents.width - this.textPadding();
this.changeTextColor(this.textColor(10));
this.drawText(Yanfly.Param.ShopCantEquip, x, y, ww, 'right');
this.resetTextColor();
}
this.changePaintOpacity(true);
};
For the above code, I simply removed the 10th line:
this.changeTextColor(this.textColor(3));
Which is what was causing both to be drawn in the same color.
Color Consistency
JavaScript:Window_ShopStatus.prototype.drawActorParamChange = function (x, y, actor, item1) {
var width = this.contents.width - this.textPadding() - x;
var paramId = this.paramId();
var change = this._item.params[paramId]
change -= (item1 ? item1.params[paramId] : 0);
var itemId = this._item.id;
var equips = [];
for (i = 0; i < actor.equips().length - 1; i++) {
if (actor.equips()[i] !== null) {
equips.push(actor.equips()[i].baseItemId);
equips.push(actor.equips()[i].id);
}
}
if (equips.contains(itemId)) {
this.changeTextColor(this.textColor(1));
text = 'Equipped';
} else if (actor.canEquip(this._item)) {
this.changeTextColor(this.textColor(3));
text = 'Can Equip';
}
this.drawText(text, x, y, width, 'right');
this.resetTextColor();
};
As for this code, I added a line to change the color of an equipped item.
I also added a line to add the non-base item id to the equips array, to catch any non-independent items. I actually had to add it to test the "Equipped" color. I was shooting in the dark last night.
Let me know if this works!
Work went a lot later than I thought it would tonight, so this is all the progress I have for now. I'll take a look at the "in possession" values tomorrow, since I am off work finally.