From 60a6f9ce3bd9a87bc540397740bca13f1dbc4dc8 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 30 Dec 2020 14:18:03 +0900 Subject: oh I wanan play --- .../dungeonsguide/config/guiconfig/PanelDelegate.java | 17 ++++++++++++++++- .../kr/syeyoung/dungeonsguide/features/GuiFeature.java | 4 ++++ 2 files changed, 20 insertions(+), 1 deletion(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDelegate.java b/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDelegate.java index c8971acd..e91f5733 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDelegate.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/config/guiconfig/PanelDelegate.java @@ -18,6 +18,21 @@ public class PanelDelegate extends MPanel { @Override public void render(int absMousex, int absMousey, int relMousex0, int relMousey0, float partialTicks, Rectangle scissor) { - super.render(absMousex, absMousey, relMousex0, relMousey0, partialTicks, scissor); + guiFeature.drawDemo(partialTicks); + } + + @Override + public void mouseClicked(int absMouseX, int absMouseY, int relMouseX, int relMouseY, int mouseButton) { + + } + + @Override + public void mouseReleased(int absMouseX, int absMouseY, int relMouseX, int relMouseY, int state) { + + } + + @Override + public void mouseClickMove(int absMouseX, int absMouseY, int relMouseX, int relMouseY, int clickedMouseButton, long timeSinceLastClick) { + } } diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java b/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java index d7b58dbc..f74e417d 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/GuiFeature.java @@ -50,8 +50,12 @@ public abstract class GuiFeature extends AbstractFeature { GL11.glPopAttrib(); } + public abstract void drawHUD(float partialTicks); + public void drawDemo(float partialTicks) { + drawHUD(partialTicks); + } private void clip(ScaledResolution resolution, int x, int y, int width, int height) { int scale = resolution.getScaleFactor(); -- cgit