From aa804403a1dcc8f9b36672e0e56e591e810147b3 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Tue, 20 Jul 2021 21:49:59 +0900 Subject: Popups in gui config --- .../kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java index 462dda24..c47eda61 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/gui/elements/MLabelAndElement.java @@ -42,6 +42,11 @@ public class MLabelAndElement extends MPanel { this.element = element; } + @Override + public Dimension getPreferredSize() { + return new Dimension(200, 30); + } + @Override public void render(int absMousex, int absMousey, int relMousex0, int relMousey0, float partialTicks, Rectangle scissor) { if (hover != null && new Rectangle(new Point(0,0),getBounds().getSize()).contains(relMousex0, relMousey0)) { -- cgit