mousehighlight: don't show overlay if menu is open

This commit is contained in:
Adam
2017-04-29 18:39:24 -04:00
parent a46f96784f
commit cb3b9a653c
2 changed files with 10 additions and 0 deletions

View File

@@ -253,6 +253,11 @@ public class Client
return client.getMenuOptionCount();
}
public boolean isMenuOpen()
{
return client.isMenuOpen();
}
public int getMapScale()
{
return client.getMapScale();

View File

@@ -58,6 +58,11 @@ public class MouseHighlightOverlay extends Overlay
return null;
}
if (client.isMenuOpen())
{
return null;
}
String[] targets = client.getMenuTargets();
String[] options = client.getMenuOptions();
int count = client.getMenuCount() - 1;