Search in sources :

Example 1 with SideConfigDisplay

use of logisticspipes.utils.gui.sideconfig.SideConfigDisplay in project LogisticsPipes by RS485.

the class SneakyConfigurationPopup method initGui.

@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    configDisplay = new SideConfigDisplay(config) {

        @Override
        public void handleSelection(SelectedFace selection) {
            SneakyConfigurationPopup.this.handleSelection(selection);
        }
    };
    configDisplay.init();
    configDisplay.renderNeighbours = true;
    buttonList.add(new GuiButton(0, right - 106, bottom - 26, 100, 20, "Cancel"));
    bounds = new Rectangle(guiLeft + 5, guiTop + 20, this.xSize - 10, this.ySize - 50);
}
Also used : GuiButton(net.minecraft.client.gui.GuiButton) SideConfigDisplay(logisticspipes.utils.gui.sideconfig.SideConfigDisplay) Rectangle(java.awt.Rectangle)

Example 2 with SideConfigDisplay

use of logisticspipes.utils.gui.sideconfig.SideConfigDisplay in project LogisticsPipes by RS485.

the class DisconnectionConfigurationPopup method initGui.

@Override
public void initGui() {
    super.initGui();
    buttonList.clear();
    configDisplay = new SideConfigDisplay(pipe) {

        @Override
        public void handleSelection(SelectedFace selection) {
            DisconnectionConfigurationPopup.this.handleSelection(selection);
        }
    };
    configDisplay.init();
    configDisplay.renderNeighbours = true;
    buttonList.add(new GuiButton(0, right - 106, bottom - 26, 100, 20, "OK"));
    bounds = new Rectangle(guiLeft + 5, guiTop + 20, this.xSize - 10, this.ySize - 50);
}
Also used : GuiButton(net.minecraft.client.gui.GuiButton) SideConfigDisplay(logisticspipes.utils.gui.sideconfig.SideConfigDisplay) Rectangle(java.awt.Rectangle)

Aggregations

Rectangle (java.awt.Rectangle)2 SideConfigDisplay (logisticspipes.utils.gui.sideconfig.SideConfigDisplay)2 GuiButton (net.minecraft.client.gui.GuiButton)2