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
|
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(
|
@ConfigItem(
|
||||||
keyName = "meleePrayerColor",
|
keyName = "meleePrayerColor",
|
||||||
name = "Melee Prayer Color",
|
name = "Melee Prayer Color",
|
||||||
|
|||||||
@@ -66,12 +66,18 @@ public class XpDropPlugin extends Plugin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
PrayerType prayer = getActivePrayerType();
|
|
||||||
if (widget.isHidden())
|
if (widget.isHidden())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.hideSkillIcons() && widget.getSpriteId() > 0)
|
||||||
|
{
|
||||||
|
widget.setHidden(true);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
PrayerType prayer = getActivePrayerType();
|
||||||
if (prayer == null)
|
if (prayer == null)
|
||||||
{
|
{
|
||||||
resetTextColor(widget);
|
resetTextColor(widget);
|
||||||
|
|||||||
Reference in New Issue
Block a user