From b1357bc5e21328789f8f2e803980b8b73811a3aa Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Thu, 31 Jul 2014 20:22:24 -0500 Subject: [PATCH] Highlight crafting plan panes the missing items, making them easier to spot. --- client/gui/implementations/GuiCraftConfirm.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/client/gui/implementations/GuiCraftConfirm.java b/client/gui/implementations/GuiCraftConfirm.java index a80f180c..0852565f 100644 --- a/client/gui/implementations/GuiCraftConfirm.java +++ b/client/gui/implementations/GuiCraftConfirm.java @@ -411,6 +411,7 @@ public class GuiCraftConfirm extends AEBaseGui int negY = ((lines - 1) * 5) / 2; int downY = 0; + boolean red = false; if ( stored != null && stored.getStackSize() > 0 ) { @@ -447,6 +448,7 @@ public class GuiCraftConfirm extends AEBaseGui if ( tooltip == z - viewStart ) lineList.add( GuiText.Missing.getLocal() + ": " + Long.toString( missingStack.getStackSize() ) ); + red = true; downY += 5; } @@ -487,6 +489,13 @@ public class GuiCraftConfirm extends AEBaseGui drawItem( posX, posY, is ); + if ( red ) + { + int startX = x * (1 + sectionLength) + xo; + int startY = posY - 4; + drawRect( startX, startY, startX + sectionLength, startY + offY, 0x1AFF0000 ); + } + x++; if ( x > 2 )