(int id, int mouseX, int mouseY)
| 411 | } |
| 412 | |
| 413 | protected void elementHovered(int id, int mouseX, int mouseY) { |
| 414 | File file = getFile(id); |
| 415 | if (file == null) |
| 416 | return; |
| 417 | String name = file.getName(); |
| 418 | if (currentDir == null) { |
| 419 | name = fsv.getSystemDisplayName(file); |
| 420 | } |
| 421 | if (MinecraftFactory.getVars().getStringWidth(name) > selectionBoxWidth - 18 - MinecraftFactory.getVars().getStringWidth("...")) { |
| 422 | MinecraftFactory.getVars().getCurrentScreen().drawHoveringText(MinecraftFactory.getVars().splitStringToWidth(name, 200), mouseX, mouseY); |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | @Override |
| 427 | public File getCurrentDir() { |
no test coverage detected