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, fontRenderer, height, itemRender, keyHandled, labelList, mc, mouseHandled, selectedButton, widthICONS, 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, drawDefaultBackground, drawHoveringText, drawHoveringText, drawHoveringText, drawWorldBackground, getClipboardString, getItemToolTip, handleComponentClick, handleComponentHover, handleInput, handleKeyboardInput, handleMouseInput, isAltKeyDown, isCtrlKeyDown, isFocused, isKeyComboCtrlA, isKeyComboCtrlC, isKeyComboCtrlV, isKeyComboCtrlX, isShiftKeyDown, keyTyped, mouseClicked, mouseClickMove, mouseReleased, onGuiClosed, onResize, renderToolTip, sendChatMessage, sendChatMessage, setClipboardString, setFocused, setGuiSize, setText, setWorldAndResolutiondrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLineprotected 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 GuiScreenjava.io.IOExceptionpublic void drawScreen(int mouseX,
int mouseY,
float partialTicks)
drawScreen in class GuiScreenpublic void setButtonDelay(int ticksUntilEnableIn)
public void updateScreen()
updateScreen in class GuiScreen