The simplest way: It would require to replace all drawText functions with drawTextEx, wherever you want to replace the text with icons.
Since various menu plugins might use different things, you'll want to find the functions searching for:
TextManager.hpA
TextManager.mpA
TextManager.tpA
The A means abbreviation. Then you take the line (important: ONLY that line) that contains this and replace drawText with drawTextEx. You can also delete the width, since drawTextEx uses only x and y as parameters.
For example, searching in rpg_windows, I find this (it draws actor HP in the game menu):
Code:
Window_Base.prototype.drawActorHp = function(actor, x, y, width) {
width = width || 186;
var color1 = this.hpGaugeColor1();
var color2 = this.hpGaugeColor2();
this.drawGauge(x, y, width, actor.hpRate(), color1, color2);
this.changeTextColor(this.systemColor());
this.drawText(TextManager.hpA, x, y, 44);
this.drawCurrentAndMax(actor.hp, actor.mhp, x, y, width,
this.hpColor(actor), this.normalColor());
};
So I take the line, where TextManager.hpA is, and replace this.drawText with this.drawTextEx. This is the result.
Code:
Window_Base.prototype.drawActorHp = function(actor, x, y, width) {
width = width || 186;
var color1 = this.hpGaugeColor1();
var color2 = this.hpGaugeColor2();
this.drawGauge(x, y, width, actor.hpRate(), color1, color2);
this.changeTextColor(this.systemColor());
this.drawTextEx(TextManager.hpA, x, y);
this.drawCurrentAndMax(actor.hp, actor.mhp, x, y, width,
this.hpColor(actor), this.normalColor());
};
The good thing is, you don't need to search every plugin you have, only the plugins you have that in some sort create their own windows.
@Jaase No, Yanfly's message core doesn't change everything to drawTextEx. So that wouldn't work.