|
3 | 3 | import net.minecraft.client.Minecraft; |
4 | 4 | import net.minecraft.client.gui.GuiScreen; |
5 | 5 | import net.minecraft.client.gui.ScaledResolution; |
| 6 | +import net.minecraft.entity.player.EntityPlayer; |
6 | 7 | import net.minecraft.util.ChatAllowedCharacters; |
7 | 8 | import noppes.npcs.NoppesStringUtils; |
8 | 9 | import noppes.npcs.client.ClientProxy; |
@@ -113,6 +114,8 @@ public void init(int x, int y, int width, int height, String text) { |
113 | 114 | setCallbacks(); |
114 | 115 | initGui(); |
115 | 116 | initializeKeyBindings(); |
| 117 | + Minecraft mc = Minecraft.getMinecraft(); |
| 118 | + mc.thePlayer.worldObj.setRainStrength(0); |
116 | 119 | } |
117 | 120 | public void initGui() { |
118 | 121 | int endX = x + width, endY = y + height; |
@@ -820,28 +823,6 @@ public void drawTextBox(int xMouse, int yMouse) { |
820 | 823 |
|
821 | 824 | // Draw go to line dialog (overlays everything) |
822 | 825 | goToLineDialog.draw(xMouse, yMouse); |
823 | | - |
824 | | - // Draw rename status indicator |
825 | | - if (renameHandler.isActive()) { |
826 | | - String status = renameHandler.getScopeDescription(); |
827 | | - String hint = "Enter \u2713 | Esc \u2715"; // Enter to confirm, Esc to cancel |
828 | | - int statusWidth = Math.max(ClientProxy.Font.width(status), ClientProxy.Font.width(hint)) + 8; |
829 | | - int statusX = x + width - statusWidth - 8; |
830 | | - int statusY = y + height - 30; |
831 | | - // Semi-transparent background |
832 | | - drawRect(statusX - 2, statusY - 2, statusX + statusWidth + 2, statusY + 24, 0xDD1a1a2e); |
833 | | - // Border (purple/blue for rename mode) |
834 | | - int borderColor = 0xFF6677dd; |
835 | | - drawRect(statusX - 2, statusY - 2, statusX + statusWidth + 2, statusY - 1, borderColor); |
836 | | - drawRect(statusX - 2, statusY + 23, statusX + statusWidth + 2, statusY + 24, borderColor); |
837 | | - drawRect(statusX - 2, statusY - 2, statusX - 1, statusY + 24, borderColor); |
838 | | - drawRect(statusX + statusWidth + 1, statusY - 2, statusX + statusWidth + 2, statusY + 24, borderColor); |
839 | | - // Status text (top line) |
840 | | - ClientProxy.Font.drawString(status, statusX + 4, statusY + 2, 0xFFccddff); |
841 | | - // Hint text (bottom line - dimmer) |
842 | | - ClientProxy.Font.drawString(hint, statusX + 4, statusY + 13, 0xAA88aacc); |
843 | | - } |
844 | | - |
845 | 826 | KEYS_OVERLAY.draw(xMouse, yMouse, wheelDelta); |
846 | 827 | } |
847 | 828 |
|
|
0 commit comments