Jump to content

  • Log In with Google      Sign In   
  • Create Account


LibGDX: TextButtonStyle declaration differs from Javadoc


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 minibutmany   Members   -  Reputation: 1524

Like
0Likes
Like

Posted 25 June 2013 - 08:40 AM

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, 25 June 2013 - 08:41 AM.

Stay gold, Pony Boy.

Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS