From 0c32a484cac42ff546b035b9e9d4086a6c4ee64d Mon Sep 17 00:00:00 2001 From: Madeleaan <70163122+Madeleaan@users.noreply.github.com> Date: Thu, 8 Aug 2024 09:35:38 +0200 Subject: Add a question mark to all the slots in equipment overlay (#1304) --- .../moulberry/notenoughupdates/overlays/EquipmentOverlay.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/EquipmentOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/EquipmentOverlay.java index 0d94cd1b..50f8c45d 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/EquipmentOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/EquipmentOverlay.java @@ -262,14 +262,16 @@ public class EquipmentOverlay { if (slot1 == null) { Minecraft.getMinecraft().getTextureManager().bindTexture(QUESTION_MARK); GlStateManager.color(1, 1, 1, 1); - Utils.drawTexturedRect(overlayLeft + 8, overlayTop + EQUIPMENT_SLOT_OFFSET_Y, 16, 16, GL11.GL_NEAREST); + for (int i = 0; i < 4; i++) { + Utils.drawTexturedRect(overlayLeft + 8, overlayTop + EQUIPMENT_SLOT_OFFSET_Y + 18 * i, 16, 16, GL11.GL_NEAREST); + } tooltipToDisplay = Lists.newArrayList( EnumChatFormatting.RED + "Warning", EnumChatFormatting.GREEN + "You need to open /equipment", EnumChatFormatting.GREEN + "to cache your armour" ); - if (Utils.isWithinRect(mouseX, mouseY, overlayLeft + 8, overlayTop + 8, 16, 16) + if (Utils.isWithinRect(mouseX, mouseY, overlayLeft + 8, overlayTop + 8, 16, 70) && NotEnoughUpdates.INSTANCE.config.customArmour.sendWardrobeCommand && Mouse.getEventButtonState() && Minecraft.getMinecraft().thePlayer.inventory.getItemStack() == null) { -- cgit