Hide only inside of minimap but not logout
In normal resizable mode hide only insides of minimap but not logout button when hiding minimap. Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
@@ -125,7 +125,14 @@ public class MinimapPlugin extends Plugin
|
||||
|
||||
if (resizableNormalWidget != null && !resizableNormalWidget.isSelfHidden())
|
||||
{
|
||||
resizableNormalWidget.setHidden(enable);
|
||||
for (Widget widget : resizableNormalWidget.getStaticChildren())
|
||||
{
|
||||
if (widget.getId() != WidgetInfo.RESIZABLE_VIEWPORT_BOTTOM_LINE_LOGOUT_BUTTON.getId() &&
|
||||
widget.getId() != WidgetInfo.RESIZABLE_MINIMAP_LOGOUT_BUTTON.getId())
|
||||
{
|
||||
widget.setHidden(enable);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user