diff options
author | syeyoung <cyong06@naver.com> | 2021-08-06 13:02:53 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2021-08-06 13:02:53 +0900 |
commit | a6eb8b879e8bad88aa334c3e681067e314723c59 (patch) | |
tree | 16eaaed06224faa2e05c3444bdcf366a52c1c35d /src/main/java/kr/syeyoung/dungeonsguide | |
parent | 41cdb65072e4d673363694e48647f91aaf7a3710 (diff) | |
download | Skyblock-Dungeons-Guide-a6eb8b879e8bad88aa334c3e681067e314723c59.tar.gz Skyblock-Dungeons-Guide-a6eb8b879e8bad88aa334c3e681067e314723c59.tar.bz2 Skyblock-Dungeons-Guide-a6eb8b879e8bad88aa334c3e681067e314723c59.zip |
- Fix player name going over the player region
- Fix tooltips not appearing sometimes
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java index 24603dc1..c438e889 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/party/playerpreview/FeatureViewPlayerOnJoin.java @@ -262,6 +262,7 @@ public class FeatureViewPlayerOnJoin extends SimpleFeature implements GuiPostRen fr.drawString("§eI", 83,161,-1); GlStateManager.color(1, 1, 1, 1.0F); if (fakePlayer != null) { + clip(scaledResolution, popupRect.x+2, popupRect.y+2, 86, 166); GuiInventory.drawEntityOnScreen(45, 150, 60, -(mouseX - popupRect.x - 75), 0, fakePlayer); String toDraw = fakePlayer.getName(); @@ -319,6 +320,7 @@ public class FeatureViewPlayerOnJoin extends SimpleFeature implements GuiPostRen GlStateManager.pushMatrix(); GlStateManager.translate(popupRect.x, popupRect.y, 0); } + clip(scaledResolution, popupRect.x, popupRect.y, popupRect.width, popupRect.height); } else { GlStateManager.enableBlend(); GL14.glBlendFuncSeparate(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA, GL11.GL_ONE, GL11.GL_ONE_MINUS_SRC_ALPHA); @@ -332,8 +334,8 @@ public class FeatureViewPlayerOnJoin extends SimpleFeature implements GuiPostRen dataRendererToHover.onHover(playerProfile.get(), mouseX, mouseY); } GL11.glEnable(GL11.GL_SCISSOR_TEST); - GlStateManager.translate(popupRect.x, popupRect.y, 0); GlStateManager.pushMatrix(); + GlStateManager.translate(popupRect.x, popupRect.y, 0); if (drawInv && playerProfile.get().getInventory() != null) { int startX = 81; @@ -375,13 +377,11 @@ public class FeatureViewPlayerOnJoin extends SimpleFeature implements GuiPostRen } FontRenderer font = toHover.getItem().getFontRenderer(toHover); GlStateManager.popMatrix(); - GlStateManager.popMatrix(); GL11.glDisable(GL11.GL_SCISSOR_TEST); FontRenderer theRenderer = (font == null ? fr : font); GuiUtils.drawHoveringText(list,mouseX, mouseY, scaledResolution.getScaledWidth(), scaledResolution.getScaledHeight(), -1, theRenderer); GL11.glEnable(GL11.GL_SCISSOR_TEST); GlStateManager.pushMatrix(); - GlStateManager.pushMatrix(); } } GL11.glDisable(GL11.GL_SCISSOR_TEST); |