smol change
Adds an option to hide non-widget tooltips
This commit is contained in:
@@ -33,6 +33,17 @@ public interface MouseHighlightConfig extends Config
|
|||||||
{
|
{
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 0,
|
position = 0,
|
||||||
|
keyName = "mainTooltip",
|
||||||
|
name = "Main Tooltips",
|
||||||
|
description = "Whether or not tooltips are shown on things other than interfaces or the chatbox"
|
||||||
|
)
|
||||||
|
default boolean mainTooltip()
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ConfigItem(
|
||||||
|
position = 1,
|
||||||
keyName = "uiTooltip",
|
keyName = "uiTooltip",
|
||||||
name = "Interface Tooltips",
|
name = "Interface Tooltips",
|
||||||
description = "Whether or not tooltips are shown on interfaces"
|
description = "Whether or not tooltips are shown on interfaces"
|
||||||
@@ -43,7 +54,7 @@ public interface MouseHighlightConfig extends Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(
|
@ConfigItem(
|
||||||
position = 1,
|
position = 2,
|
||||||
keyName = "chatboxTooltip",
|
keyName = "chatboxTooltip",
|
||||||
name = "Chatbox Tooltips",
|
name = "Chatbox Tooltips",
|
||||||
description = "Whether or not tooltips are shown over the chatbox"
|
description = "Whether or not tooltips are shown over the chatbox"
|
||||||
@@ -53,13 +64,13 @@ public interface MouseHighlightConfig extends Config
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(position = 2, keyName = "hideSpells", name = "Spellbook", description = "Hides vanilla client tooltips in the spellbook")
|
@ConfigItem(position = 3, keyName = "hideSpells", name = "Spellbook", description = "Hides vanilla client tooltips in the spellbook")
|
||||||
default boolean shouldHideSpells()
|
default boolean shouldHideSpells()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ConfigItem(position = 3, keyName = "hideCombat", name = "Combat", description = "Hides vanilla client tooltips in the combat menu")
|
@ConfigItem(position = 4, keyName = "hideCombat", name = "Combat", description = "Hides vanilla client tooltips in the combat menu")
|
||||||
default boolean shouldHideCombat()
|
default boolean shouldHideCombat()
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -126,6 +126,10 @@ class MouseHighlightOverlay extends Overlay
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (widget == null && !config.mainTooltip()){
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
// If this varc is set, a tooltip is already being displayed
|
// If this varc is set, a tooltip is already being displayed
|
||||||
int tooltipDisplayed = client.getVar(VarClientInt.TOOLTIP_VISIBLE);
|
int tooltipDisplayed = client.getVar(VarClientInt.TOOLTIP_VISIBLE);
|
||||||
if (tooltipDisplayed == 1)
|
if (tooltipDisplayed == 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user