mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-12 08:17:32 +00:00
Fix wireless terminal gui (#201)
* Remove some space in NEI enabled * Fix changing from small terminal to tall terminal also changes the terminal type if cursor over the terminal type button
This commit is contained in:
1 parent
3d3b842923
commit
130626343b
1 file changed
+8
-3
@@ -102,6 +102,7 @@ public abstract class FCGuiMonitor<T extends IAEStack<T>> extends FCBaseMEGui
|
||||
protected GuiImgButton searchStringSave;
|
||||
protected GuiImgButton typeFilter;
|
||||
protected boolean hasShiftKeyDown = false;
|
||||
private boolean reInitializationRequested = false;
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
public FCGuiMonitor(final InventoryPlayer inventoryPlayer, final ITerminalHost te, final FCContainerMonitor<T> c) {
|
||||
@@ -168,8 +169,7 @@ public abstract class FCGuiMonitor<T extends IAEStack<T>> extends FCBaseMEGui
|
||||
}
|
||||
|
||||
protected void reInitalize() {
|
||||
this.buttonList.clear();
|
||||
this.initGui();
|
||||
reInitializationRequested = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -183,7 +183,7 @@ public abstract class FCGuiMonitor<T extends IAEStack<T>> extends FCBaseMEGui
|
||||
|
||||
final boolean hasNEI = IntegrationRegistry.INSTANCE.isEnabled(IntegrationType.NEI);
|
||||
|
||||
final int NEI = 0;
|
||||
final int NEI = hasNEI ? 1 : 0;
|
||||
int top = hasNEI ? 22 : 0;
|
||||
|
||||
final int magicNumber = 114 + 1;
|
||||
@@ -667,6 +667,11 @@ public abstract class FCGuiMonitor<T extends IAEStack<T>> extends FCBaseMEGui
|
||||
|
||||
@Override
|
||||
public void updateScreen() {
|
||||
if (reInitializationRequested) {
|
||||
reInitializationRequested = false;
|
||||
this.buttonList.clear();
|
||||
this.initGui();
|
||||
}
|
||||
this.repo.setPowered(this.monitorableContainer.isPowered());
|
||||
super.updateScreen();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user