mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-18 11:29:35 +00:00
Show a full recipe widget in item tooltips for bookmarked recipes (#398)
* Update buildscript * Show a full recipe widget in item tooltips for bookmarked recipes * Make recipe tooltips configurable and only show in the bookmarks panel * Fix layout relative to tooltip boxes * Fix wildcard import * spotlessApply (#401) Co-authored-by: GitHub GTNH Actions <> * Fix handler tooltip offsets for new&legacy handlers * Fix render order to draw crafting tooltips on top of container manager buttons * Fix wrong mouse Y half-point calculation * Allow saving recipes with empty item ingredient lists to bookmarks (e.g. fluid-only) * Fix waila vs. non-waila tooltip offsets Co-authored-by: Wilhelm Schuster <[email protected]> --------- Co-authored-by: Wilhelm Schuster <[email protected]>
This commit is contained in:
14 files changed
+356
-90
No files matched your search
@@ -280,6 +280,13 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void postRenderTooltips(GuiContainer gui, int mousex, int mousey, List<String> tooltip) {
|
||||
if (!isHidden() && isEnabled()) {
|
||||
for (Widget widget : drawWidgets) widget.postDrawTooltips(mousex, mousey, tooltip);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> handleTooltip(GuiContainer gui, int mousex, int mousey, List<String> currenttip) {
|
||||
if (!isHidden() && isEnabled() && GuiContainerManager.shouldShowTooltip(gui)) {
|
||||
|
||||
Reference in new issue
Block a user