Jump to content

View more

Image of the Day

#ld38 #screenshotsaturday Mimosa Fizz action gif #2 https://t.co/TUzdppvfUL
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

LibGDX: TextButtonStyle declaration differs from Javadoc

4: Adsense

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   

1998
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.




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.