Friday 15 March 2013

Slide the popup in libgdx not work -



Slide the popup in libgdx not work -

i trying develop libgdx game. want implement selection screen. till have implemented horizontal scrollpane , working fine. want implement scrolling on click on button. can check image attached.

try instead utilize json pack

this works me:

_skin = new skin(); textureatlas buttonatlas = new textureatlas("images/buttons.pack"); _skin.addregions(buttonatlas); _textbuttonstyle = new textbuttonstyle(); _textbuttonstyle.font = _game.getfont(); _textbuttonstyle.up = _skin.getdrawable("button-orange"); _textbuttonstyle.down = _skin.getdrawable("button-blue");

buttons.pack:

buttons.png size: 234,195 format: rgba8888 filter: nearest,nearest repeat: none button-orange rotate: false xy: 0, 0 size: 236, 67 split: 25, 25, 14, 14 orig: 236, 67 offset: 0, 0 index: -1 button-blue rotate: false xy: 0, 67 size: 236, 67 split: 25, 25, 14, 14 orig: 236, 67 offset: 0, 0 index: -1 button-navy rotate: false xy: 0, 134 size: 236, 67 split: 25, 25, 14, 14 orig: 236, 67 offset: 0, 0 index: -1

libgdx

No comments:

Post a Comment