Skip to content

Commit

Permalink
Make ToastManager.updateToastsPositions and member variables protected (
Browse files Browse the repository at this point in the history
  • Loading branch information
bploeckelman committed Dec 10, 2022
1 parent 20e14e3 commit fd84510
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ui/src/main/java/com/kotcrab/vis/ui/util/ToastManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@
public class ToastManager {
public static final int UNTIL_CLOSED = -1;

private final Group root;
protected final Group root;

private int screenPaddingX = 20;
private int screenPaddingY = 20;
private int messagePadding = 5;
private int alignment = Align.topRight;
protected int screenPaddingX = 20;
protected int screenPaddingY = 20;
protected int messagePadding = 5;
protected int alignment = Align.topRight;

private Array<Toast> toasts = new Array<Toast>();
private ObjectMap<Toast, Timer.Task> timersTasks = new ObjectMap<Toast, Timer.Task>();
protected Array<Toast> toasts = new Array<Toast>();
protected ObjectMap<Toast, Timer.Task> timersTasks = new ObjectMap<Toast, Timer.Task>();

/** Toast manager will create own group to host toasts and put it into the stage root. */
public ToastManager (Stage stage) {
Expand Down Expand Up @@ -186,7 +186,7 @@ public void toFront () {
root.toFront();
}

private void updateToastsPositions () {
protected void updateToastsPositions () {
boolean bottom = (alignment & Align.bottom) != 0;
boolean left = (alignment & Align.left) != 0;
float y = bottom ? screenPaddingY : root.getHeight() - screenPaddingY;
Expand Down

0 comments on commit fd84510

Please sign in to comment.