Here's what C' would do with that text stuff!
HTML Code:
//#CLIENTSIDE
function onCreated()
{
hideimgs(200, (200 + this.drawText.size()));
this.drawText = {
//{index, x, y, style, text, message, {colors}, layer, zoom}
{200, 32, 64, "b", format(_("Health: %f/%f"), player.hearts, player.fullhearts), {1, 0.3, 0, 1}, 4, 0.8},
{201, 32, 64, "bc", format(_("magic: %f/100"), playermp), {0, 0.3, 1, 1}, 4, 0.8}
};
for (temp.currentText: this.drawText)
this.makeText(temp.currentText);
}
function makeText(textData)
{
showText(temp.textData[0], temp.textData[1], temp.textData[2], "Arial", temp.textData[3], temp.textData[4]);
changeimgvis(temp.textData[0], temp.textData[5]);
changeimgcolors(temp.textData[0], temp.textData[4][0], temp.textData[4][1],temp.textData[4][2], temp.textData[4][3]);
changeimgzoom(temp.textData[0], temp.textData[6]);
}