From 3f4f32bd5e01567824394446404c3b62797e8ac9 Mon Sep 17 00:00:00 2001 From: NickAcPT <32451103+NickAcPT@users.noreply.github.com> Date: Sun, 22 Oct 2017 16:32:52 +0100 Subject: [PATCH] Gradle stuff --- .../net/nickac/lithium/frontend/mod/ui/NewLithiumGUI.java | 4 ++-- .../lithium/frontend/mod/ui/renders/CheckBoxRenderer.java | 3 ++- .../lithium/frontend/mod/ui/renders/ProgressBarRenderer.java | 3 ++- .../lithium/frontend/mod/ui/renders/TextLabelRenderer.java | 3 ++- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/net/nickac/lithium/frontend/mod/ui/NewLithiumGUI.java b/src/main/java/net/nickac/lithium/frontend/mod/ui/NewLithiumGUI.java index 5216620..a94650d 100644 --- a/src/main/java/net/nickac/lithium/frontend/mod/ui/NewLithiumGUI.java +++ b/src/main/java/net/nickac/lithium/frontend/mod/ui/NewLithiumGUI.java @@ -63,6 +63,7 @@ public class NewLithiumGUI extends GuiScreen { private Map textBoxesLReverse = new HashMap<>(); private Map progressBars = new NickHashMap<>(); private Map checkBoxes = new NickHashMap<>(); + private Map sliders = new NickHashMap<>(); private List labels = new ArrayList<>(); //Button stuff @@ -312,7 +313,6 @@ private void softRemoveControl(LControl g) { gg.setInsideColor(gui.getInsideColor()); gg.setProgressColor(gui.getProgressColor()); } - //gg.setProgress(); progressBars.remove(g.getUUID()); } } @@ -359,7 +359,7 @@ protected void mouseClicked(int mouseX, int mouseY, int mouseButton) throws IOEx @Override protected void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick) { super.mouseClickMove(mouseX, mouseY, clickedMouseButton, timeSinceLastClick); - for (LCheckBox l : checkBoxes.values()) checkboxRenderer.mouseMove(l, this, mouseX, mouseY); + //for (LCheckBox l : checkBoxes.values()) checkboxRenderer.mouseClickMove(l, this, mouseX, mouseY); } @Override diff --git a/src/main/java/net/nickac/lithium/frontend/mod/ui/renders/CheckBoxRenderer.java b/src/main/java/net/nickac/lithium/frontend/mod/ui/renders/CheckBoxRenderer.java index aa843f9..c7d9107 100644 --- a/src/main/java/net/nickac/lithium/frontend/mod/ui/renders/CheckBoxRenderer.java +++ b/src/main/java/net/nickac/lithium/frontend/mod/ui/renders/CheckBoxRenderer.java @@ -77,7 +77,8 @@ public void mouseClick(LCheckBox control, GuiScreen gui, int mouseX, int mouseY, } @Override - public void mouseMove(LCheckBox control, GuiScreen gui, int mouseX, int mouseY) { + public void mouseClickMove(LCheckBox control, GuiScreen gui, int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick) { } + } diff --git a/src/main/java/net/nickac/lithium/frontend/mod/ui/renders/ProgressBarRenderer.java b/src/main/java/net/nickac/lithium/frontend/mod/ui/renders/ProgressBarRenderer.java index d4317a5..a7524eb 100644 --- a/src/main/java/net/nickac/lithium/frontend/mod/ui/renders/ProgressBarRenderer.java +++ b/src/main/java/net/nickac/lithium/frontend/mod/ui/renders/ProgressBarRenderer.java @@ -66,7 +66,8 @@ public void mouseClick(LProgressBar control, GuiScreen gui, int mouseX, int mous } @Override - public void mouseMove(LProgressBar control, GuiScreen gui, int mouseX, int mouseY) { + public void mouseClickMove(LProgressBar control, GuiScreen gui, int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick) { } + } diff --git a/src/main/java/net/nickac/lithium/frontend/mod/ui/renders/TextLabelRenderer.java b/src/main/java/net/nickac/lithium/frontend/mod/ui/renders/TextLabelRenderer.java index 561bb46..e5114b9 100644 --- a/src/main/java/net/nickac/lithium/frontend/mod/ui/renders/TextLabelRenderer.java +++ b/src/main/java/net/nickac/lithium/frontend/mod/ui/renders/TextLabelRenderer.java @@ -49,7 +49,8 @@ public void mouseClick(LTextLabel control, GuiScreen gui, int mouseX, int mouseY } @Override - public void mouseMove(LTextLabel control, GuiScreen gui, int mouseX, int mouseY) { + public void mouseClickMove(LTextLabel control, GuiScreen gui, int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick) { } + }