Updated build.gradle to automatically build fat jars with the dependencies in the /libs folder. This utilizes the shade.sh shell script. Use ./gradlew without explicitely invoking the build task, as this will automatically build a fat jar.
Sorry for this painful commit, but git somehow f'd up and sees changes in files where there aren't any.
This commit is contained in:
0
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiArrowButton.java
Normal file → Executable file
0
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiArrowButton.java
Normal file → Executable file
4
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiDropdown.java
Normal file → Executable file
4
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiDropdown.java
Normal file → Executable file
@@ -190,4 +190,8 @@ public class GuiDropdown<T> extends GuiTextField {
|
||||
public void removeSelectionListener(SelectionListener listener) {
|
||||
this.selectionListeners.remove(listener);
|
||||
}
|
||||
|
||||
public boolean isExpanded() {
|
||||
return open;
|
||||
}
|
||||
}
|
||||
|
||||
12
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiEntryList.java
Normal file → Executable file
12
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiEntryList.java
Normal file → Executable file
@@ -42,7 +42,7 @@ public class GuiEntryList<T> extends GuiTextField {
|
||||
//drawing the entries
|
||||
for(int i=0; i-upperIndex<visibleElements; i++) {
|
||||
if(i<upperIndex) continue;
|
||||
|
||||
|
||||
if(i >= elements.size()) break;
|
||||
|
||||
if(i == selectionIndex) {
|
||||
@@ -84,6 +84,7 @@ public class GuiEntryList<T> extends GuiTextField {
|
||||
|
||||
@Override
|
||||
public void mouseClicked(int xPos, int yPos, int mouseButton) {
|
||||
if(!(xPos >= xPosition && xPos <= xPosition+width && yPos >= yPosition && yPos <= yPosition+height)) return;
|
||||
int clickedIndex = (int)Math.floor((yPos-yPosition) / elementHeight) + upperIndex;
|
||||
if(clickedIndex < elements.size() && clickedIndex >= 0) {
|
||||
selectionIndex = clickedIndex;
|
||||
@@ -96,7 +97,7 @@ public class GuiEntryList<T> extends GuiTextField {
|
||||
listener.onSelectionChanged(selectionIndex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void setText(String text) {}
|
||||
|
||||
@@ -122,13 +123,16 @@ public class GuiEntryList<T> extends GuiTextField {
|
||||
}
|
||||
|
||||
public T getElement(int index) {
|
||||
return elements.get(index);
|
||||
if(index >= 0) {
|
||||
return elements.get(index);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getSelectionIndex() {
|
||||
return selectionIndex;
|
||||
}
|
||||
|
||||
|
||||
public void setSelectionIndex(int index) {
|
||||
this.selectionIndex = index;
|
||||
if(selectionIndex < 0) selectionIndex = -1;
|
||||
|
||||
0
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiMouseInput.java
Normal file → Executable file
0
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiMouseInput.java
Normal file → Executable file
0
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiNumberInput.java
Normal file → Executable file
0
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiNumberInput.java
Normal file → Executable file
0
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiReplayListEntry.java
Normal file → Executable file
0
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiReplayListEntry.java
Normal file → Executable file
0
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiReplayListExtended.java
Normal file → Executable file
0
src/main/java/eu/crushedpixel/replaymod/gui/elements/GuiReplayListExtended.java
Normal file → Executable file
0
src/main/java/eu/crushedpixel/replaymod/gui/elements/listeners/SelectionListener.java
Normal file → Executable file
0
src/main/java/eu/crushedpixel/replaymod/gui/elements/listeners/SelectionListener.java
Normal file → Executable file
Reference in New Issue
Block a user