Class NotificationBanner
- java.lang.Object
-
- net.egartley.beyondorigins.core.abstracts.Renderable
-
- net.egartley.beyondorigins.core.ui.UIElement
-
- net.egartley.beyondorigins.core.ui.NotificationBanner
-
-
Field Summary
Fields Modifier and Type Field Description boolean
done
private static org.newdawn.slick.Font
font
org.newdawn.slick.Image
icon
java.lang.String[]
lines
private int
move
private int
offset
private boolean
reachedTargetY
private boolean
readyToMoveAgain
private static double
SHOW_DELAY
private boolean
shown
private static double
SLIDE_DELAY
private boolean
startedAnimation
private static int
startY
private static int
targetY
-
Constructor Summary
Constructors Constructor Description NotificationBanner(java.lang.String text)
NotificationBanner(java.lang.String text, java.lang.String iconFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
drawLine(java.lang.String line, org.newdawn.slick.Graphics graphics)
void
render(org.newdawn.slick.Graphics graphics)
private void
slideDown()
private void
slideUp()
void
tick()
-
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
-
lines
public java.lang.String[] lines
-
icon
public org.newdawn.slick.Image icon
-
done
public boolean done
-
offset
private int offset
-
move
private final int move
- See Also:
- Constant Field Values
-
startedAnimation
private boolean startedAnimation
-
readyToMoveAgain
private boolean readyToMoveAgain
-
reachedTargetY
private boolean reachedTargetY
-
shown
private boolean shown
-
startY
private static int startY
-
targetY
private static final int targetY
- See Also:
- Constant Field Values
-
SLIDE_DELAY
private static final double SLIDE_DELAY
- See Also:
- Constant Field Values
-
SHOW_DELAY
private static final double SHOW_DELAY
- See Also:
- Constant Field Values
-
font
private static final org.newdawn.slick.Font font
-
-