Jump to content

[SOLVED] Wall System GUI


photo

Recommended Posts

engine.wall.getGui() function will be available in the next SDK update.

 

forloop(int y = 0; engine.wall.getHeight()) {
forloop(int x = 0; engine.wall.getWidth()) {
 Gui gui = engine.wall.getGui(x,y);
 WidgetLabel label = new WidgetLabel(engine.getGui(),format("%dx%d",x,y));
 gui.addChild(label,GUI_ALIGN_OVERLAP);
 label.setPosition(128,128);
 label.setFontSize(32);
}
}

Link to comment
×
×
  • Create New...