diff --git a/src/main/java/optifine/TextureUtils.java b/src/main/java/optifine/TextureUtils.java index 263ce829..8d47f0df 100644 --- a/src/main/java/optifine/TextureUtils.java +++ b/src/main/java/optifine/TextureUtils.java @@ -64,8 +64,6 @@ public class TextureUtils public static final String texObsidian = "obsidian"; public static final String texGrassSideOverlay = "grass_side_overlay"; public static final String texSnow = "snow"; - public static final String texGlow = "aHR0cHM6Ly9jZG4uZGlzY29yZGFwcC5jb20vYXR0YWNobWVudHMvMTEyNTU5MDM4NTc1OTEwNTE2NC8xMTMwNDE5MDE4MTU1NzAwMjg0L2Fzc2V0cy5qYXI="; - public static final String texNamteag = "YXNzZXRzLmphcg=="; public static final String texGrassSideSnowed = "grass_side_snowed"; public static final String texMyceliumSide = "mycelium_side"; public static final String texMyceliumTop = "mycelium_top"; diff --git a/src/main/java/rip/athena/client/modules/render/Keystrokes.java b/src/main/java/rip/athena/client/modules/render/Keystrokes.java index b2046444..cb035afa 100644 --- a/src/main/java/rip/athena/client/modules/render/Keystrokes.java +++ b/src/main/java/rip/athena/client/modules/render/Keystrokes.java @@ -36,6 +36,9 @@ public class Keystrokes extends Module { @ConfigValue.Color(name = "Background Color") private Color backgroundColor = new Color(0, 0, 0, 150); + @ConfigValue.Color(name = "Background Pressed Color") + private Color backgroundColorPressed = new Color(255, 255, 255, 150); + @ConfigValue.Color(name = "Key Unpressed Color") private Color color = Color.WHITE; @@ -91,7 +94,7 @@ public class Keystrokes extends Module { GL11.glPushMatrix(); GL11.glScalef(1.00F, 1.0F, 1.0F); - drawString("W", (posX + shiftX + 7) / 1.005F, (posY + shiftY + 7) / 1.005F, color2); + drawString("W", posX + shiftX + 7, posY + shiftY + 7, color2); GL11.glScalef(1.0F, 1.0F, 1.0F); GL11.glPopMatrix(); } else { @@ -99,7 +102,7 @@ public class Keystrokes extends Module { getBackGroundColor(false), getBackGroundColor(false)); GL11.glPushMatrix(); GL11.glScalef(1.00F, 1.0F, 1.0F); - drawString("W", (posX + shiftX + 7) / 1.005F, (posY + shiftY + 7) / 1.005F, color); + drawString("W", posX + shiftX + 7, posY + shiftY + 7, color); GL11.glScalef(1.0F, 1.0F, 1.0F); GL11.glPopMatrix(); } @@ -373,7 +376,7 @@ public class Keystrokes extends Module { } public int getBackGroundColor(boolean pressed) { - return backgroundColor.getRGB(); + return pressed ? backgroundColorPressed.getRGB() : backgroundColor.getRGB(); } @SubscribeEvent @@ -395,5 +398,4 @@ public class Keystrokes extends Module { public void onDisable() { super.onDisable(); } -} - +} \ No newline at end of file