Package group24.escaperoom.screens
Class MenuScreen
java.lang.Object
com.badlogic.gdx.InputAdapter
com.badlogic.gdx.scenes.scene2d.Stage
group24.escaperoom.screens.AbstractScreen
group24.escaperoom.screens.MenuScreen
- All Implemented Interfaces:
com.badlogic.gdx.InputProcessor,com.badlogic.gdx.Screen,com.badlogic.gdx.utils.Disposable
- Direct Known Subclasses:
GameSummaryScreen,LeaderboardScreen,LoginScreen,MainMenuScreen,MapSelectScreen,OnlineMainMenu
-
Nested Class Summary
Nested classes/interfaces inherited from class com.badlogic.gdx.scenes.scene2d.Stage
com.badlogic.gdx.scenes.scene2d.Stage.TouchFocus -
Field Summary
Fields inherited from class group24.escaperoom.screens.AbstractScreen
fillView, followActor, inputPlex, SCREEN_HEIGHT, SCREEN_WIDTH, skin, spriteBatch, sprites, WORLD_HEIGHT, WORLD_WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> voidwaitFor(CompletableFuture<T> future, Function<T, Void> onComplete) Given some future, wait for that future off the render thread then runonCompleteon its result on the render thread Displays "Loading" to the user.<T> voidwaitFor(CompletableFuture<T> future, Function<T, Void> onComplete, com.badlogic.gdx.scenes.scene2d.Actor loadActor) <T> voidwaitFor(CompletableFuture<T> future, Function<T, Void> onComplete, String loadMessage) Given some future, wait for that future off the render thread then runonCompleteon its result on the render threadMethods inherited from class group24.escaperoom.screens.AbstractScreen
act, addInputProcessor, addPollable, addSprite, addUI, dispose, gameCoordToUI, getNotificationOverlay, getUIStage, hide, init, pause, removePollable, render, resize, resume, show, UIcoordToGameMethods inherited from class com.badlogic.gdx.scenes.scene2d.Stage
act, actorRemoved, addAction, addActor, addCaptureListener, addListener, addTouchFocus, calculateScissors, cancelTouchFocus, cancelTouchFocus, cancelTouchFocusExcept, clear, draw, getActionsRequestRendering, getActors, getBatch, getCamera, getDebugColor, getHeight, getKeyboardFocus, getRoot, getScrollFocus, getViewport, getWidth, hit, isDebugAll, isInsideViewport, keyDown, keyTyped, keyUp, mouseMoved, removeCaptureListener, removeListener, removeTouchFocus, screenToStageCoordinates, scrolled, setActionsRequestRendering, setDebugAll, setDebugInvisible, setDebugParentUnderMouse, setDebugTableUnderMouse, setDebugTableUnderMouse, setDebugUnderMouse, setKeyboardFocus, setRoot, setScrollFocus, setViewport, stageToScreenCoordinates, toScreenCoordinates, touchCancelled, touchDown, touchDragged, touchUp, unfocus, unfocusAll
-
Constructor Details
-
MenuScreen
public MenuScreen()
-
-
Method Details
-
waitFor
public <T> void waitFor(CompletableFuture<T> future, Function<T, Void> onComplete, com.badlogic.gdx.scenes.scene2d.Actor loadActor) -
waitFor
public <T> void waitFor(CompletableFuture<T> future, Function<T, Void> onComplete, String loadMessage) Given some future, wait for that future off the render thread then runonCompleteon its result on the render thread -
waitFor
Given some future, wait for that future off the render thread then runonCompleteon its result on the render thread Displays "Loading" to the user. Optionally, callwaitFor(CompletableFuture, Function, String)to specify the load message
-