Skip to content

Commit

Permalink
Remove special casing of mobile tooltip ui (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaskelly authored Dec 12, 2024
1 parent 1334ef0 commit 4261d3d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Dungeoneer/src/com/interrupt/dungeoneer/gfx/GlRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -747,14 +747,10 @@ private void drawUI() {
Integer uiTouchPointer = game.input.uiTouchPointer;
if(uiTouchPointer == null) uiTouchPointer = 0;

if(Game.isMobile) {
this.drawTextOnScreen(hoverItm.GetInfoText(), Gdx.input.getX(uiTouchPointer) - Gdx.graphics.getWidth() / 2 + uiSize * 1.25f, -Gdx.input.getY(uiTouchPointer) + Gdx.graphics.getHeight() / 2, uiSize / 5, Color.WHITE, Color.BLACK);
} else {
int tooltipX = game.input.getPointerX(uiTouchPointer);
int tooltipY = game.input.getPointerY(uiTouchPointer);
int tooltipX = game.input.getPointerX(uiTouchPointer);
int tooltipY = game.input.getPointerY(uiTouchPointer);

Game.tooltip.show(tooltipX, -tooltipY + Gdx.graphics.getHeight(), hoverItm);
}
Game.tooltip.show(tooltipX, -tooltipY + Gdx.graphics.getHeight(), hoverItm);

uiBatch.end();
}
Expand Down

0 comments on commit 4261d3d

Please sign in to comment.