Skip to content

Commit

Permalink
2 todos done
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuilder1961 committed Nov 15, 2024
1 parent 8e5b9d8 commit c56416c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/obro1961/chatpatches/gui/ContextMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class ContextMenu {

// normal variables
private static final MinecraftClient mc = MinecraftClient.getInstance();
private static final int buttonPadding = 4; // todo keep? idk
private static final int buttonPadding = 4;
// text
static final UnaryOperator<Text> UNKNOWN = (id) -> Text.translatable("text.chatpatches.copy.unknownData", id); // todo make sure this looks okay in practice
static final Text MENU_STRING = Text.translatable("text.chatpatches.copy.copyString");
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/obro1961/chatpatches/gui/MenuButtonWidget.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ public boolean mouseClicked(double mX, double mY, int button) {
}

public void render(DrawContext drawContext, int mX, int mY, float delta) {
//todo when i move this over, add credit to dzwdz's Chat Heads for the skin texture code
if(!button.visible || x() < 0 || y() < 0)
return;

Expand All @@ -184,6 +183,8 @@ public void render(DrawContext drawContext, int mX, int mY, float delta) {
int y = (int) (anchor.y + yOffset + 1);
drawContext.drawTexture(skinTexture.texture(), x, y, 16, 16, 8, 8, 8, 8, 64, 64);
drawContext.drawTexture(skinTexture.texture(), x, y, 16, 16, 40, 8, 8, 8, 64, 64);

// fuck this, there's a reason PlayerSkinDrawer exists! sorry dzwdz :P
}
}
}

0 comments on commit c56416c

Please sign in to comment.