mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-29 00:08:50 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5a5bf872c3 | ||
|
|
7f5ad26efb |
No files matched your search
@@ -78,6 +78,10 @@ public class KeyManager {
|
||||
}
|
||||
|
||||
final int keyCode = binding.getKeyCode();
|
||||
if (keyCode == Keyboard.KEY_NONE) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (currentEvent != NO_INPUT_EVENT) {
|
||||
return keyCode == currentEvent;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@ import org.lwjgl.opengl.GL11;
|
||||
|
||||
import codechicken.lib.gui.GuiDraw;
|
||||
import codechicken.lib.vec.Rectangle4i;
|
||||
import codechicken.nei.Button;
|
||||
import codechicken.nei.ColorUtils;
|
||||
import codechicken.nei.KeyManager;
|
||||
import codechicken.nei.LayoutStyleMinecraft;
|
||||
@@ -32,6 +33,7 @@ import codechicken.nei.NEIClientConfig;
|
||||
import codechicken.nei.NEIClientUtils;
|
||||
import codechicken.nei.PositionedStack;
|
||||
import codechicken.nei.RecipeSearchField;
|
||||
import codechicken.nei.RestartableTask;
|
||||
import codechicken.nei.VisiblityData;
|
||||
import codechicken.nei.Widget;
|
||||
import codechicken.nei.WidgetContainer;
|
||||
@@ -321,7 +323,6 @@ public abstract class GuiRecipe<H extends IRecipeHandler> extends GuiContainer i
|
||||
fitWindow();
|
||||
this.lastPage = -1;
|
||||
|
||||
GuiRecipe.typeBar.enabled = this.currenthandlers.size() > 1;
|
||||
GuiRecipe.typeBar.labelTooltip = NEIClientUtils.translate("recipe.tab.view_all.tooltip");
|
||||
GuiRecipe.typeBar.color = ColorUtils.recipeTitle.getColor();
|
||||
GuiRecipe.typeBar.hoverColor = ColorUtils.recipeTitleHover.getColor();
|
||||
@@ -329,6 +330,7 @@ public abstract class GuiRecipe<H extends IRecipeHandler> extends GuiContainer i
|
||||
}
|
||||
|
||||
private void updateNavigation() {
|
||||
GuiRecipe.typeBar.enabled = this.currenthandlers.size() > 1;
|
||||
GuiRecipe.typeBar.label = this.handler.original.getRecipeName().trim();
|
||||
GuiRecipe.search.setAvailable(this.handler.searchingAvailable());
|
||||
GuiRecipe.search.enabled = this.handlerPages.getNumPages() > 1;
|
||||
@@ -977,6 +979,18 @@ public abstract class GuiRecipe<H extends IRecipeHandler> extends GuiContainer i
|
||||
@Deprecated
|
||||
protected static final RecipeSearchField searchField = search.getSearchField();
|
||||
|
||||
@Deprecated
|
||||
protected static final Button toggleSearch = search.getToggle();
|
||||
|
||||
@Deprecated
|
||||
protected static final RestartableTask updateFilter = search.getFilterTask();
|
||||
|
||||
@Deprecated
|
||||
private GuiButton prevtype;
|
||||
|
||||
@Deprecated
|
||||
private GuiButton nexttype;
|
||||
|
||||
@Deprecated
|
||||
public EmptyContainer slotcontainer;
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import codechicken.lib.gui.GuiDraw;
|
||||
import codechicken.nei.Button;
|
||||
import codechicken.nei.NEIClientConfig;
|
||||
import codechicken.nei.NEIClientUtils;
|
||||
import codechicken.nei.RecipeSearchField;
|
||||
@@ -215,6 +216,14 @@ class RecipeSearchBar extends NavigationBar {
|
||||
return this.field;
|
||||
}
|
||||
|
||||
public Button getToggle() {
|
||||
return this.toggle;
|
||||
}
|
||||
|
||||
public RestartableTask getFilterTask() {
|
||||
return this.updateFilter;
|
||||
}
|
||||
|
||||
public void updateFilter() {
|
||||
this.updateFilter.restart();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user