Add clearchat

This commit is contained in:
ThisIsALegitUsername 2022-12-28 23:30:00 +00:00
parent 52c3f0d360
commit 80903274f0
10 changed files with 66728 additions and 66720 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -5,6 +5,7 @@ import java.util.List;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import dev.resent.util.misc.W;
import net.lax1dude.eaglercraft.v1_8.log4j.LogManager; import net.lax1dude.eaglercraft.v1_8.log4j.LogManager;
import net.lax1dude.eaglercraft.v1_8.log4j.Logger; import net.lax1dude.eaglercraft.v1_8.log4j.Logger;
import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager; import net.lax1dude.eaglercraft.v1_8.opengl.GlStateManager;
@ -89,6 +90,7 @@ public class GuiNewChat extends Gui {
if (l1 > 3) { if (l1 > 3) {
byte b0 = 0; byte b0 = 0;
int i2 = -i1 * 9; int i2 = -i1 * 9;
if(!W.clearChat().isEnabled())
drawRect(b0, i2 - 9, b0 + l + 4, i2, l1 / 2 << 24); drawRect(b0, i2 - 9, b0 + l + 4, i2, l1 / 2 << 24);
String s = chatline.getChatComponent().getFormattedText(); String s = chatline.getChatComponent().getFormattedText();
GlStateManager.enableBlend(); GlStateManager.enableBlend();