aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-01-12 21:45:16 +0900
committersyeyoung <cyong06@naver.com>2021-01-12 21:45:16 +0900
commit18e3824e9a1b1cdd696a592d0a032dc980d98b01 (patch)
treedbb6f2f8090cc74c44b65fb2ada4675319b31d8f /src/main
parentbad5f165ff03497fca06633819bf40207ef5ac4a (diff)
downloadSkyblock-Dungeons-Guide-18e3824e9a1b1cdd696a592d0a032dc980d98b01.tar.gz
Skyblock-Dungeons-Guide-18e3824e9a1b1cdd696a592d0a032dc980d98b01.tar.bz2
Skyblock-Dungeons-Guide-18e3824e9a1b1cdd696a592d0a032dc980d98b01.zip
dungeon map demo
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java11
1 files changed, 9 insertions, 2 deletions
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 713ce74f..a5657338 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/FeatureDungeonMap.java
@@ -53,7 +53,7 @@ import java.util.regex.Pattern;
public class FeatureDungeonMap extends GuiFeature implements DungeonEndListener, DungeonStartListener, BossroomEnterListener {
public FeatureDungeonMap() {
- super("Dungeon", "Dungeon Map", "Display dungeon map!", "dungeon.map", true, 512,512);
+ super("Dungeon", "Dungeon Map", "Display dungeon map!", "dungeon.map", true, 128,128);
this.setEnabled(false);
parameters.put("scale", new FeatureParameter<Boolean>("scale", "Scale map", "Whether to scale map to fit screen", true, "boolean"));
parameters.put("playerCenter", new FeatureParameter<Boolean>("playerCenter", "Center map at player", "Render you in the center", false, "boolean"));
@@ -127,7 +127,14 @@ public class FeatureDungeonMap extends GuiFeature implements DungeonEndListener,
@Override
public void drawDemo(float partialTicks) {
-
+ if (skyblockStatus.isOnDungeon() && skyblockStatus.getContext() != null && skyblockStatus.getContext().getMapProcessor().isInitialized() && on) {
+ drawHUD(partialTicks);
+ return;
+ }
+ Gui.drawRect(0,0,getFeatureRect().width, getFeatureRect().height, this.<AColor>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.<AColor>getParameter("border_color").getValue().getRGB(), this.<Boolean>getParameter("chromaborder").getValue());
}
public void renderMap(float partialTicks, MapProcessor mapProcessor, MapData mapData, DungeonContext context){