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.images, temp.dx, 4, "Tahoma", "i", temp.buttontext[temp.i]);
changeImgVis(this.images, 6);
this.images++;
showText(this.images, temp.dx+2, 6, "Tahoma", "i", temp.buttontext[temp.i]);
changeImgVis(this.images, 5);
changeImgColors(this.images, 0.25, 0.25, 0.25, 1);
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.