I'm having some button problems. I followed the wiki to make a button but it shows up with no texture at all, just white. Any suggestions?
Here's my code:
- Code: Select all
BrumeTexture bTex = this.GetTexture("button.png");
bTex.Name = "buttonTex";
Button myButton = new Button(this, "buttonName", "Click me!!!", null);
myButton.setTextureName("buttonTex");
myButton.setSize(125, 42);
myButton.center(0, 0);
myButton.centerLabel();