added total level to highscores/skill enum

This commit is contained in:
noremac201
2017-05-13 10:27:21 -05:00
parent 769166ced0
commit e54f9e4c8a
2 changed files with 5 additions and 1 deletions

View File

@@ -49,7 +49,8 @@ public enum Skill
FARMING("Farming"),
RUNECRAFT("Runecraft"),
HUNTER("Hunter"),
CONSTRUCTION("Construction");
CONSTRUCTION("Construction"),
OVERALL("Overall");
private final String name;

View File

@@ -78,6 +78,7 @@ public class HiscorePanel extends PluginPanel
private final JLabel farmingLabel = new JLabel("--");
private final JLabel constructionLabel = new JLabel("--");
private final JLabel hunterLabel = new JLabel("--");
private final JLabel overallLabel = new JLabel("--");
private GridLayout stats;
@@ -135,6 +136,7 @@ public class HiscorePanel extends PluginPanel
statsPanel.add(makeSkillPanel(Skill.FARMING, farmingLabel));
statsPanel.add(makeSkillPanel(Skill.CONSTRUCTION, constructionLabel));
statsPanel.add(makeSkillPanel(Skill.HUNTER, hunterLabel));
statsPanel.add(makeSkillPanel(Skill.OVERALL, overallLabel));
}
catch (IOException ex)
{
@@ -210,6 +212,7 @@ public class HiscorePanel extends PluginPanel
setLabel(runecraftLabel, result.getRunecraft());
setLabel(hunterLabel, result.getHunter());
setLabel(constructionLabel, result.getConstruction());
setLabel(overallLabel, result.getOverall());
}
private void setLabel(JLabel label, net.runelite.http.api.hiscore.Skill skill)