@Override public void onOpened() { super.onOpened(); if (creditsScroll != null) { creditsScroll.resetScrolling(); } }
@Override public void onOpened() { super.onOpened(); initializeWithInteractionTarget(getInteractionTarget()); }
@Override public void onOpened() { super.onOpened(); getManager().setFocus(commandLine); }
@Override public void onOpened() { super.onOpened(); refreshContent(); addGroupEnablingListener(); }
@Override public void onOpened() { super.onOpened(); getAnimationSystem().skip(); }
@Override public void onOpened() { super.onOpened(); if (username != null) { username.setText(config.getPlayer().getName()); } }
@Override public void onOpened() { super.onOpened(); getManager().setFocus(commandLine); if (!welcomePrinted) { console.addMessage("Welcome to the wonderful world of Terasology!" + Console.NEW_LINE + Console.NEW_LINE + "Type 'help' to see a list with available commands or 'help <commandName>' for command details." + Console.NEW_LINE + "Text parameters do not need quotes, unless containing spaces. No commas between parameters." + Console.NEW_LINE + "You can use auto-completion by typing a partial command then hitting [tab] - examples:" + Console.NEW_LINE + Console.NEW_LINE + "gh + [tab] => 'ghost'" + Console.NEW_LINE + "help gh + [tab] => 'help ghost' (can auto complete commands fed to help)" + Console.NEW_LINE + "giv + [tab] => 'give givePermission' (use [tab] again to cycle between choices)" + Console.NEW_LINE + "lS + [tab] => 'listShapes' (camel casing abbreviated commands)" + Console.NEW_LINE); welcomePrinted = true; } }
@Override public void onOpened() { super.onOpened(); serverInfo = null; successFunc = null; ownerText.setText(null); nameText.setText(null); addressText.setText(null); portText.setText(Integer.toString(TerasologyConstants.DEFAULT_PORT)); portText.setCursorPosition(portText.getText().length()); getManager().setFocus(nameText); }
@Override public void onOpened() { super.onOpened(); for (ModuleSelectionInfo info : sortedModules) { info.setExplicitSelection(config.getDefaultModSelection().hasModule(info.getMetadata().getId())); } refreshSelection(); filterModules(); }
@Override public void onOpened() { super.onOpened(); infoService = new ServerInfoService(); if (!config.getPlayer().hasEnteredUsername()) { getManager().pushScreen(EnterUsernamePopup.ASSET_URI, EnterUsernamePopup.class); } if (storageServiceWorker.hasConflictingIdentities()) { new IdentityConflictHelper(storageServiceWorker, getManager(), translationSystem).runSolver(); } }
@Override public void onOpened() { super.onOpened(); if (!isScreenValid()) { final MessagePopup popup = getManager().createScreen(MessagePopup.ASSET_URI, MessagePopup.class); popup.setMessage(translationSystem.translate("${engine:menu#game-details-errors-message-title}"), translationSystem.translate("${engine:menu#game-details-errors-message-body}")); popup.subscribeButton(e -> triggerBackAnimation()); getManager().pushScreen(popup); // disable child widgets setEnabled(false); } }
@Override public void onOpened() { super.onOpened(); if (isScreenValid()) { errors = new ArrayList<>(); loadGeneralInfo(); loadGameModules(); loadBiomes(); loadBlocks(); loadGameWorlds(); if (!errors.isEmpty()) { showErrors(); } tabs.select(0); showErrors.setEnabled(!errors.isEmpty()); } else { final MessagePopup popup = getManager().createScreen(MessagePopup.ASSET_URI, MessagePopup.class); popup.setMessage(translationSystem.translate("${engine:menu#game-details-errors-message-title}"), translationSystem.translate("${engine:menu#game-details-errors-message-body}")); popup.subscribeButton(e -> triggerBackAnimation()); getManager().pushScreen(popup); // disable child widgets setEnabled(false); } }
@Override public void onOpened() { super.onOpened(); if (nametext != null) { nametext.setText(config.getPlayer().getName()); } if (slider != null) { Color color = config.getPlayer().getColor(); slider.bindValue(new NotifyingBinding(findClosestIndex(color))); } if (heightSlider != null) { heightSlider.bindValue(new NotifyingBinding(config.getPlayer().getHeight())); } if (eyeHeightSlider != null) { eyeHeightSlider.bindValue(new NotifyingBinding(config.getPlayer().getEyeHeight())); } if (discordPresence != null) { discordPresence.setChecked(config.getPlayer().isDiscordPresence()); } if (language != null) { language.setSelection(config.getSystem().getLocale()); } updateImage(); }