mousehighlight: Add toggle to hide spellbook tooltips (#11924)
This prevents mouse tooltips from covering the vanilla client spell tooltips.
This commit is contained in:
@@ -52,4 +52,15 @@ public interface MouseHighlightConfig extends Config
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
position = 2,
|
||||||
|
keyName = "disableSpellbooktooltip",
|
||||||
|
name = "Disable Spellbook Tooltips",
|
||||||
|
description = "Disable Spellbook Tooltips so they don't cover descriptions"
|
||||||
|
)
|
||||||
|
default boolean disableSpellbooktooltip()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ import net.runelite.api.MenuAction;
|
|||||||
import net.runelite.api.MenuEntry;
|
import net.runelite.api.MenuEntry;
|
||||||
import net.runelite.api.VarClientInt;
|
import net.runelite.api.VarClientInt;
|
||||||
import net.runelite.api.widgets.Widget;
|
import net.runelite.api.widgets.Widget;
|
||||||
|
import net.runelite.api.widgets.WidgetID;
|
||||||
import net.runelite.api.widgets.WidgetInfo;
|
import net.runelite.api.widgets.WidgetInfo;
|
||||||
import net.runelite.client.ui.overlay.Overlay;
|
import net.runelite.client.ui.overlay.Overlay;
|
||||||
import net.runelite.client.ui.overlay.OverlayPosition;
|
import net.runelite.client.ui.overlay.OverlayPosition;
|
||||||
@@ -116,6 +117,11 @@ class MouseHighlightOverlay extends Overlay
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.disableSpellbooktooltip() && groupId == WidgetID.SPELLBOOK_GROUP_ID)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (widget != null)
|
if (widget != null)
|
||||||
{
|
{
|
||||||
// If this varc is set, some CS is showing tooltip
|
// If this varc is set, some CS is showing tooltip
|
||||||
|
|||||||
Reference in New Issue
Block a user