Cleaned and generalised item loading/searching

Reimplemented subsets
Added regex searching
Fixed format error on delete all
Fixed GuiButton handling clicks before NEI widgets could override
Re-Implemented banned blocks implementation
Added brewing recipes again
note test obf ASM beacons
Fixed some calls being intercepted by item panel when mouse was over a gui element
Fixed crash on closing potion window with escape
Disabled fast transfer, scrolling, and drag 'n' drop in creative
Added item panel sorting
Removed TMI uninstaller
Fixed /give command
Updated to 1.7.10
This commit is contained in:
Chicken-Bomes committed 2014-06-29 20:42:02 +10:00
1 parent 3c9ebc6961
commit 3c84527806
67 files changed
+3251 -2319

No files matched your search

+8 -17
View File
@@ -38,7 +38,7 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
private static TreeSet<Widget> controlWidgets;
public static ItemPanel itemPanel;
public static Button dropDown;
public static SubsetWidget dropDown;
public static TextField searchField;
public static Button options;
@@ -121,11 +121,10 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
@Override
public boolean objectUnderMouse(GuiContainer gui, int mousex, int mousey) {
if (!isHidden() && isEnabled()) {
if (!isHidden() && isEnabled())
for (Widget widget : controlWidgets)
if (widget.contains(mousex, mousey))
return true;
}
return false;
}
@@ -265,13 +264,7 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
private static void init() {
itemPanel = new ItemPanel();
dropDown = new Button("NEI Subsets")
{
@Override
public boolean onButtonPress(boolean rightclick) {
return false;
}
};
dropDown = new SubsetWidget();
searchField = new SearchField("search");
options = new Button("Options")
@@ -422,7 +415,7 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
public String getButtonTip() {
if ((state & 0x3) != 2) {
if (shiftKey())
return translate("inventory.delete.all");
return translate("inventory.delete.inv");
if (NEIController.canUseDeleteMode())
return getStateTip("delete", state);
}
@@ -580,11 +573,9 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
NEIController.load(gui);
if (checkCreativeInv(gui)) {
if (gui.mc.currentScreen instanceof GuiContainerCreative)//makes cycle transititions seemless. Only closes if we are opening from fresh
gui.mc.displayGuiScreen(null);
return;
}
if (checkCreativeInv(gui) &&
gui.mc.currentScreen instanceof GuiContainerCreative)//makes cycle transitions seamless. Only closes if we are opening from fresh
gui.mc.displayGuiScreen(null);
}
@Override
@@ -726,7 +717,7 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
@Override
public void renderSlotOverlay(GuiContainer window, Slot slot) {
ItemStack item = slot.getStack();
if (world.nbt.getBoolean("searchinventories") && (item == null ? !getSearchExpression().equals("") : !ItemList.itemMatchesSearch(item))) {
if (world.nbt.getBoolean("searchinventories") && (item == null ? !getSearchExpression().equals("") : !ItemList.itemMatches(item))) {
GL11.glDisable(GL11.GL_LIGHTING);
GL11.glTranslatef(0, 0, 150);
drawRect(slot.xDisplayPosition, slot.yDisplayPosition, 16, 16, 0x80000000);