scene2d - Make content of HorizontalGroup Wrap to the next line in Libgdx -


i use libgdx's scene2d built-in ui library make ui in game . want use component div in html , add textbutton i've try use horizontalgroup when textbuttons long text exceed area . want set bounds actor (horizontalgroup) make limited

here code

myfunction(){    horizontalgroup group=new horizontalgroup();          (...) {               button =new textbutton(...);              group.addactor(button);             group.setdebug(true);             group.setbounds(5,200,200f,200f); } stage.addactor(group); } 

and result my first game

any please


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -