Keystrokes + rounded
This commit is contained in:
parent
23e45f18c4
commit
af10b20b01
11478
javascript/classes.js
11478
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -21,12 +21,11 @@ public class KeyStrokes extends RenderModule{
|
|||
|
||||
public KeyStrokes(){
|
||||
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 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 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");
|
||||
|
|
|
@ -30,7 +30,11 @@ public class RenderUtils {
|
|||
final float f3 = (color >> 8 & 0xFF) / 255.0f;
|
||||
final float f4 = (color & 0xFF) / 255.0f;
|
||||
GlStateManager.color(f2, f3, f4, f1);
|
||||
if(rounded[0]){
|
||||
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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user