Followers 0

# LibGDX: TextButtonStyle declaration differs from Javadoc

## 0 posts in this topic

I was trying to make a TextButtonStyle in LibGDX based on what the javadoc said:

TextButton.TextButtonStyle(NinePatch down, NinePatch up, NinePatch checked, float pressedOffsetX, float pressedOffsetY, float unpressedOffsetX, float unpressedOffsetY,BitmapFont font, Color fontColor, Color downFontColor, Color checkedFontColor)

The javadoc says that the TextButtonStyle class takes 3 NinePatches, but when I looked at the actual code for the TextButtonStyle class it said that it takes 3 Drawables:

		public TextButtonStyle (Drawable up, Drawable down, Drawable checked, BitmapFont font) {
super(up, down, checked);
this.font = font;
}


Is this a mistake? Can I somehow turn my NinePathes into Drawables?

Edited by minibutmany
0

## Create an account

Register a new account