mirror of
https://github.com/GTNewHorizons/NotEnoughItems.git
synced 2026-11-20 04:09:45 +00:00
code refactoring
This commit is contained in:
1 parent
98c49caff9
commit
331a9fd638
2 files changed
+6
-5
No files matched your search
@@ -89,7 +89,8 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
|
||||
public static PresetsWidget presetsPanel;
|
||||
public static SearchField searchField;
|
||||
public static boolean searchInitFocusedCancellable = false;
|
||||
public static int mousePriorX, mousePriorY;
|
||||
protected static int mousePriorX;
|
||||
protected static int mousePriorY;
|
||||
|
||||
public static ButtonCycled options;
|
||||
public static ButtonCycled bookmarksButton;
|
||||
@@ -166,7 +167,7 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
|
||||
return getSideWidth(gui);
|
||||
}
|
||||
|
||||
public boolean isAllowedGuiAutoSearchFocus(GuiContainer gui) {
|
||||
protected boolean isAllowedGuiAutoSearchFocus(GuiContainer gui) {
|
||||
if (gui instanceof INEIAutoFocusSearchEnable) {
|
||||
return true;
|
||||
}
|
||||
@@ -179,7 +180,7 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
|
||||
return false;
|
||||
}
|
||||
|
||||
public void searchFocusInitCancelCheck() {
|
||||
protected void searchFocusInitCancelCheck() {
|
||||
if (searchInitFocusedCancellable) {
|
||||
if (searchField.isVisible() && NEIClientConfig.isFocusSearchWidgetOnOpen()
|
||||
&& getInputFocused() == searchField) {
|
||||
@@ -296,8 +297,7 @@ public class LayoutManager implements IContainerInputHandler, IContainerTooltipH
|
||||
if (mousePriorX == -1) {
|
||||
mousePriorX = mousex;
|
||||
mousePriorY = mousey;
|
||||
}
|
||||
if (mousePriorX != mousex || mousePriorY != mousey) {
|
||||
} else if (mousePriorX != mousex || mousePriorY != mousey) {
|
||||
searchFocusInitCancelCheck();
|
||||
mousePriorX = mousex;
|
||||
mousePriorY = mousey;
|
||||
|
||||
Reference in new issue
Block a user