mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-17 02:55:04 +00:00
Subset Widget Improvement (#577)
Co-authored-by: slprime <[email protected]> Co-authored-by: Martin Robertz <[email protected]> Co-authored-by: Caedis <[email protected]> Co-authored-by: Maya <[email protected]>
This commit is contained in:
18 files changed
+919
-724
No files matched your search
@@ -2585,6 +2585,21 @@ public class BookmarkPanel extends PanelWidget {
|
||||
return currenttip;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean contains(int px, int py) {
|
||||
|
||||
if (new Rectangle4i(pagePrev.x + pagePrev.w, pagePrev.y, pageNext.x - (pagePrev.x + pagePrev.w), pagePrev.h)
|
||||
.contains(px, py)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (((BookmarkGrid) grid).getHoveredRowIndex(true) != -1) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return super.contains(px, py);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> handleItemTooltip(GuiContainer gui, ItemStack itemstack, int mousex, int mousey,
|
||||
List<String> currenttip) {
|
||||
|
||||
Reference in new issue
Block a user