xp tracker: add option to sort skills by most recently gained xp

This commit is contained in:
MMagicala
2020-06-23 16:20:28 -07:00
committed by GitHub
parent b0677e68e9
commit b4de810865
2 changed files with 16 additions and 0 deletions

View File

@@ -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

View File

@@ -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;
}
} }