Package powercrystals.core.gui.controls

Examples of powercrystals.core.gui.controls.Button


      }
    };
   
    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,
View Full Code Here

TOP

Related Classes of powercrystals.core.gui.controls.Button

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.