Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Commit

Permalink
Fix bind component rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
Kopamed committed Jun 9, 2022
1 parent 63c8edd commit 30cafe8
Show file tree
Hide file tree
Showing 15 changed files with 239 additions and 232 deletions.
Binary file modified build/libs/[1.8.9] BetterKeystrokes V-1.2.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ public BindComponent(ModuleComponent b, int o) {
this.o = o;
}

public void setModuleStartAt(int n) {
this.o = n;
}

public void draw() {
GL11.glPushMatrix();
GL11.glScaled(0.5D, 0.5D, 0.5D);
Expand Down Expand Up @@ -81,7 +77,7 @@ public void keyTyped(char t, int k) {

@Override
public void setComponentStartAt(int n) {

this.o = n;
}

public boolean i(int x, int y) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void onCall(String[] args) {
n = args[0];
Terminal.print("Retrieving data...");
Raven.getExecutor().execute(() -> {
int[] s = Utils.Profiles.getHypixelStats(n, Utils.Profiles.DM.OVERALL);
int[] s = Utils.Profiles.getHypixelStats(n, Utils.Profiles.DuelsStatsMode.OVERALL);
if (s != null) {
if (s[0] == -1) {
Terminal.print((n.length() > 16 ? n.substring(0, 16) + "..." : n) + " does not exist!");
Expand All @@ -37,7 +37,6 @@ public void onCall(String[] args) {
Terminal.print("Losses: " + s[1]);
Terminal.print("WLR: " + wlr);
Terminal.print("Winstreak: " + s[2]);
Terminal.print("Threat: " + DuelsStats.gtl(s[0], s[1], wlr, s[2]).substring(2));
}
} else {
Terminal.print("There was an error.");
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/keystrokesmod/client/command/commands/Nick.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void onCall(String[] args){
return;
}

DuelsStats.nk = args[0];
Terminal.print("&aNick has been set to: " + DuelsStats.nk);
DuelsStats.playerNick = args[0];
Terminal.print("&aNick has been set to: " + DuelsStats.playerNick);
}
}
8 changes: 4 additions & 4 deletions src/main/java/keystrokesmod/client/command/commands/Uwu.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ public void onCall(String[] args){

for(int i = 0; i < 4; ++i) {
if (i == 0) {
print("&e" + "nya");
print("nya");
} else if (i == 1) {
print("&a" + "ichi ni san");
print("ichi ni san");
} else if (i == 2) {
print("&e" + "nya");
print("nya");
} else {
print("&a" + "arigatou!");
print("arigatou!");
}

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public void onCall(String[] args) {
Version clientVersion = Raven.versionManager.getClientVersion();
Version latestVersion = Raven.versionManager.getLatestVersion();

print("&eYour build: " + clientVersion);
print("&aLatest version: " + latestVersion);
print("Your build: " + clientVersion);
print("Latest version: " + latestVersion);

}
}
6 changes: 3 additions & 3 deletions src/main/java/keystrokesmod/client/main/ClientConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ public static void applyKeyStrokeSettingsFromConfigFile() {
KeyStroke.y = Integer.parseInt(line);
break;
case 3:
KeyStroke.currentColorNumber = Integer.parseInt(line);
KeyStroke.enabled = Boolean.parseBoolean(line);
break;
case 4:
KeyStroke.showMouseButtons = Boolean.parseBoolean(line);
KeyStroke.currentColorNumber = Integer.parseInt(line);
break;
case 5:
KeyStroke.enabled = Boolean.parseBoolean(line);
KeyStroke.showMouseButtons = Boolean.parseBoolean(line);
break;
case 6:
KeyStroke.outline = Boolean.parseBoolean(line);
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/keystrokesmod/client/main/Raven.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,27 @@


//Todo fix wtap
/* todo dump
ghost blocks add ability to place air and or other block by ID possibly
add blink
fix autotool crashing game
make it so that when you open the mod menu, your game's gui is set to normal/small to make organization and viewing modules easier
add a way to input a hex code for the values of header backgrounds, text colors, etc
menu blur in the background of the gui
make autoplace have checks for bridging only like bridge assist does
remove explicit b9 name tags or the default name tags, there isn't much point in both. you could also just make them into one module
Fix aim assist
tooltips, fix murder mystery detective, fix autotool
*/

public class Raven {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ private void drawStats(NetworkPlayerInfo player, FontRenderer fr) {
fr.drawString(wlr + "", statStart.get(StatType.WLR), (int)textY, getWLRColour(wlr));
fr.drawString(stats[6] + "", statStart.get(StatType.FINALS), (int)textY, getFinalColour(stats[6]));
fr.drawString(stats[7] + "", statStart.get(StatType.WINS), (int)textY, getFinalColour(stats[7]));
String bad = DuelsStats.gtl(stats[7], stats[8], (double)(stats[5])/100, stats[2]).substring(2);
fr.drawString(bad, statStart.get(StatType.OVERALLTHREAT), (int)textY, getTreatColour(bad));

textY += marginTextY.getInput() + fr.FONT_HEIGHT;
linesDrawn++;
Expand Down
Loading

0 comments on commit 30cafe8

Please sign in to comment.