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
Post a Comment