Class MenuButton
- java.lang.Object
-
- net.egartley.beyondorigins.core.abstracts.Renderable
-
- net.egartley.beyondorigins.core.ui.UIElement
-
- net.egartley.beyondorigins.core.ui.GenericButton
-
- net.egartley.beyondorigins.core.ui.MenuButton
-
- All Implemented Interfaces:
Tickable
public class MenuButton extends GenericButton
-
-
Field Summary
Fields Modifier and Type Field Description private org.newdawn.slick.Color
currentColor
The color that is currently being used for the buttonprivate org.newdawn.slick.Color
currentTextColor
The color that is currently being used for the textprivate boolean
didSetStringCoords
private org.newdawn.slick.Color
disabledColor
private org.newdawn.slick.Color
enabledColor
static org.newdawn.slick.Font
font
private org.newdawn.slick.Color
hoverColor
private org.newdawn.slick.Color
hoverTextColor
private int
stringX
private int
stringY
private java.lang.String
text
String that is displayed on the buttonprivate org.newdawn.slick.Color
textColor
-
Fields inherited from class net.egartley.beyondorigins.core.ui.GenericButton
clicked, isBeingHovered
-
-
Constructor Summary
Constructors Constructor Description MenuButton(java.lang.String text, boolean isEnabledByDefault, int x, int y, int width, int height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
render(org.newdawn.slick.Graphics graphics)
private void
setStringCoords(org.newdawn.slick.Font font)
void
tick()
-
Methods inherited from class net.egartley.beyondorigins.core.ui.GenericButton
checkClick, deregisterClicked, onClick, registerClicked
-
Methods inherited from class net.egartley.beyondorigins.core.ui.UIElement
isClickInBounds
-
Methods inherited from class net.egartley.beyondorigins.core.abstracts.Renderable
setPosition, x, x, y, y
-
-
-
-
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
-
-