Search in sources :

Example 1 with GuiAmplifierTab

use of mekanism.client.gui.element.tab.GuiAmplifierTab in project Mekanism by mekanism.

the class GuiLaserAmplifier method addGuiElements.

@Override
protected void addGuiElements() {
    super.addGuiElements();
    addButton(new GuiEnergyGauge(tile.getEnergyContainer(), GaugeType.STANDARD, this, 6, 10));
    addButton(new GuiAmplifierTab(this, tile));
    timerField = addButton(new GuiTextField(this, 96, 28, 36, 11));
    timerField.setMaxStringLength(4);
    timerField.setEnterHandler(this::setTime);
    timerField.setInputValidator(InputValidator.DIGIT);
    minField = addButton(new GuiTextField(this, 96, 43, 72, 11));
    minField.setMaxStringLength(10);
    minField.setEnterHandler(this::setMinThreshold);
    minField.setInputValidator(InputValidator.SCI_NOTATION);
    maxField = addButton(new GuiTextField(this, 96, 58, 72, 11));
    maxField.setMaxStringLength(10);
    maxField.setEnterHandler(this::setMaxThreshold);
    maxField.setInputValidator(InputValidator.SCI_NOTATION);
}
Also used : GuiAmplifierTab(mekanism.client.gui.element.tab.GuiAmplifierTab) GuiEnergyGauge(mekanism.client.gui.element.gauge.GuiEnergyGauge) GuiTextField(mekanism.client.gui.element.text.GuiTextField)

Aggregations

GuiEnergyGauge (mekanism.client.gui.element.gauge.GuiEnergyGauge)1 GuiAmplifierTab (mekanism.client.gui.element.tab.GuiAmplifierTab)1 GuiTextField (mekanism.client.gui.element.text.GuiTextField)1