}
};
addControl(_circuitScroll);
_prevCircuit = new Button(this, 344, 16, 30, 30, "Prev")
{
@Override
public void onClick()
{
_selectedCircuit--;
if(_selectedCircuit < 0)
{
_selectedCircuit = _logic.getCircuitCount() - 1;
}
MineFactoryReloadedClient.prcPages.put(new BlockPosition(_logic), _selectedCircuit);
requestCircuit();
}
};
_nextCircuit = new Button(this, 344, 76, 30, 30, "Next")
{
@Override
public void onClick()
{
_selectedCircuit++;
if(_selectedCircuit >= _logic.getCircuitCount())
{
_selectedCircuit = 0;
}
MineFactoryReloadedClient.prcPages.put(new BlockPosition(_logic), _selectedCircuit);
requestCircuit();
}
};
addControl(_prevCircuit);
addControl(_nextCircuit);
_reinit = new Button(this, 316, 228, 60, 20, "Reinitialize")
{
@Override
public void onClick()
{
_reinitCountdown = 40;
}
};
_reinitConfirm = new Button(this, 316, 228, 60, 20, "Confirm")
{
@Override
public void onClick()
{
PacketDispatcher.sendPacketToServer(PacketWrapper.createPacket(MineFactoryReloadedCore.modNetworkChannel, Packets.LogicReinitialize,