Improve terminal search box (#3064)
Uses exsting JEI filter in JEI mode. Preselects text for easy delete/change without using rightclick. QoL improvements for focus handling.
This commit is contained in:
@@ -84,7 +84,6 @@ import appeng.helpers.InventoryAction;
|
||||
|
||||
public abstract class AEBaseGui extends GuiContainer
|
||||
{
|
||||
private static boolean switchingGuis;
|
||||
private final List<InternalSlotME> meSlots = new LinkedList<>();
|
||||
// drag y
|
||||
private final Set<Slot> drag_click = new HashSet<>();
|
||||
@@ -94,13 +93,10 @@ public abstract class AEBaseGui extends GuiContainer
|
||||
private Stopwatch dbl_clickTimer = Stopwatch.createStarted();
|
||||
private ItemStack dbl_whichItem = ItemStack.EMPTY;
|
||||
private Slot bl_clicked;
|
||||
private boolean subGui;
|
||||
|
||||
public AEBaseGui( final Container container )
|
||||
{
|
||||
super( container );
|
||||
this.subGui = switchingGuis;
|
||||
switchingGuis = false;
|
||||
}
|
||||
|
||||
protected static String join( final Collection<String> toolTip, final String delimiter )
|
||||
@@ -123,11 +119,6 @@ public abstract class AEBaseGui extends GuiContainer
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isSubGui()
|
||||
{
|
||||
return this.subGui;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initGui()
|
||||
{
|
||||
@@ -588,7 +579,6 @@ public abstract class AEBaseGui extends GuiContainer
|
||||
public void onGuiClosed()
|
||||
{
|
||||
super.onGuiClosed();
|
||||
this.subGui = true; // in case the gui is reopened later ( i'm looking at you NEI )
|
||||
}
|
||||
|
||||
protected Slot getSlot( final int mouseX, final int mouseY )
|
||||
@@ -871,14 +861,4 @@ public abstract class AEBaseGui extends GuiContainer
|
||||
{
|
||||
return this.meSlots;
|
||||
}
|
||||
|
||||
public static final synchronized boolean isSwitchingGuis()
|
||||
{
|
||||
return switchingGuis;
|
||||
}
|
||||
|
||||
public static final synchronized void setSwitchingGuis( final boolean switchingGuis )
|
||||
{
|
||||
AEBaseGui.switchingGuis = switchingGuis;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user