Allow mouse tooltips on the welcome screen and full screen world map
Adjust the mouse highlight overlay to run at the same layers as the tooltip overlay. It always runs first due to having a lower position. I think previously tooltips from ui ops were 1 frame behind due to this being UNDER_WIDGETS. Additionally change the tooltip overlay to draw after the fullscreen tli instead of the world map interface. Having it render after the world map caused tooltips to render after the floating world map too, which is too early. The fullscreen tli is the root of both the fullscreen world map and of the welcome screen.
This commit is contained in:
@@ -62,7 +62,7 @@ public class WidgetInspectorOverlay extends Overlay
|
||||
setPosition(OverlayPosition.DYNAMIC);
|
||||
setLayer(OverlayLayer.ABOVE_WIDGETS);
|
||||
setPriority(OverlayPriority.HIGHEST);
|
||||
drawAfterInterface(WidgetID.FULLSCREEN_MAP_GROUP_ID);
|
||||
drawAfterInterface(WidgetID.FULLSCREEN_CONTAINER_TLI);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -37,6 +37,7 @@ import net.runelite.api.VarClientInt;
|
||||
import net.runelite.api.widgets.WidgetID;
|
||||
import net.runelite.api.widgets.WidgetInfo;
|
||||
import net.runelite.client.ui.overlay.Overlay;
|
||||
import net.runelite.client.ui.overlay.OverlayLayer;
|
||||
import net.runelite.client.ui.overlay.OverlayPosition;
|
||||
import net.runelite.client.ui.overlay.tooltip.Tooltip;
|
||||
import net.runelite.client.ui.overlay.tooltip.TooltipManager;
|
||||
@@ -80,6 +81,9 @@ class MouseHighlightOverlay extends Overlay
|
||||
MouseHighlightOverlay(Client client, TooltipManager tooltipManager, MouseHighlightConfig config)
|
||||
{
|
||||
setPosition(OverlayPosition.DYNAMIC);
|
||||
setLayer(OverlayLayer.ABOVE_WIDGETS);
|
||||
// additionally allow tooltips above the full screen world map and welcome screen
|
||||
drawAfterInterface(WidgetID.FULLSCREEN_CONTAINER_TLI);
|
||||
this.client = client;
|
||||
this.tooltipManager = tooltipManager;
|
||||
this.config = config;
|
||||
|
||||
@@ -61,8 +61,8 @@ public class TooltipOverlay extends Overlay
|
||||
setPosition(OverlayPosition.TOOLTIP);
|
||||
setPriority(OverlayPriority.HIGHEST);
|
||||
setLayer(OverlayLayer.ABOVE_WIDGETS);
|
||||
// additionally allow tooltips above the world map
|
||||
drawAfterInterface(WidgetID.WORLD_MAP_GROUP_ID);
|
||||
// additionally allow tooltips above the full screen world map and welcome screen
|
||||
drawAfterInterface(WidgetID.FULLSCREEN_CONTAINER_TLI);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user