(int id, int x, int y, int padding, int mouseX, int mouseY)
| 253 | } |
| 254 | |
| 255 | protected void drawSlot(int id, int x, int y, int padding, int mouseX, int mouseY) { |
| 256 | File file = getFile(id); |
| 257 | if (file == null) |
| 258 | return; |
| 259 | String name = file.getName(); |
| 260 | if (currentDir == null) { |
| 261 | name = fsv.getSystemDisplayName(file); |
| 262 | } |
| 263 | MinecraftFactory.getVars().drawString(MinecraftFactory.getVars().shortenToWidth(name, selectionBoxWidth - 18), x + 2, y + 2); |
| 264 | } |
| 265 | |
| 266 | public boolean isSelected(int id) { |
| 267 | return selectedFile == id; |
no test coverage detected