use of betterquesting.client.gui.editors.json.scrolling.GuiScrollingItemGrid in project BetterQuesting by Funwayguy.
the class GuiJsonItemSelection method initGui.
@Override
public void initGui() {
super.initGui();
this.searchBox = new GuiBigTextField(this.fontRenderer, guiLeft + sizeX / 2 + 9, guiTop + 33, sizeX / 2 - 26, 14);
this.searchBox.setWatermark(I18n.format("betterquesting.gui.search"));
this.searchBox.setMaxStringLength(Integer.MAX_VALUE);
this.itemGrid = new GuiScrollingItemGrid(mc, guiLeft + sizeX / 2 + 8, guiTop + 48, sizeX / 2 - 24, sizeY - 80);
this.embedded.add(itemGrid);
numberBox = new GuiNumberField(fontRenderer, guiLeft + 77, guiTop + 49, 98, 14);
if (stackSelect != null) {
numberBox.setText("" + stackSelect.stackSize);
}
searching = Item.REGISTRY.iterator();
btnOreDict = new GuiButtonThemed(3, guiLeft + 76, guiTop + 64, 100, 20, "OreDict: " + (stackSelect.oreDict.length() <= 0 ? "NONE" : stackSelect.oreDict), true);
this.buttonList.add(btnOreDict);
}
Aggregations