skill calculator: turn indicators orange for actions that will become available before target
This commit is contained in:
@@ -246,6 +246,7 @@ class SkillCalculator extends JPanel
|
|||||||
|
|
||||||
slot.setText("Lvl. " + action.getLevel() + " (" + formatXPActionString(xp, actionCount, "exp) - "));
|
slot.setText("Lvl. " + action.getLevel() + " (" + formatXPActionString(xp, actionCount, "exp) - "));
|
||||||
slot.setAvailable(currentLevel >= action.getLevel());
|
slot.setAvailable(currentLevel >= action.getLevel());
|
||||||
|
slot.setOverlapping(action.getLevel() < targetLevel);
|
||||||
slot.setValue((int) xp);
|
slot.setValue((int) xp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,6 +75,9 @@ class UIActionSlot extends JPanel
|
|||||||
@Getter(AccessLevel.PACKAGE)
|
@Getter(AccessLevel.PACKAGE)
|
||||||
private boolean isSelected;
|
private boolean isSelected;
|
||||||
|
|
||||||
|
@Getter(AccessLevel.PACKAGE)
|
||||||
|
private boolean isOverlapping;
|
||||||
|
|
||||||
@Getter(AccessLevel.PACKAGE)
|
@Getter(AccessLevel.PACKAGE)
|
||||||
@Setter(AccessLevel.PACKAGE)
|
@Setter(AccessLevel.PACKAGE)
|
||||||
private int value = 0;
|
private int value = 0;
|
||||||
@@ -152,6 +155,12 @@ class UIActionSlot extends JPanel
|
|||||||
this.updateBackground();
|
this.updateBackground();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void setOverlapping(boolean overlapping)
|
||||||
|
{
|
||||||
|
isOverlapping = overlapping;
|
||||||
|
this.updateBackground();
|
||||||
|
}
|
||||||
|
|
||||||
void setText(String text)
|
void setText(String text)
|
||||||
{
|
{
|
||||||
uiLabelActions.setText(text);
|
uiLabelActions.setText(text);
|
||||||
@@ -163,6 +172,10 @@ class UIActionSlot extends JPanel
|
|||||||
{
|
{
|
||||||
this.setBorder(GREEN_BORDER);
|
this.setBorder(GREEN_BORDER);
|
||||||
}
|
}
|
||||||
|
else if (isOverlapping)
|
||||||
|
{
|
||||||
|
this.setBorder(ORANGE_BORDER);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.setBorder(RED_BORDER);
|
this.setBorder(RED_BORDER);
|
||||||
|
|||||||
Reference in New Issue
Block a user