Search in sources :

Example 1 with NUIBindButtonEvent

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));
        }
    }
}
Also used : NUIBindButtonEvent(org.terasology.nui.events.NUIBindButtonEvent) UIWidget(org.terasology.nui.UIWidget)

Aggregations

UIWidget (org.terasology.nui.UIWidget)1 NUIBindButtonEvent (org.terasology.nui.events.NUIBindButtonEvent)1