aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-10-09 00:54:37 +0900
committersyeyoung <cyoung06@naver.com>2023-10-09 00:54:37 +0900
commit773b4e0620e4a5fed589076b53e47dba7461cef9 (patch)
treeb9ed944c7dcc3209e090cb2d9f6fbeefa7adfd5d /mod/src/main
parent957581b2b9a9e866da78fbffd9cddce4773df36a (diff)
downloadSkyblock-Dungeons-Guide-773b4e0620e4a5fed589076b53e47dba7461cef9.tar.gz
Skyblock-Dungeons-Guide-773b4e0620e4a5fed589076b53e47dba7461cef9.tar.bz2
Skyblock-Dungeons-Guide-773b4e0620e4a5fed589076b53e47dba7461cef9.zip
- fix roomedit tool
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main')
-rwxr-xr-xmod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomedit/gui/GuiDungeonValueEdit.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomedit/gui/GuiDungeonValueEdit.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomedit/gui/GuiDungeonValueEdit.java
index 4ca104c0..c023367e 100755
--- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomedit/gui/GuiDungeonValueEdit.java
+++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/dungeon/roomedit/gui/GuiDungeonValueEdit.java
@@ -128,10 +128,11 @@ public class GuiDungeonValueEdit extends MGui {
getMainPanel().getChildComponents().get(0).setBounds(new Rectangle(10, Math.min((Minecraft.getMinecraft().displayHeight - h) / 2, Minecraft.getMinecraft().displayHeight),w,h));
+ Rectangle referenceBounds = getMainPanel().getChildComponents().get(0).getBounds();
for (int i = 0; i < addons.size(); i++) {
- addons.get(i).setBounds(new Rectangle(0, getMainPanel().getBounds().height - (i+1) * 20 - 20, getMainPanel().getBounds().width, 20));
+ addons.get(i).setBounds(new Rectangle(0, 300 - (i+1) * 20 - 20, 200, 20));
}
- save.setBounds(new Rectangle(0 ,getMainPanel().getBounds().height - 20, getMainPanel().getBounds().width, 20));
+ save.setBounds(new Rectangle(0 ,300- 20,200, 20));
}
}