Highlight crafting plan panes the missing items, making them easier to spot.
This commit is contained in:
parent
62289dcf82
commit
b1357bc5e2
1 changed files with 9 additions and 0 deletions
|
@ -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 )
|
||||
|
|
Loading…
Reference in a new issue