Skip to content

Commit 5266054

Browse files
committed
fix tooltip layer issues
1 parent e1f5b54 commit 5266054

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/cleanroommc/modularui/screen/ModularScreen.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ public void drawForeground() {
324324
this.context.reset();
325325
this.context.pushViewport(null, this.context.getScreenArea());
326326
for (ModularPanel panel : this.panelManager.getReverseOpenPanels()) {
327+
this.context.updateZ(100 + panel.getArea().getPanelLayer() * 20);
327328
if (panel.isEnabled()) {
328329
WidgetTree.drawTreeForeground(panel, this.context);
329330
}

0 commit comments

Comments
 (0)