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

public abstract class MenuScreen extends AbstractScreen
  • 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 run onComplete on its result on the render thread
    • waitFor

      public <T> void waitFor(CompletableFuture<T> future, Function<T,Void> onComplete)
      Given some future, wait for that future off the render thread then run onComplete on its result on the render thread Displays "Loading" to the user. Optionally, call waitFor(CompletableFuture, Function, String) to specify the load message