MovingBlocks/Terasology — pull request #360 by miniME89 (2012-09-19 18:58:33+00:00)
Title: Gui

- Added TabFolder widget. Little example for @small-jeeper and other GUI contributors:

Code:
```
UITabFolder folder = new UITabFolder();
folder.setSize(new Vector2f(500, 300));
folder.setBackgroundColor(new Color(200, 200, 150));
for (int i = 0; i < 5; i++) {
UITabItem item = new UITabItem();
item.setText("Tab " + i);
item.setEnableScrolling(true);
item.setEnableScrollbar(true);

UIButton b = new UIButton(new Vector2f(200, 50), UIButton.eButtonType.NORMAL);
b.getLabel().setText("button " + i);
b.setPosition(new Vector2f(50f, 250f));
b.setVisible(true);

item.addDisplayElement(b);
folder.addItem(item);
}
folder.setVisible(true);

addDisplayElement(folder);
```

Result:

- Added RowLayout and StackLayout. Used it for the TabFolder widget. Nearly the same functionality as the SWT equivalent.

- Optimized styling system

- A lot of widget bug fixes

- Optimized z-order event consumption.