category = i >= categories ? null : allCategories.get(i);
int x = i % 4;
int y = i / 4;
int size = 27;
GuiButtonCategory button = new GuiButtonCategory(i, left + 18 + x * size, top + 35 + y * size, this, category);
buttonList.add(button);
}
}
populateBookmarks();
}