aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features/impl/advanced
diff options
context:
space:
mode:
authorsyeyoung <cyougn06@naver.com>2021-12-19 02:29:11 +0900
committersyeyoung <cyougn06@naver.com>2021-12-19 02:29:11 +0900
commit5fd8d7844b5a77f2a85c9a92aaea967dd2a8932d (patch)
treec12e07dc3dbc21516e44127b3be14b16203274c2 /src/main/java/kr/syeyoung/dungeonsguide/features/impl/advanced
parent7b7d13ede25aa3022cfbd03763ca9ee82ca12656 (diff)
downloadSkyblock-Dungeons-Guide-5fd8d7844b5a77f2a85c9a92aaea967dd2a8932d.tar.gz
Skyblock-Dungeons-Guide-5fd8d7844b5a77f2a85c9a92aaea967dd2a8932d.tar.bz2
Skyblock-Dungeons-Guide-5fd8d7844b5a77f2a85c9a92aaea967dd2a8932d.zip
- Collect Score
- New Score Update
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features/impl/advanced')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/impl/advanced/FeatureDebuggableMap.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/advanced/FeatureDebuggableMap.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/advanced/FeatureDebuggableMap.java
index 2ff3ec28..2a2b1a39 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/advanced/FeatureDebuggableMap.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/advanced/FeatureDebuggableMap.java
@@ -55,12 +55,14 @@ public class FeatureDebuggableMap extends GuiFeature {
SkyblockStatus skyblockStatus = DungeonsGuide.getDungeonsGuide().getSkyblockStatus();
@Override
public void drawHUD(float partialTicks) {
- if (!skyblockStatus.isOnDungeon()) return;
+// if (!skyblockStatus.isOnDungeon()) return;
if (!FeatureRegistry.DEBUG.isEnabled()) return;
- DungeonContext context = skyblockStatus.getContext();
- if (context == null) return;
+// DungeonContext context = skyblockStatus.getContext();
+// if (context == null) return;
GlStateManager.pushMatrix();
+ double factor = getFeatureRect().getRectangle().getWidth() / 128;
+ GlStateManager.scale(factor, factor, 1);
int[] textureData = dynamicTexture.getTextureData();
MapUtils.getImage().getRGB(0, 0, 128, 128, textureData, 0, 128);
dynamicTexture.updateDynamicTexture();
@@ -73,10 +75,10 @@ public class FeatureDebuggableMap extends GuiFeature {
if (!(Minecraft.getMinecraft().currentScreen instanceof GuiChat)) return;
Rectangle featureRect = this.getFeatureRect().getRectangleNoScale();
- int i = (int) (Mouse.getEventX() - featureRect.getX());
- int j = (int) (Minecraft.getMinecraft().displayHeight - Mouse.getEventY() - featureRect.getY());
+ int i = (int) ((int) (Mouse.getEventX() - featureRect.getX()) / factor);
+ int j = (int) ((int) (Minecraft.getMinecraft().displayHeight - Mouse.getEventY() - featureRect.getY())/ factor);
if (i >= 0 && j>= 0 && i <= 128 && j <= 128 && MapUtils.getColors() != null) {
- GuiUtils.drawHoveringText(Arrays.asList("Color: "+MapUtils.getColors()[j * 128 + i]),i, j, Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayHeight, -1, Minecraft.getMinecraft().fontRendererObj);
+ GuiUtils.drawHoveringText(Arrays.asList(i+","+j,"Color: "+MapUtils.getColors()[j * 128 + i]),(int)(Mouse.getEventX() - featureRect.getX()), (int) (Minecraft.getMinecraft().displayHeight - Mouse.getEventY() - featureRect.getY()), Minecraft.getMinecraft().displayWidth, Minecraft.getMinecraft().displayHeight, -1, Minecraft.getMinecraft().fontRendererObj);
}
}