Class AccessibilityOnboardingScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class AccessibilityOnboardingScreen extends Screen
  • Field Details

    • TITLE

      private static final Component TITLE
    • ONBOARDING_NARRATOR_MESSAGE

      private static final Component ONBOARDING_NARRATOR_MESSAGE
    • PADDING

      private static final int PADDING
      See Also:
    • TITLE_PADDING

      private static final int TITLE_PADDING
      See Also:
    • logoRenderer

      private final LogoRenderer logoRenderer
    • options

      private final Options options
    • narratorAvailable

      private final boolean narratorAvailable
    • hasNarrated

      private boolean hasNarrated
    • timer

      private float timer
    • onClose

      private final Runnable onClose
    • textWidget

      @Nullable private FocusableTextWidget textWidget
    • layout

      private final HeaderAndFooterLayout layout
  • Constructor Details

    • AccessibilityOnboardingScreen

      public AccessibilityOnboardingScreen(Options pOptions, Runnable pOnClose)
  • Method Details

    • init

      public void init()
      Overrides:
      init in class Screen
    • repositionElements

      protected void repositionElements()
      Overrides:
      repositionElements in class Screen
    • setInitialFocus

      protected void setInitialFocus()
      Overrides:
      setInitialFocus in class Screen
    • initTitleYPos

      private int initTitleYPos()
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • closeAndSetScreen

      private void closeAndSetScreen(Screen pScreen)
    • close

      private void close(boolean pMarkAsFinished, Runnable pOnClose)
    • render

      public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      pGuiGraphics - the GuiGraphics object used for rendering.
      pMouseX - the x-coordinate of the mouse cursor.
      pMouseY - the y-coordinate of the mouse cursor.
      pPartialTick - the partial tick time.
    • renderPanorama

      protected void renderPanorama(GuiGraphics pGuiGraphics, float pPartialTick)
      Overrides:
      renderPanorama in class Screen
    • handleInitialNarrationDelay

      private void handleInitialNarrationDelay()