當前位置: 首頁>>代碼示例>>Java>>正文


Java UI.enter方法代碼示例

本文整理匯總了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;
	}
}
 
開發者ID:yugecin,項目名稱:opsu-dance,代碼行數:23,代碼來源:DownloadsMenu.java

示例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();
}
 
開發者ID:yugecin,項目名稱:opsu-dance,代碼行數:17,代碼來源:GameRanking.java

示例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;
	}
}
 
開發者ID:itdelatrisu,項目名稱:opsu,代碼行數:23,代碼來源:DownloadsMenu.java

示例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();
}
 
開發者ID:itdelatrisu,項目名稱:opsu,代碼行數:25,代碼來源:GameRanking.java

示例5: enter

import itdelatrisu.opsu.ui.UI; //導入方法依賴的package包/類
@Override
public void enter() {
	super.enter();

	UI.enter();
	MusicController.pause();
	continueButton.resetHover();
	retryButton.resetHover();
	backButton.resetHover();
}
 
開發者ID:yugecin,項目名稱:opsu-dance,代碼行數:11,代碼來源:GamePauseMenu.java

示例6: enter

import itdelatrisu.opsu.ui.UI; //導入方法依賴的package包/類
@Override
public void enter() {
	super.enter();

	UI.enter();
	menuState.enter();
}
 
開發者ID:yugecin,項目名稱:opsu-dance,代碼行數:8,代碼來源:ButtonMenu.java

示例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();
}
 
開發者ID:itdelatrisu,項目名稱:opsu,代碼行數:10,代碼來源:GamePauseMenu.java

示例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);
}
 
開發者ID:itdelatrisu,項目名稱:opsu,代碼行數:8,代碼來源:ButtonMenu.java

示例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());
}
 
開發者ID:itdelatrisu,項目名稱:opsu,代碼行數:68,代碼來源:MainMenu.java


注:本文中的itdelatrisu.opsu.ui.UI.enter方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。