@Environment(value=CLIENT) public class VideoOptionsScreen extends GameOptionsScreen
Modifier and Type | Field and Description |
---|---|
private static Text |
GRAPHICS_FABULOUS_TEXT |
private static Text |
GRAPHICS_WARNING_ACCEPT_TEXT |
private static Text |
GRAPHICS_WARNING_CANCEL_TEXT |
private static Text |
GRAPHICS_WARNING_MESSAGE_TEXT |
private static Text |
GRAPHICS_WARNING_TITLE_TEXT |
private ButtonListWidget |
list |
private int |
mipmapLevels |
private static Text |
NEWLINE_TEXT |
private static Option[] |
OPTIONS |
private VideoWarningManager |
warningManager |
gameOptions, parent
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
VideoOptionsScreen(Screen parent,
GameOptions options) |
Modifier and Type | Method and Description |
---|---|
protected void |
init()
Called when a screen should be initialized.
|
boolean |
mouseClicked(double mouseX,
double mouseY,
int button)
Callback for when a mouse button down event
has been captured.
|
boolean |
mouseReleased(double mouseX,
double mouseY,
int button)
Callback for when a mouse button release event
has been captured.
|
void |
removed() |
void |
render(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
getHoveredButtonTooltip, onClose
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
getFocused, isDragging, setDragging, setFocused
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseScrolled, setInitialFocus
mouseMoved
private static final Text GRAPHICS_FABULOUS_TEXT
private static final Text GRAPHICS_WARNING_MESSAGE_TEXT
private static final Text GRAPHICS_WARNING_TITLE_TEXT
private static final Text GRAPHICS_WARNING_ACCEPT_TEXT
private static final Text GRAPHICS_WARNING_CANCEL_TEXT
private static final Text NEWLINE_TEXT
private static final Option[] OPTIONS
private ButtonListWidget list
private final VideoWarningManager warningManager
private final int mipmapLevels
public VideoOptionsScreen(Screen parent, GameOptions options)
protected void init()
This method is called when this screen is opened
or resized.
public void removed()
removed
in class GameOptionsScreen
public boolean mouseClicked(double mouseX, double mouseY, int button)
GLFW
class.mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button numbertrue
to indicate that the event handling is successful/validMouse.onMouseButton(long, int, int, int)
,
GLFW.GLFW_MOUSE_BUTTON_1
public boolean mouseReleased(double mouseX, double mouseY, int button)
GLFW
class.mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button numbertrue
to indicate that the event handling is successful/validMouse.onMouseButton(long, int, int, int)
,
GLFW.GLFW_MOUSE_BUTTON_1
public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)