Skip to content

Commit

Permalink
fixed tab tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
Globox1997 committed Sep 14, 2023
1 parent f2f042d commit c9e1c2f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### Added:
-
### Fixed:
-
- Fixed treechop incompat
- Fixed tab tooltip
### Changed:
- Updated to mc 1.20.1
-
2 changes: 1 addition & 1 deletion src/main/java/net/levelz/screen/SkillInfoScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) {
int j = (this.height - this.backgroundHeight) / 2;
context.drawTexture(BACKGROUND_TEXTURE, i, j, 0, 0, this.backgroundWidth, this.backgroundHeight, 256, 256);
context.drawText(this.textRenderer, Text.translatable("text.levelz.info", Text.translatable(String.format("spritetip.levelz.%s_skill", this.title))), this.x + 6, this.y + 7, 0x3F3F3F, false);
DrawTabHelper.drawTab(client, context, this, x, y, mouseX, mouseY);

super.render(context, mouseX, mouseY, delta);
DrawTabHelper.drawTab(client, context, this, x, y, mouseX, mouseY);
}

@Override
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/net/levelz/screen/SkillListScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,10 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) {
context.drawTexture(SkillInfoScreen.BACKGROUND_TEXTURE, i, j, 0, 0, this.backgroundWidth, this.backgroundHeight, 256, 256);
context.drawText(this.textRenderer, Text.translatable("text.levelz.locked_list", Text.translatable(String.format("spritetip.levelz.%s_skill", this.title))), this.x + 6, this.y + 7, 0x3F3F3F,
false);
DrawTabHelper.drawTab(client, context, this, x, y, mouseX, mouseY);

super.render(context, mouseX, mouseY, delta);
DrawTabHelper.drawTab(client, context, this, x, y, mouseX, mouseY);

}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/levelz/screen/SkillScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,8 @@ public void render(DrawContext context, int mouseX, int mouseY, float delta) {
context.drawTexture(ICON_TEXTURES, this.x + 155, this.y + 21, 36, 0, 9, 9); // foodIcon
context.drawTexture(ICON_TEXTURES, this.x + 155, this.y + 34, 45, 0, 9, 9); // fortuneIcon

DrawTabHelper.drawTab(client, context, this, x, y, mouseX, mouseY);
super.render(context, mouseX, mouseY, delta);
DrawTabHelper.drawTab(client, context, this, x, y, mouseX, mouseY);
}

@Override
Expand Down

0 comments on commit c9e1c2f

Please sign in to comment.