View Single Post
  #1  
Old 01-16-2010, 02:27 AM
12171217 12171217 is offline
Banned
Join Date: Jan 2009
Posts: 453
12171217 has a spectacular aura about
textWidth help o.o

PHP Code:
function showInterfaceButtons() {
  
temp.buttontext = {"New Scene""Save Scene""Load Scene""Help"};

  
temp.dx 4;

  for (
temp.i=0;temp.i<2;temp.i++) {
    
this.images++;
    
showText(this.imagestemp.dx4"Tahoma""i"temp.buttontext[temp.i]);
    
changeImgVis(this.images6);

    
this.images++;
    
showText(this.imagestemp.dx+26"Tahoma""i"temp.buttontext[temp.i]);
    
changeImgVis(this.images5);
    
changeImgColors(this.images0.250.250.251);

    
temp.dx += textwidth(1"Tahoma""i"temp.buttontext[temp.i]);
  }

Can somebody explain why that doesn't work correctly?

It's supposed to display them in order from left to right with the correct spacing in between. Doesn't work properly, unfortunately. TextWidth seems to be bugged up, unless, of course, I'm using it improperly.
Reply With Quote