Skip to content

Commit

Permalink
fix dependency tooltip depending on a description
Browse files Browse the repository at this point in the history
  • Loading branch information
Wyvest committed Nov 23, 2023
1 parent c674cec commit 1fdcad1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public void keyTyped(char key, int keyCode) {
}

public void drawDescription(long vg, int x, int y, InputHandler inputHandler) {
if (description.trim().equals("")) return;
if (description.trim().isEmpty() && dependencies.isEmpty()) return;
boolean hovered = inputHandler.isAreaHovered(getNameX(x), y, NanoVGHelper.INSTANCE.getTextWidth(vg, name, 14f, Fonts.MEDIUM), 32f);
nameColor = nameColorAnimation.getColor(hovered, false);
if (hovered) hoverTime += GuiUtils.getDeltaTime();
Expand Down

0 comments on commit 1fdcad1

Please sign in to comment.