if (levelDownText == null) {
levelDownText = messages.getString("Handler.UserFeedbackLevelListener.levelDown");
}
}
CenteredTextPanel textPanel = new CenteredTextPanel();
if (levelChange > 0) {
textPanel.setText(levelUpText);
} else {
textPanel.setText(levelDownText);
}
GenericContentExecutable changeLevelExecutable = new GenericContentExecutable();
changeLevelExecutable.addContent(Region.CENTER, textPanel);
changeLevelExecutable.setDisplayDuration(duration);
Misc.getOutcomeProperty().setValue(changeLevelExecutable, ExecutionOutcome.SKIP);