Skip to content

Commit

Permalink
im so fucking bad with commit messages
Browse files Browse the repository at this point in the history
  • Loading branch information
exhq committed Aug 23, 2023
1 parent cecda24 commit 33c5724
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/client/java/dev/exhq/ESSMConfigModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class ESSMConfigModel {

public ESSMhud.PosData Mana = new ESSMhud.PosData();
public ESSMhud.PosData UsedMana = new ESSMhud.PosData();

public ESSMhud.PosData PurseAmount = new ESSMhud.PosData();


}
2 changes: 1 addition & 1 deletion src/client/java/dev/exhq/ESSMhud.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public int getHeight() {
public static ESSMhud Trolley = new ESSMhud(Text.of("Health"), 128,16, EchosShittySkyBlockMod.CONFIG.Health());
public static ESSMhud Trolleymana = new ESSMhud(Text.of("Mana"), 128,16, EchosShittySkyBlockMod.CONFIG.Mana());
public static ESSMhud UsedMana = new ESSMhud(Text.of("UsedMana"), 128,16, EchosShittySkyBlockMod.CONFIG.UsedMana());
public static ESSMhud PurseAmount = new ESSMhud(Text.of("UsedMana"), 128,16, EchosShittySkyBlockMod.CONFIG.UsedMana());
public static ESSMhud PurseAmount = new ESSMhud(Text.of("PurseAmount"), 128,16, EchosShittySkyBlockMod.CONFIG.PurseAmount());
public static ESSMhud Skill = new ESSMhud(Text.of("Skill"), 128,16, 0,0);


Expand Down
29 changes: 22 additions & 7 deletions src/client/java/dev/exhq/EchosShittySkyBlockMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
import net.minecraft.scoreboard.Team;
import net.minecraft.text.Text;

import java.awt.*;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Objects;
Expand All @@ -25,6 +29,7 @@ public class EchosShittySkyBlockMod implements ClientModInitializer {
public static final String MOD_ID = "essm";
public static boolean shouldShowskill;
public static String PurseString;
public static boolean killDante;
public static String coinLogo;
public static String skillInfo;
public class RegexSubstringMatcher {
Expand Down Expand Up @@ -115,21 +120,31 @@ public void onInitializeClient() {
return 0;
}));
});

ClientCommandRegistrationCallback.EVENT.register((dispatcher, registryAccess) -> {
dispatcher.register(literal("killdante").executes(context -> {
killDante = !killDante;
return 0;
}));
});

HudRenderCallback.EVENT.register(new Trolley());
HudRenderCallback.EVENT.register(new ManaUsage());
HudRenderCallback.EVENT.register(new ScoreboardInfo());
HudRenderCallback.EVENT.register((maxtrixStack, tickDelta) -> {

});


ClientReceiveMessageEvents.ALLOW_GAME.register((message, overlay) -> {
return true;
});

//ClientReceiveMessageEvents.MODIFY_GAME.register((message, overlay) -> {
// if(overlay) return message;
// return
//});
ClientReceiveMessageEvents.MODIFY_GAME.register((message, overlay) -> {
if(overlay||!killDante) return message;
var words = message.getString().split(" ");
var newMessage = "";
for (String word : words) {
newMessage += word + "ussy ";
}
return Text.of(newMessage);
});
}
}
7 changes: 7 additions & 0 deletions src/client/java/dev/exhq/ScoreboardInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@
public class ScoreboardInfo implements HudRenderCallback {
@Override
public void onHudRender(DrawContext drawContext, float tickDelta) {
drawContext.getMatrices().push();
drawContext.fill(0, (MinecraftClient.getInstance().getWindow().getHeight())-200, MinecraftClient.getInstance().getWindow().getWidth(), MinecraftClient.getInstance().getWindow().getHeight(), -1);
drawContext.getMatrices().pop();




drawContext.getMatrices().push();
ESSMhud.PurseAmount.applyTransformations(drawContext.getMatrices());
drawContext.drawTextWithShadow(MinecraftClient.getInstance().textRenderer,EchosShittySkyBlockMod.coinLogo, 0,0, 0xfffca800);
Expand Down

0 comments on commit 33c5724

Please sign in to comment.