Class VideoOptionsScreen

All Implemented Interfaces:
Drawable, Element, ParentElement, TickableElement

@Environment(CLIENT)
public class VideoOptionsScreen
extends GameOptionsScreen
  • Field Details

    • GRAPHICS_FABULOUS_TEXT

      private static final Text GRAPHICS_FABULOUS_TEXT
    • GRAPHICS_WARNING_MESSAGE_TEXT

      private static final Text GRAPHICS_WARNING_MESSAGE_TEXT
    • GRAPHICS_WARNING_TITLE_TEXT

      private static final Text GRAPHICS_WARNING_TITLE_TEXT
    • GRAPHICS_WARNING_ACCEPT_TEXT

      private static final Text GRAPHICS_WARNING_ACCEPT_TEXT
    • GRAPHICS_WARNING_CANCEL_TEXT

      private static final Text GRAPHICS_WARNING_CANCEL_TEXT
    • NEWLINE_TEXT

      private static final Text NEWLINE_TEXT
    • OPTIONS

      private static final Option[] OPTIONS
    • list

      private ButtonListWidget list
    • warningManager

      private final VideoWarningManager warningManager
    • mipmapLevels

      private final int mipmapLevels
  • Constructor Details

    • VideoOptionsScreen

      public VideoOptionsScreen​(Screen parent, GameOptions options)
  • Method Details

    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
    • removed

      public void removed()
      Overrides:
      removed in class GameOptionsScreen
    • mouseClicked

      public boolean mouseClicked​(double mouseX, double mouseY, int button)
      Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mouse.onMouseButton(long, int, int, int), GLFW.GLFW_MOUSE_BUTTON_1
    • mouseReleased

      public boolean mouseReleased​(double mouseX, double mouseY, int button)
      Callback for when a mouse button release event has been captured. The button number is identified by the constants in GLFW class.
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mouse.onMouseButton(long, int, int, int), GLFW.GLFW_MOUSE_BUTTON_1
    • render

      public void render​(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen