Class GuiYesNo

  • All Implemented Interfaces:
    GuiYesNoCallback
    Direct Known Subclasses:
    GuiConfirmOpenLink

    public class GuiYesNo
    extends GuiScreen
    + This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
    • Field Detail

      • messageLine1

        protected java.lang.String messageLine1
      • confirmButtonText

        protected java.lang.String confirmButtonText
      • cancelButtonText

        protected java.lang.String cancelButtonText
      • parentButtonClickedId

        protected int parentButtonClickedId
    • Constructor Detail

      • GuiYesNo

        public GuiYesNo​(GuiYesNoCallback parGuiYesNoCallback,
                        java.lang.String parString1,
                        java.lang.String parString2,
                        int parInt1)
      • GuiYesNo

        public GuiYesNo​(GuiYesNoCallback parGuiYesNoCallback,
                        java.lang.String parString1,
                        java.lang.String parString2,
                        java.lang.String parString3,
                        java.lang.String parString4,
                        int parInt1)
    • Method Detail

      • initGui

        public void initGui()
        + Adds the buttons (and other controls) to the screen in question. Called when the GUI is displayed and when the window resizes, the buttonList is cleared beforehand.
        Overrides:
        initGui in class GuiScreen
      • actionPerformed

        protected void actionPerformed​(GuiButton parGuiButton)
        + Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
        Overrides:
        actionPerformed in class GuiScreen
      • drawScreen

        public void drawScreen​(int i,
                               int j,
                               float f)
        + Draws the screen and all the components in it. Args : mouseX, mouseY, renderPartialTicks
        Overrides:
        drawScreen in class GuiScreen
      • setButtonDelay

        public void setButtonDelay​(int parInt1)
        + Sets the number of ticks to wait before enabling the buttons.
      • updateScreen

        public void updateScreen()
        + Called from the main game loop to update the screen.
        Overrides:
        updateScreen in class GuiScreen
      • withOpaqueBackground

        public GuiYesNo withOpaqueBackground()