Ah okay my bad, I missed that part of it being displayed in the main menu.
Anyway, I'm no expert and there's probably a better way to do this, but I was able to get the intended results with this:
JavaScript:
// Draw Actor Equipment
this.resetFontSettings();
sx = rect.x + Math.floor(rect.width / 2);
sy = ny + lineHeight;
sw = rect.width / 2;
current_index = 0;
new_xpos = (sw/2);
for (const equip of equips) {
if (equip) {
current_index ++;
if (current_index == 5){
sy = ny + lineHeight;
};
if (current_index > 4){
this.drawItemName(equip, sx + new_xpos, sy, sw);
sy += lineHeight;
} else {
this.drawItemName(equip, sx, sy, sw);
sy += lineHeight;
}
if (sy + lineHeight > rect.y + rect.height) return;
}
}
Again, you might need to play with new_xpos var to get it to fit to your liking.