Some general warning cleanup
This commit is contained in:
@@ -116,7 +116,7 @@ public class GuiAdvancedTextField extends GuiTextField implements GuiElement, Gu
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isFocused() {
|
public boolean isFocused() {
|
||||||
return isEnabled ? super.isFocused() : false;
|
return isEnabled && super.isFocused();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ public class GuiDropdown<T extends GuiEntryListEntry> extends GuiAdvancedTextFie
|
|||||||
private final int maxDropoutHeight;
|
private final int maxDropoutHeight;
|
||||||
private int selectionIndex = -1;
|
private int selectionIndex = -1;
|
||||||
private boolean open = false;
|
private boolean open = false;
|
||||||
private Minecraft mc = Minecraft.getMinecraft();
|
|
||||||
private List<SelectionListener> selectionListeners = new ArrayList<SelectionListener>();
|
private List<SelectionListener> selectionListeners = new ArrayList<SelectionListener>();
|
||||||
|
|
||||||
private int upperIndex = 0;
|
private int upperIndex = 0;
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ public class GuiEntryList<T extends GuiEntryListEntry> extends GuiAdvancedTextFi
|
|||||||
|
|
||||||
public final static int elementHeight = 14;
|
public final static int elementHeight = 14;
|
||||||
private int selectionIndex = -1;
|
private int selectionIndex = -1;
|
||||||
private Minecraft mc = Minecraft.getMinecraft();
|
|
||||||
private int visibleElements;
|
private int visibleElements;
|
||||||
private int upperIndex = 0;
|
private int upperIndex = 0;
|
||||||
|
|
||||||
@@ -161,10 +160,12 @@ public class GuiEntryList<T extends GuiEntryListEntry> extends GuiAdvancedTextFi
|
|||||||
return elements;
|
return elements;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
public void replaceElement(int index, T replace) {
|
public void replaceElement(int index, T replace) {
|
||||||
elements.set(index, replace);
|
elements.set(index, replace);
|
||||||
fireSelectionChangeEvent();
|
fireSelectionChangeEvent();
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
public int getEntryCount() {
|
public int getEntryCount() {
|
||||||
return elements.size();
|
return elements.size();
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ public class GuiReplayEditor extends GuiScreen {
|
|||||||
currentTab = StudioTab.TRIM;
|
currentTab = StudioTab.TRIM;
|
||||||
} else if(button.id == GuiConstants.REPLAY_EDITOR_CONNECT_TAB) {
|
} else if(button.id == GuiConstants.REPLAY_EDITOR_CONNECT_TAB) {
|
||||||
currentTab = StudioTab.CONNECT;
|
currentTab = StudioTab.CONNECT;
|
||||||
} else if(button.id == GuiConstants.REPLAY_EDITOR_MODIFY_TAB) {
|
//} else if(button.id == GuiConstants.REPLAY_EDITOR_MODIFY_TAB) {
|
||||||
//currentTab = StudioTab.MODIFY;
|
//currentTab = StudioTab.MODIFY;
|
||||||
} else if(button.id == GuiConstants.REPLAY_EDITOR_SAVE_BUTTON) {
|
} else if(button.id == GuiConstants.REPLAY_EDITOR_SAVE_BUTTON) {
|
||||||
File outputFile = getSelectedFile();
|
File outputFile = getSelectedFile();
|
||||||
|
|||||||
Reference in New Issue
Block a user