use of org.terasology.nui.events.NUIBindButtonEvent in project Terasology by MovingBlocks.
the class CoreScreenLayer method update.
@Override
public void update(float delta) {
if (contents != null) {
if (!TabbingManager.isInitialized()) {
TabbingManager.init();
// TODO: Tabbing
// TabbingManager.setOpenScreen(this);
Iterator<UIWidget> widgets = contents.iterator();
iterateThrough(widgets);
}
// TODO: Tabbing
/*if (TabbingManager.getOpenScreen() == null) {
TabbingManager.setOpenScreen(this);
Iterator<UIWidget> widgets = contents.iterator();
iterateThrough(widgets);
}*/
contents.update(delta);
animationSystem.update(delta);
if (depth == SortOrderSystem.DEFAULT_DEPTH) {
setDepthAuto();
}
if (activateBindEvent) {
onBindEvent(new NUIBindButtonEvent(null, null, "engine:tabbingUI", ButtonState.DOWN));
}
}
}
Aggregations