本文整理汇总了Java中itdelatrisu.opsu.ui.UI.enter方法的典型用法代码示例。如果您正苦于以下问题:Java UI.enter方法的具体用法?Java UI.enter怎么用?Java UI.enter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类itdelatrisu.opsu.ui.UI
的用法示例。
在下文中一共展示了UI.enter方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: enter
import itdelatrisu.opsu.ui.UI; //导入方法依赖的package包/类
@Override
public void enter() {
super.enter();
UI.enter();
prevPage.resetHover();
nextPage.resetHover();
clearButton.resetHover();
importButton.resetHover();
resetButton.resetHover();
rankedButton.resetHover();
serverMenu.reset();
focusResult = -1;
startResultPos.setPosition(0);
startDownloadIndexPos.setPosition(0);
pageDir = Page.RESET;
previewID = -1;
if (barNotificationOnLoad != null) {
BarNotifListener.EVENT.make().onBarNotif(barNotificationOnLoad);
barNotificationOnLoad = null;
}
}
示例2: enter
import itdelatrisu.opsu.ui.UI; //导入方法依赖的package包/类
@Override
public void enter() {
super.enter();
UI.enter();
if (!data.isGameplay()) {
if (!MusicController.isTrackDimmed())
MusicController.toggleTrackDimmed(0.5f);
replayButton.setY(retryY);
} else {
SoundController.playSound(SoundEffect.APPLAUSE);
retryButton.resetHover();
replayButton.setY(!GameMod.AUTO.isActive() ? replayY : retryY);
}
replayButton.resetHover();
}
示例3: enter
import itdelatrisu.opsu.ui.UI; //导入方法依赖的package包/类
@Override
public void enter(GameContainer container, StateBasedGame game)
throws SlickException {
UI.enter();
prevPage.resetHover();
nextPage.resetHover();
clearButton.resetHover();
importButton.resetHover();
resetButton.resetHover();
rankedButton.resetHover();
serverMenu.activate();
serverMenu.reset();
focusResult = -1;
startResultPos.setPosition(0);
startDownloadIndexPos.setPosition(0);
pageDir = Page.RESET;
previewID = -1;
if (barNotificationOnLoad != null) {
UI.getNotificationManager().sendBarNotification(barNotificationOnLoad);
barNotificationOnLoad = null;
}
}
示例4: enter
import itdelatrisu.opsu.ui.UI; //导入方法依赖的package包/类
@Override
public void enter(GameContainer container, StateBasedGame game)
throws SlickException {
UI.enter();
Display.setTitle(game.getTitle());
if (!data.isGameplay()) {
if (!MusicController.isTrackDimmed())
MusicController.toggleTrackDimmed(0.5f);
replayButton.setY(retryY);
animationProgress.setTime(animationProgress.getDuration());
} else {
SoundController.playSound(SoundEffect.APPLAUSE);
retryButton.resetHover();
if (GameMod.AUTO.isActive()) {
replayButton.setY(retryY);
animationProgress.setTime(animationProgress.getDuration());
} else {
replayButton.setY(replayY);
animationProgress.setTime(0);
}
}
replayButton.resetHover();
loadReplay();
}
示例5: enter
import itdelatrisu.opsu.ui.UI; //导入方法依赖的package包/类
@Override
public void enter() {
super.enter();
UI.enter();
MusicController.pause();
continueButton.resetHover();
retryButton.resetHover();
backButton.resetHover();
}
示例6: enter
import itdelatrisu.opsu.ui.UI; //导入方法依赖的package包/类
@Override
public void enter() {
super.enter();
UI.enter();
menuState.enter();
}
示例7: enter
import itdelatrisu.opsu.ui.UI; //导入方法依赖的package包/类
@Override
public void enter(GameContainer container, StateBasedGame game)
throws SlickException {
UI.enter();
MusicController.pause();
continueButton.resetHover();
retryButton.resetHover();
backButton.resetHover();
}
示例8: enter
import itdelatrisu.opsu.ui.UI; //导入方法依赖的package包/类
@Override
public void enter(GameContainer container, StateBasedGame game)
throws SlickException {
UI.enter();
if (menuState != null)
menuState.enter(container, game);
}
示例9: enter
import itdelatrisu.opsu.ui.UI; //导入方法依赖的package包/类
@Override
public void enter(GameContainer container, StateBasedGame game)
throws SlickException {
UI.enter();
if (!enterNotification) {
if (Updater.get().getStatus() == Updater.Status.UPDATE_AVAILABLE) {
UI.getNotificationManager().sendNotification("A new update is available!", Colors.GREEN);
enterNotification = true;
} else if (Updater.get().justUpdated()) {
String updateMessage = OpsuConstants.PROJECT_NAME + " is now up to date!";
final String version = Updater.get().getCurrentVersion();
if (version != null && Desktop.isDesktopSupported() && Desktop.getDesktop().isSupported(Desktop.Action.BROWSE)) {
updateMessage += "\nClick to see what changed!";
UI.getNotificationManager().sendNotification(updateMessage, Colors.GREEN, new NotificationListener() {
@Override
public void click() {
try {
Desktop.getDesktop().browse(OpsuConstants.getChangelogURI(version));
} catch (IOException e) {
UI.getNotificationManager().sendBarNotification("The web page could not be opened.");
}
}
});
} else
UI.getNotificationManager().sendNotification(updateMessage);
enterNotification = true;
}
}
// reset measure info
lastMeasureProgress = 0f;
starFountain.clear();
// reset button hover states if mouse is not currently hovering over the button
int mouseX = input.getMouseX(), mouseY = input.getMouseY();
if (!logo.contains(mouseX, mouseY, 0.25f))
logo.resetHover();
if (!playButton.contains(mouseX, mouseY, 0.25f))
playButton.resetHover();
if (!exitButton.contains(mouseX, mouseY, 0.25f))
exitButton.resetHover();
if (!musicPlay.contains(mouseX, mouseY))
musicPlay.resetHover();
if (!musicPause.contains(mouseX, mouseY))
musicPause.resetHover();
if (!musicNext.contains(mouseX, mouseY))
musicNext.resetHover();
if (!musicPrevious.contains(mouseX, mouseY))
musicPrevious.resetHover();
if (repoButton != null && !repoButton.contains(mouseX, mouseY))
repoButton.resetHover();
updateButton.resetHover();
restartButton.resetHover();
if (!downloadsButton.contains(mouseX, mouseY))
downloadsButton.resetHover();
if (!userButton.contains(mouseX, mouseY))
userButton.resetHover();
// reset overlays
optionsOverlay.deactivate();
optionsOverlay.reset();
showOptionsOverlay = false;
optionsOverlayProgress.setTime(optionsOverlayProgress.getDuration());
userOverlay.deactivate();
showUserOverlay = false;
userOverlayProgress.setTime(userOverlayProgress.getDuration());
}