I’ve got a “levelselect” scene in my game with a bunch of buttons, each button’s label is the corresponding level number. The labels go like this
“1.1”
“1.2”
“1.3”
…
For some reason, when I return to my “levelselect” scene, it keeps saying “WARNING: Invalid fontSize(0) supplied. Using system standard size(13).” I’ve got “fontSize” set to 30, and it only happens when I return to the scene.
Here’s how I’m building my buttons (it’s in a for i…do loop):
buttons[i]=widget.newButton{ default="images/button.png", defaultColor=buttonColor, overColor=overColor, onRelease=onButtonRelease, width=64, height=64, fontSize=30, label=w.."."..i, --\> "W" is world number, "i" is level number xOffset=15, yOffset=15, labelColor={default=buttonColor, over=overColor}, font="Menlo" }
Any ideas? I’m completely stumped.
C