use of mcjty.lib.gui.layout.PositionalLayout in project RFToolsControl by McJty.
the class GuiWorkbench method initGui.
@Override
public void initGui() {
super.initGui();
Panel toplevel = new Panel(mc, this).setLayout(new PositionalLayout()).setBackground(mainBackground);
toplevel.setBounds(new Rectangle(guiLeft, guiTop, WIDTH, HEIGHT));
window = new Window(this, toplevel);
}
use of mcjty.lib.gui.layout.PositionalLayout in project XNet by McJty.
the class GuiController method initGui.
@Override
public void initGui() {
super.initGui();
Panel toplevel = new Panel(mc, this).setLayout(new PositionalLayout()).setBackgrounds(sideBackground, mainBackground).setBackgroundLayout(true, SIDEWIDTH);
toplevel.setBounds(new Rectangle(guiLeft - SIDEWIDTH, guiTop, xSize + SIDEWIDTH, ySize));
initEnergyBar();
searchBar = new TextField(mc, this).setLayoutHint(new PositionalLayout.PositionalHint(5, 21, 163, 14));
searchBar.addTextEvent((parent, newText) -> needsRefresh = true);
Panel listPanel = initConnectorListPanel();
Panel channelSelectionPanel = initChannelSelectionPanel();
initEditPanels();
toplevel.addChild(channelSelectionPanel).addChild(listPanel).addChild(channelEditPanel).addChild(connectorEditPanel).addChild(searchBar).addChild(energyBar);
window = new Window(this, toplevel);
editingConnector = null;
editingChannel = -1;
refresh();
listDirty = 0;
int currentRF = GenericEnergyStorageTileEntity.getCurrentRF();
energyBar.setValue(currentRF);
tileEntity.requestRfFromServer(XNet.MODID);
}
Aggregations