Allow disabling of the skill icons on XP drops

This commit is contained in:
Kamiel
2018-03-06 10:09:19 +01:00
parent 48966a9ab5
commit 226c9596fc
2 changed files with 17 additions and 1 deletions

View File

@@ -36,6 +36,16 @@ import net.runelite.client.config.ConfigItem;
)
public interface XpDropConfig extends Config
{
@ConfigItem(
keyName = "hideSkillIcons",
name = "Hide skill icons",
description = "Configure if XP drops will show their respective skill icons"
)
default boolean hideSkillIcons()
{
return false;
}
@ConfigItem(
keyName = "meleePrayerColor",
name = "Melee Prayer Color",

View File

@@ -66,12 +66,18 @@ public class XpDropPlugin extends Plugin
return;
}
PrayerType prayer = getActivePrayerType();
if (widget.isHidden())
{
return;
}
if (config.hideSkillIcons() && widget.getSpriteId() > 0)
{
widget.setHidden(true);
return;
}
PrayerType prayer = getActivePrayerType();
if (prayer == null)
{
resetTextColor(widget);