use of convenientadditions.api.gui.widget.itemView.ItemViewMulti in project ConvenientAdditions by Necr0.
the class GuiTransmutationTomeRecipeLookup method initClearable.
public void initClearable() {
int start = page * 10;
int end = Math.min(page * 10 + 9, currentLookups.size() - 1);
for (int i = 0; i < (end - start + 1); i++) {
clearable.add(addWidget(new ItemViewMulti(getBases(currentLookups.get(start + i)), leftX + (i >= 5 ? 84 : 0) + 8, topY + 18 + (i % 5) * 18)));
clearable.add(addWidget(new ItemViewMulti(getTransmutators(currentLookups.get(start + i)), leftX + (i >= 5 ? 84 : 0) + 26, topY + 18 + (i % 5) * 18)));
clearable.add(addWidget(new CenteredLabelMulti(leftX + (i >= 5 ? 84 : 0) + 54, topY + 21 + (i % 5) * 18, getLevels(currentLookups.get(start + i)), 0x009900)));
clearable.add(addWidget(new ItemViewMulti(getResults(currentLookups.get(start + i)), leftX + (i >= 5 ? 84 : 0) + 68, topY + 18 + (i % 5) * 18)));
}
if (getPages() != 0)
clearable.add(addWidget(new CenteredLabel(leftX + 86, topY + 110, Helper.localize(ModConstants.Mod.MODID + ":page") + ": " + (page + 1) + "/" + getPages())));
else
clearable.add(addWidget(new CenteredLabel(leftX + 86, topY + 110, Helper.localize(ModConstants.Mod.MODID + ":page") + ": 0/0")));
}
Aggregations