(int id, int mouseX, int mouseY)
| 390 | } |
| 391 | |
| 392 | protected void elementHovered(int id, int mouseX, int mouseY) { |
| 393 | File file = getFile(id); |
| 394 | if (file == null) |
| 395 | return; |
| 396 | String name = file.getName(); |
| 397 | if (currentDir == null) { |
| 398 | name = fsv.getSystemDisplayName(file); |
| 399 | } |
| 400 | if (MinecraftFactory.getVars().getStringWidth(name) > selectionBoxWidth - 18 - MinecraftFactory.getVars().getStringWidth("...")) { |
| 401 | MinecraftFactory.getVars().getCurrentScreen().drawHoveringText(MinecraftFactory.getVars().splitStringToWidth(name, 200), mouseX, mouseY); |
| 402 | } |
| 403 | } |
| 404 | |
| 405 | @Override |
| 406 | public File getCurrentDir() { |
no test coverage detected