Fix Hoverable now being the last and top layer and wrap to shrink size

This commit is contained in:
Kam committed 2023-11-07 01:29:28 -05:00
1 parent 743ef08ad3
commit 61763e620e
5 files changed
+104 -33

No files matched your search

@@ -252,15 +252,14 @@ public abstract class GuiNPCInterface extends GuiScreen
tf.drawTextBox(i, j);
}
for(GuiCustomScroll scroll : scrolls.values())
if(!scroll.hoverableText){
scroll.drawScreen(i, j, f, hasSubGui()?0:this.mouseWheel);
}
scroll.drawScreen(i, j, f, hasSubGui()?0:this.mouseWheel);
for(GuiScreen gui : extra.values())
gui.drawScreen(i, j, f);
super.drawScreen(i, j, f);
for(GuiCustomScroll scroll : scrolls.values())
if(scroll.hoverableText){
scroll.drawScreen(i, j, f, hasSubGui()?0:this.mouseWheel);
scroll.drawHover(i, j, f, hasSubGui()?0:this.mouseWheel);
}
if(subgui != null)
subgui.drawScreen(i,j,f);