aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/DisplayGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2020-10-16 15:20:27 -0400
committerbowser0000 <bowser0000@gmail.com>2020-10-16 15:20:27 -0400
commitff7001b95634e610a56220c58bc9619c063203da (patch)
treefdb0bffb128c4a3cf45584b5392ad5c46527cfc0 /src/main/java/me/Danker/gui/DisplayGui.java
parent68111a9d9c9d403436dc2041010f337580d48d60 (diff)
downloadSkyblockMod-ff7001b95634e610a56220c58bc9619c063203da.tar.gz
SkyblockMod-ff7001b95634e610a56220c58bc9619c063203da.tar.bz2
SkyblockMod-ff7001b95634e610a56220c58bc9619c063203da.zip
Add ability to drag around displays WIP
WIP, buggy with scaling
Diffstat (limited to 'src/main/java/me/Danker/gui/DisplayGui.java')
-rw-r--r--src/main/java/me/Danker/gui/DisplayGui.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/me/Danker/gui/DisplayGui.java b/src/main/java/me/Danker/gui/DisplayGui.java
index d71f4b9..945dbc3 100644
--- a/src/main/java/me/Danker/gui/DisplayGui.java
+++ b/src/main/java/me/Danker/gui/DisplayGui.java
@@ -15,7 +15,7 @@ public class DisplayGui extends GuiScreen {
private boolean addSession = false;
private GuiButton goBack;
- //private GuiButton editLocations;
+ private GuiButton editLocations;
private GuiButton off;
private GuiButton showSession;
private GuiButton zombie;
@@ -46,7 +46,7 @@ public class DisplayGui extends GuiScreen {
int width = sr.getScaledWidth();
goBack = new GuiButton(0, 2, height - 30, 100, 20, "Go Back");
- //editLocations = new GuiButton(0, 2, height - 55, 100, 20, "Edit Locations");
+ editLocations = new GuiButton(0, 2, height - 55, 100, 20, "Edit Locations");
showSession = new GuiButton(0, width / 2 - 100, (int) (height * 0.1), "Current Session Only: " + Utils.getColouredBoolean(addSession));
off = new GuiButton(0, width / 2 - 100, (int) (height * 0.2), "Off");
zombie = new GuiButton(0, width / 2 - 190, (int) (height * 0.3), 80, 20, "Zombie");
@@ -78,7 +78,7 @@ public class DisplayGui extends GuiScreen {
this.buttonList.add(catacombsF4);
this.buttonList.add(catacombsF5);
this.buttonList.add(catacombsF6);
- //this.buttonList.add(editLocations);
+ this.buttonList.add(editLocations);
this.buttonList.add(goBack);
}
@@ -107,8 +107,8 @@ public class DisplayGui extends GuiScreen {
public void actionPerformed(GuiButton button) {
if (button == goBack) {
TheMod.guiToOpen = "dankergui1";
- //} else if (button == editLocations) {
- //TheMod.guiToOpen = "editlocations";
+ } else if (button == editLocations) {
+ TheMod.guiToOpen = "editlocations";
} else if (button == showSession) {
addSession = !addSession;
showSession.displayString = "Current Session Only: " + Utils.getColouredBoolean(addSession);