public class GuiYesNo extends GuiScreen
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
cancelButtonText
The text shown for the second button in GuiYesNo
|
protected java.lang.String |
confirmButtonText
The text shown for the first button in GuiYesNo
|
protected java.lang.String |
messageLine1 |
protected int |
parentButtonClickedId |
protected GuiYesNoCallback |
parentScreen
A reference to the screen object that created this.
|
allowUserInput, buttonList, fontRendererObj, height, itemRender, keyHandled, labelList, mc, mouseHandled, width
ICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel
Constructor and Description |
---|
GuiYesNo(GuiYesNoCallback parentScreenIn,
java.lang.String messageLine1In,
java.lang.String messageLine2In,
int parentButtonClickedIdIn) |
GuiYesNo(GuiYesNoCallback parentScreenIn,
java.lang.String messageLine1In,
java.lang.String messageLine2In,
java.lang.String confirmButtonTextIn,
java.lang.String cancelButtonTextIn,
int parentButtonClickedIdIn) |
Modifier and Type | Method and Description |
---|---|
protected void |
actionPerformed(GuiButton button)
Called by the controls from the buttonList when activated.
|
void |
drawScreen(int mouseX,
int mouseY,
float partialTicks)
Draws the screen and all the components in it.
|
void |
initGui()
Adds the buttons (and other controls) to the screen in question.
|
void |
setButtonDelay(int ticksUntilEnableIn)
Sets the number of ticks to wait before enabling the buttons.
|
void |
updateScreen()
Called from the main game loop to update the screen.
|
addButton, confirmClicked, doesGuiPauseGame, drawBackground, drawCreativeTabHoveringText, drawDefaultBackground, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, keyTyped, mouseClicked, mouseClickMove, mouseReleased, onGuiClosed, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setGuiSize, setText, setWorldAndResolution
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
protected GuiYesNoCallback parentScreen
protected java.lang.String messageLine1
protected java.lang.String confirmButtonText
protected java.lang.String cancelButtonText
protected int parentButtonClickedId
public GuiYesNo(GuiYesNoCallback parentScreenIn, java.lang.String messageLine1In, java.lang.String messageLine2In, int parentButtonClickedIdIn)
public GuiYesNo(GuiYesNoCallback parentScreenIn, java.lang.String messageLine1In, java.lang.String messageLine2In, java.lang.String confirmButtonTextIn, java.lang.String cancelButtonTextIn, int parentButtonClickedIdIn)
public void initGui()
protected void actionPerformed(GuiButton button) throws java.io.IOException
actionPerformed
in class GuiScreen
java.io.IOException
public void drawScreen(int mouseX, int mouseY, float partialTicks)
drawScreen
in class GuiScreen
public void setButtonDelay(int ticksUntilEnableIn)
public void updateScreen()
updateScreen
in class GuiScreen