Skip to content

Commit 3fb3b1d

Browse files
committed
Commented out RenameRefactor status box (unneeded)
1 parent 2e8b96f commit 3fb3b1d

File tree

2 files changed

+24
-22
lines changed

2 files changed

+24
-22
lines changed

src/main/java/noppes/npcs/client/gui/util/GuiScriptTextArea.java

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import net.minecraft.client.Minecraft;
44
import net.minecraft.client.gui.GuiScreen;
55
import net.minecraft.client.gui.ScaledResolution;
6+
import net.minecraft.entity.player.EntityPlayer;
67
import net.minecraft.util.ChatAllowedCharacters;
78
import noppes.npcs.NoppesStringUtils;
89
import noppes.npcs.client.ClientProxy;
@@ -113,6 +114,8 @@ public void init(int x, int y, int width, int height, String text) {
113114
setCallbacks();
114115
initGui();
115116
initializeKeyBindings();
117+
Minecraft mc = Minecraft.getMinecraft();
118+
mc.thePlayer.worldObj.setRainStrength(0);
116119
}
117120
public void initGui() {
118121
int endX = x + width, endY = y + height;
@@ -820,28 +823,6 @@ public void drawTextBox(int xMouse, int yMouse) {
820823

821824
// Draw go to line dialog (overlays everything)
822825
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-
845826
KEYS_OVERLAY.draw(xMouse, yMouse, wheelDelta);
846827
}
847828

src/main/java/noppes/npcs/client/gui/util/script/RenameRefactorHandler.java

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package noppes.npcs.client.gui.util.script;
22

33
import net.minecraft.client.gui.GuiScreen;
4+
import noppes.npcs.client.ClientProxy;
45
import noppes.npcs.client.gui.util.script.JavaTextContainer.LineData;
56
import org.lwjgl.input.Keyboard;
67

@@ -948,4 +949,24 @@ public String getScopeDescription() {
948949
public int getOccurrenceCount() {
949950
return allOccurrences.size();
950951
}
952+
953+
public void drawStatusBox() {
954+
// String status = renameHandler.getScopeDescription();
955+
// String hint = "Enter \u2713 | Esc \u2715"; // Enter to confirm, Esc to cancel
956+
// int statusWidth = Math.max(ClientProxy.Font.width(status), ClientProxy.Font.width(hint)) + 8;
957+
// int statusX = x + width - statusWidth - 8;
958+
// int statusY = y + height - 30;
959+
// // Semi-transparent background
960+
// drawRect(statusX - 2, statusY - 2, statusX + statusWidth + 2, statusY + 24, 0xDD1a1a2e);
961+
// // Border (purple/blue for rename mode)
962+
// int borderColor = 0xFF6677dd;
963+
// drawRect(statusX - 2, statusY - 2, statusX + statusWidth + 2, statusY - 1, borderColor);
964+
// drawRect(statusX - 2, statusY + 23, statusX + statusWidth + 2, statusY + 24, borderColor);
965+
// drawRect(statusX - 2, statusY - 2, statusX - 1, statusY + 24, borderColor);
966+
// drawRect(statusX + statusWidth + 1, statusY - 2, statusX + statusWidth + 2, statusY + 24, borderColor);
967+
// // Status text (top line)
968+
// ClientProxy.Font.drawString(status, statusX + 4, statusY + 2, 0xFFccddff);
969+
// // Hint text (bottom line - dimmer)
970+
// ClientProxy.Font.drawString(hint, statusX + 4, statusY + 13, 0xAA88aacc);
971+
}
951972
}

0 commit comments

Comments
 (0)