Allow disabling of the skill icons on XP drops
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user