/** * Lifecycle method called when this screen is displayed under any circumstance. * <p> * This differs from {@link #onOpened} and {@link #onShow} in that it is called both when the * screen is first opened (as {@code onOpened}) as well as when a screen previously opened * (e.g., a parent menu in the menu system) is returned to (as {@code onShow}). */ public void onScreenOpened() { if (!SortOrderSystem.isInSortOrder()) { addOrRemove(true); } TabbingManager.setOpenScreen(this); }
@Override public void update(float delta) { if (contents != null) { if (!TabbingManager.isInitialized()) { TabbingManager.init(); TabbingManager.setOpenScreen(this); Iterator<UIWidget> widgets = contents.iterator(); iterateThrough(widgets); } 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 TabbingUIButton()); } } }