xp tracker: add option to sort skills by most recently gained xp
This commit is contained in:
@@ -251,6 +251,11 @@ class XpInfoBox extends JPanel
|
|||||||
panel.revalidate();
|
panel.revalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (xpTrackerConfig.prioritizeRecentXpSkills())
|
||||||
|
{
|
||||||
|
panel.setComponentZOrder(this, 0);
|
||||||
|
}
|
||||||
|
|
||||||
paused = skillPaused;
|
paused = skillPaused;
|
||||||
|
|
||||||
// Update progress bar
|
// Update progress bar
|
||||||
|
|||||||
@@ -177,4 +177,15 @@ public interface XpTrackerConfig extends Config
|
|||||||
{
|
{
|
||||||
return XpProgressBarLabel.PERCENTAGE;
|
return XpProgressBarLabel.PERCENTAGE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
position = 12,
|
||||||
|
keyName = "prioritizeRecentXpSkills",
|
||||||
|
name = "Move recently trained skills to top",
|
||||||
|
description = "Configures whether skills should be organized by most recently gained xp"
|
||||||
|
)
|
||||||
|
default boolean prioritizeRecentXpSkills()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user