From 4abbd20dfa8b9331c645153d7c7ee1cde5e2c759 Mon Sep 17 00:00:00 2001 From: syeyoung Date: Tue, 12 Jan 2021 21:54:27 +0900 Subject: change map rendering to be a bit better --- .../syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/main/java/kr') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java index a5657338..92386b11 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java @@ -121,8 +121,8 @@ public class FeatureDungeonMap extends GuiFeature implements DungeonEndListener, renderMap(partialTicks,mapProcessor,mapData,context); } GL11.glPopMatrix(); - - RenderUtils.drawUnfilledBox(1,0,getFeatureRect().width, getFeatureRect().height-1, this.getParameter("border_color").getValue().getRGB(), this.getParameter("chromaborder").getValue()); + GL11.glLineWidth(2); + RenderUtils.drawUnfilledBox(0,0,getFeatureRect().width, getFeatureRect().height, this.getParameter("border_color").getValue().getRGB(), this.getParameter("chromaborder").getValue()); } @Override @@ -134,7 +134,8 @@ public class FeatureDungeonMap extends GuiFeature implements DungeonEndListener, Gui.drawRect(0,0,getFeatureRect().width, getFeatureRect().height, this.getParameter("background_color").getValue().getRGB()); FontRenderer fr = getFontRenderer(); fr.drawString("Please join a dungeon to see preview", getFeatureRect().width / 2 - fr.getStringWidth("Please join a dungeon to see preview") / 2, getFeatureRect().height / 2 - fr.FONT_HEIGHT / 2, 0xFFFFFFFF); - RenderUtils.drawUnfilledBox(1,0,getFeatureRect().width, getFeatureRect().height-1, this.getParameter("border_color").getValue().getRGB(), this.getParameter("chromaborder").getValue()); + GL11.glLineWidth(2); + RenderUtils.drawUnfilledBox(0,0,getFeatureRect().width, getFeatureRect().height, this.getParameter("border_color").getValue().getRGB(), this.getParameter("chromaborder").getValue()); } public void renderMap(float partialTicks, MapProcessor mapProcessor, MapData mapData, DungeonContext context){ @@ -236,6 +237,7 @@ public class FeatureDungeonMap extends GuiFeature implements DungeonEndListener, float s = this.getParameter("playerheadscale").getValue(); GL11.glScaled(s,s,0); Gui.drawScaledCustomSizeModalRect(-4, -4, 8.0F, (float) l2, 8, i3, 8, 8, 64.0F, 64.0F); + GL11.glLineWidth(1); RenderUtils.drawUnfilledBox(-4,-4,4, 4, this.getParameter("player_color").getValue().getRGB(), this.getParameter("player_chroma").getValue()); } GL11.glPopMatrix(); -- cgit