Hi, I'd like to create a duplicate function of drawActorIcons(), except backward. As in, instead of having the state icons grow from left to right, I'd like it to show from right to left. This is the default code:
JavaScript:
Window_Base.prototype.drawActorIcons = function(actor, x, y, width) {
width = width || 144;
var icons = actor.allIcons().slice(0, Math.floor(width / Window_Base._iconWidth));
for (var i = 0; i < icons.length; i++) {
this.drawIcon(icons[i], x + Window_Base._iconWidth * i, y + 2);
}
};