mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 23:29:41 +00:00
Scroll Wheel now works in EVERY MENU!!!
This commit is contained in:
1 parent
50be68f33a
commit
ae0effdf99
3 files changed
+6
-26
No files matched your search
@@ -101,8 +101,6 @@ public class GuiCustomScroll extends GuiScreen
|
||||
GL11.glTranslatef(guiLeft, guiTop, 0.0F);
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
|
||||
boolean isMouseOverComponent = isMouseOver(i, j);
|
||||
|
||||
if(selectable)
|
||||
hover = getMouseOver(i,j);
|
||||
|
||||
@@ -147,7 +145,7 @@ public class GuiCustomScroll extends GuiScreen
|
||||
}
|
||||
}
|
||||
|
||||
if(mouseScrolled != 0 && isMouseOverComponent){
|
||||
if(mouseScrolled != 0){
|
||||
scrollY += mouseScrolled > 0?-14:14;
|
||||
if(scrollY > maxScrollY)
|
||||
scrollY = maxScrollY;
|
||||
@@ -157,7 +155,7 @@ public class GuiCustomScroll extends GuiScreen
|
||||
}
|
||||
}
|
||||
|
||||
public void drawHover(int i, int j, float f, int mouseScrolled){
|
||||
public void drawHover(int i, int j){
|
||||
if(!visible)
|
||||
return;
|
||||
|
||||
|
||||
Reference in new issue
Block a user