d
This commit is contained in:
parent
090a6855f0
commit
23e45f18c4
50660
javascript/classes.js
50660
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -93,32 +93,32 @@ public class KeyStrokes extends RenderModule{
|
|||
|
||||
//W
|
||||
RenderUtils.drawRoundedRect(this.x + 30, this.y + 3, this.x + 55, this.y + 25 + 3, 4,
|
||||
wKey ? getColor(gcolor) : getColor(gcolorp));
|
||||
wKey ? getColor(gcolor) : getColor(gcolorp), Theme.getRounded());
|
||||
// S
|
||||
RenderUtils.drawRoundedRect(this.x + 30, this.y + 30, this.x + 55, this.y + 55, 4,
|
||||
sKey ? getColor(gcolor) : getColor(gcolorp));
|
||||
sKey ? getColor(gcolor) : getColor(gcolorp), Theme.getRounded());
|
||||
// A
|
||||
RenderUtils.drawRoundedRect(this.x + 3, this.y + 30, this.x + 25 + 3, this.y + 55, 4,
|
||||
aKey ? getColor(gcolor) : getColor(gcolorp));
|
||||
aKey ? getColor(gcolor) : getColor(gcolorp), Theme.getRounded());
|
||||
// D
|
||||
RenderUtils.drawRoundedRect(this.x + 60 - 3, this.y + 30, this.x + 85 - 3, this.y + 25 + 5 + 25, 4,
|
||||
dKey ? getColor(gcolor) : getColor(gcolorp));
|
||||
dKey ? getColor(gcolor) : getColor(gcolorp), Theme.getRounded());
|
||||
// LMB
|
||||
RenderUtils.drawRoundedRect(this.x+3, this.y+57, this.x+41, this.y+82, 4,
|
||||
pressed ? getColor(gcolor) : getColor(gcolorp));
|
||||
pressed ? getColor(gcolor) : getColor(gcolorp), Theme.getRounded());
|
||||
// RMB
|
||||
RenderUtils.drawRoundedRect(this.x + 45 - 1, this.y + 60 - 3, this.x + 85 - 3, this.y + 85 - 3, 4,
|
||||
rpressed ? getColor(gcolor) : getColor(gcolorp));
|
||||
rpressed ? getColor(gcolor) : getColor(gcolorp), Theme.getRounded());
|
||||
|
||||
// Jump
|
||||
if(jump.getValue())
|
||||
RenderUtils.drawRoundedRect(this.x + 3, this.y+84, this.x+85-3,
|
||||
this.y + 105 - 6, 4, jumpKey ? getColor(gcolor) : getColor(gcolorp));
|
||||
this.y + 105 - 6, 4, jumpKey ? getColor(gcolor) : getColor(gcolorp), Theme.getRounded());
|
||||
|
||||
// Sneak
|
||||
if (sneak.getValue())
|
||||
RenderUtils.drawRoundedRect(this.x + 3, jump.getValue() ? this.y+102 : this.y+84, this.x+85-3,
|
||||
jump.getValue() ? this.y+120-3 : this.y+105-6, 4, mc.gameSettings.keyBindSneak.pressed ? getColor(gcolor) : getColor(gcolorp));
|
||||
jump.getValue() ? this.y+120-3 : this.y+105-6, 4, mc.gameSettings.keyBindSneak.pressed ? getColor(gcolor) : getColor(gcolorp), Theme.getRounded());
|
||||
|
||||
|
||||
mc.fontRendererObj.drawString("W", this.x+25+5+(25/2-mc.fontRendererObj.getStringWidth("W") + 4), this.y+8+3, wKey ? getColor(colorp) : getColor(color), Theme.getTextShadow());
|
||||
|
|
|
@ -24,7 +24,7 @@ public class RenderUtils {
|
|||
}
|
||||
}
|
||||
|
||||
public static void drawRoundedRect(final float paramInt1, final float paramInt2, final float paramInt3, final float paramInt4, final float radius, final int color) {
|
||||
public static void drawRoundedRect(final float paramInt1, final float paramInt2, final float paramInt3, final float paramInt4, final float radius, final int color, boolean... rounded) {
|
||||
final float f1 = (color >> 24 & 0xFF) / 255.0f;
|
||||
final float f2 = (color >> 16 & 0xFF) / 255.0f;
|
||||
final float f3 = (color >> 8 & 0xFF) / 255.0f;
|
||||
|
|
Loading…
Reference in New Issue
Block a user