Search in sources :

Example 1 with GuiScrollingFluidGrid

use of betterquesting.client.gui.editors.json.scrolling.GuiScrollingFluidGrid in project BetterQuesting by Funwayguy.

the class GuiJsonFluidSelection method initGui.

@Override
public void initGui() {
    super.initGui();
    this.searchBox = new GuiBigTextField(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.fluidGrid = new GuiScrollingFluidGrid(mc, guiLeft + sizeX / 2 + 8, guiTop + 48, sizeX / 2 - 24, sizeY - 80);
    this.embedded.add(fluidGrid);
    numberBox = new GuiNumberField(fontRenderer, guiLeft + 76, guiTop + 57, 100, 16);
    if (stackSelect != null) {
        numberBox.setText("" + stackSelect.amount);
    }
    searching = FluidRegistry.getRegisteredFluids().values().iterator();
}
Also used : GuiNumberField(betterquesting.api.client.gui.controls.GuiNumberField) GuiBigTextField(betterquesting.api.client.gui.controls.GuiBigTextField) GuiScrollingFluidGrid(betterquesting.client.gui.editors.json.scrolling.GuiScrollingFluidGrid)

Aggregations

GuiBigTextField (betterquesting.api.client.gui.controls.GuiBigTextField)1 GuiNumberField (betterquesting.api.client.gui.controls.GuiNumberField)1 GuiScrollingFluidGrid (betterquesting.client.gui.editors.json.scrolling.GuiScrollingFluidGrid)1