(int id, int x, int y, int padding, int mouseX, int mouseY)
| 235 | } |
| 236 | |
| 237 | protected void drawSlot(int id, int x, int y, int padding, int mouseX, int mouseY) { |
| 238 | File file = getFile(id); |
| 239 | if (file == null) |
| 240 | return; |
| 241 | String name = file.getName(); |
| 242 | if (currentDir == null) { |
| 243 | name = fsv.getSystemDisplayName(file); |
| 244 | } |
| 245 | MinecraftFactory.getVars().drawString(MinecraftFactory.getVars().shortenToWidth(name, selectionBoxWidth - 18), x + 2, y + 2); |
| 246 | } |
| 247 | |
| 248 | public boolean isSelected(int id) { |
| 249 | return selectedFile == id; |
no test coverage detected