Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


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: 1681

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