• Advertisement
Sign in to follow this  

LibGDX: TextButtonStyle declaration differs from Javadoc

This topic is 1668 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement