Thread: GUI Problem
View Single Post
  #4  
Old 04-08-2007, 06:36 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
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]);
  }
Reply With Quote