Class MenuButton

    • Field Detail

      • stringX

        private int stringX
      • stringY

        private int stringY
      • didSetStringCoords

        private boolean didSetStringCoords
      • font

        public static org.newdawn.slick.Font font
      • text

        private final java.lang.String text
        String that is displayed on the button
      • disabledColor

        private final org.newdawn.slick.Color disabledColor
      • enabledColor

        private final org.newdawn.slick.Color enabledColor
      • hoverColor

        private final org.newdawn.slick.Color hoverColor
      • textColor

        private final org.newdawn.slick.Color textColor
      • hoverTextColor

        private final org.newdawn.slick.Color hoverTextColor
      • currentColor

        private org.newdawn.slick.Color currentColor
        The color that is currently being used for the button
      • currentTextColor

        private org.newdawn.slick.Color currentTextColor
        The color that is currently being used for the text
    • Constructor Detail

      • MenuButton

        public MenuButton​(java.lang.String text,
                          boolean isEnabledByDefault,
                          int x,
                          int y,
                          int width,
                          int height)
    • Method Detail

      • setStringCoords

        private void setStringCoords​(org.newdawn.slick.Font font)
      • render

        public void render​(org.newdawn.slick.Graphics graphics)
        Overrides:
        render in class UIElement