added total level to highscores/skill enum
This commit is contained in:
@@ -49,7 +49,8 @@ public enum Skill
|
|||||||
FARMING("Farming"),
|
FARMING("Farming"),
|
||||||
RUNECRAFT("Runecraft"),
|
RUNECRAFT("Runecraft"),
|
||||||
HUNTER("Hunter"),
|
HUNTER("Hunter"),
|
||||||
CONSTRUCTION("Construction");
|
CONSTRUCTION("Construction"),
|
||||||
|
OVERALL("Overall");
|
||||||
|
|
||||||
private final String name;
|
private final String name;
|
||||||
|
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ public class HiscorePanel extends PluginPanel
|
|||||||
private final JLabel farmingLabel = new JLabel("--");
|
private final JLabel farmingLabel = new JLabel("--");
|
||||||
private final JLabel constructionLabel = new JLabel("--");
|
private final JLabel constructionLabel = new JLabel("--");
|
||||||
private final JLabel hunterLabel = new JLabel("--");
|
private final JLabel hunterLabel = new JLabel("--");
|
||||||
|
private final JLabel overallLabel = new JLabel("--");
|
||||||
|
|
||||||
private GridLayout stats;
|
private GridLayout stats;
|
||||||
|
|
||||||
@@ -135,6 +136,7 @@ public class HiscorePanel extends PluginPanel
|
|||||||
statsPanel.add(makeSkillPanel(Skill.FARMING, farmingLabel));
|
statsPanel.add(makeSkillPanel(Skill.FARMING, farmingLabel));
|
||||||
statsPanel.add(makeSkillPanel(Skill.CONSTRUCTION, constructionLabel));
|
statsPanel.add(makeSkillPanel(Skill.CONSTRUCTION, constructionLabel));
|
||||||
statsPanel.add(makeSkillPanel(Skill.HUNTER, hunterLabel));
|
statsPanel.add(makeSkillPanel(Skill.HUNTER, hunterLabel));
|
||||||
|
statsPanel.add(makeSkillPanel(Skill.OVERALL, overallLabel));
|
||||||
}
|
}
|
||||||
catch (IOException ex)
|
catch (IOException ex)
|
||||||
{
|
{
|
||||||
@@ -210,6 +212,7 @@ public class HiscorePanel extends PluginPanel
|
|||||||
setLabel(runecraftLabel, result.getRunecraft());
|
setLabel(runecraftLabel, result.getRunecraft());
|
||||||
setLabel(hunterLabel, result.getHunter());
|
setLabel(hunterLabel, result.getHunter());
|
||||||
setLabel(constructionLabel, result.getConstruction());
|
setLabel(constructionLabel, result.getConstruction());
|
||||||
|
setLabel(overallLabel, result.getOverall());
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setLabel(JLabel label, net.runelite.http.api.hiscore.Skill skill)
|
private void setLabel(JLabel label, net.runelite.http.api.hiscore.Skill skill)
|
||||||
|
|||||||
Reference in New Issue
Block a user