Skin Properties - thenewsky/libgdx-ch-document GitHub Wiki

The following is a list of all properties of UI skin elements.

Bitmap Fonts (com.badlogic.gdx.graphics.g2d.BitmapFont) A standard font. Only one can be defined in a skin file (?!?) as of 1.6.1.

  • file: the file to be used (required)
  • image: the image to used

Label (com.badlogic.gdx.scenes.scene2d.ui.Label$LabelStyle) A text area.

  • font: the name of the font (as specified under BitmapFont) to use for the area.

Button (com.badlogic.gdx.scenes.scene2d.ui.Button$ButtonStyle) A UI button widget.

  • up: the image when the button is untouched.
  • over: the image when the mouse is hovering over the button.
  • down: the image when the mouse is clicked over the button.