Merge pull request #5870 from Nightfirecat/dont-show-tooltips-for-world-map-dungeons

mouse tooltips: Don't add a tooltip if another is present
This commit is contained in:
Tomas Slusny
2018-10-08 10:31:44 +02:00
committed by GitHub
2 changed files with 13 additions and 0 deletions

View File

@@ -118,6 +118,13 @@ class MouseHighlightOverlay extends Overlay
}
}
// If this varc is set, a tooltip is already being displayed
int tooltipDisplayed = client.getVar(VarClientInt.TOOLTIP_VISIBLE);
if (tooltipDisplayed == 1)
{
return null;
}
tooltipManager.addFront(new Tooltip(option + (Strings.isNullOrEmpty(target) ? "" : " " + target)));
return null;
}