Keystrokes + rounded

This commit is contained in:
ThisIsALegitUsername 2023-02-01 00:11:23 +00:00
parent 23e45f18c4
commit af10b20b01
4 changed files with 5747 additions and 5740 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -21,12 +21,11 @@ public class KeyStrokes extends RenderModule{
public KeyStrokes(){ public KeyStrokes(){
super("Keystrokes", Category.HUD, 25, 4, true); super("Keystrokes", Category.HUD, 25, 4, true);
addSetting(sneak, tshadow, jump, color, colorp, gcolor, gcolorp); addSetting(sneak, jump, color, colorp, gcolor, gcolorp);
} }
public BooleanSetting sneak = new BooleanSetting("Sneak", "", false); public BooleanSetting sneak = new BooleanSetting("Sneak", "", false);
public BooleanSetting jump = new BooleanSetting("Jump", "", true); public BooleanSetting jump = new BooleanSetting("Jump", "", true);
public BooleanSetting tshadow = new BooleanSetting("Text Shadow", "", false);
public ModeSetting color = new ModeSetting("Unpressed text color", "", "White", "Red", "Yellow", "Green", "Blue", "Pink", "Orange", "Black"); public ModeSetting color = new ModeSetting("Unpressed text color", "", "White", "Red", "Yellow", "Green", "Blue", "Pink", "Orange", "Black");
public ModeSetting colorp = new ModeSetting("Pressed text color", "", "Black", "Red", "Yellow", "Green", "Blue", "Pink", "Orange", "White"); public ModeSetting colorp = new ModeSetting("Pressed text color", "", "Black", "Red", "Yellow", "Green", "Blue", "Pink", "Orange", "White");
public ModeSetting gcolor = new ModeSetting("Pressed button color", "", "White", "Red", "Yellow", "Green", "Blue", "Pink", "Orange", "Black"); public ModeSetting gcolor = new ModeSetting("Pressed button color", "", "White", "Red", "Yellow", "Green", "Blue", "Pink", "Orange", "Black");

View File

@ -30,7 +30,11 @@ public class RenderUtils {
final float f3 = (color >> 8 & 0xFF) / 255.0f; final float f3 = (color >> 8 & 0xFF) / 255.0f;
final float f4 = (color & 0xFF) / 255.0f; final float f4 = (color & 0xFF) / 255.0f;
GlStateManager.color(f2, f3, f4, f1); GlStateManager.color(f2, f3, f4, f1);
if(rounded[0]){
drawRoundedRect(paramInt1, paramInt2, paramInt3, paramInt4, radius); drawRoundedRect(paramInt1, paramInt2, paramInt3, paramInt4, radius);
}else {
Gui.drawRect((int)paramInt1, (int)paramInt2, (int)paramInt3, (int)paramInt4, color);
}
} }
public static void drawRoundedRect(final float paramFloat1, final float paramFloat2, final float paramFloat3, final float paramFloat4, final float paramFloat5) { public static void drawRoundedRect(final float paramFloat1, final float paramFloat2, final float paramFloat3, final float paramFloat4, final float paramFloat5) {