Package logisticspipes.utils.gui

Examples of logisticspipes.utils.gui.GuiStringHandlerButton$StringHandler


  @Override
  public void initGui() {
    super.initGui();
    //Default item toggle:
    buttonList.clear();
    buttonList.add(new GuiStringHandlerButton(0, width / 2 + 20, height / 2 - 34, 60, 20, new GuiStringHandlerButton.StringHandler(){
      @Override
      public String getContent() {
        return _advancedExtractor.areItemsIncluded() ? "Included" : "Excluded";
      }}));
View Full Code Here


  @SuppressWarnings("unchecked")
  @Override
  public void initGui() {
    super.initGui();
       buttonList.clear();
       buttonList.add(new GuiStringHandlerButton(0, width / 2 + 40, height / 2 - 59, 45, 20, new GuiStringHandlerButton.StringHandler() {
    @Override
    public String getContent() {
      return _provider.isExcludeFilter() ? "Exclude" : "Include";
    }
       }));
View Full Code Here

  @Override
  public void initGui() {
    super.initGui();
       //Default item toggle:
       buttonList.clear();
       buttonList.add(new GuiStringHandlerButton(0, width / 2 + 50, height / 2 - 34, 30, 20, new GuiStringHandlerButton.StringHandler(){
    @Override
    public String getContent() {
      return _itemSink.isDefaultRoute() ? "Yes" : "No";
    }}));
  }
View Full Code Here

  @SuppressWarnings("unchecked")
  @Override
  public void initGui() {
    super.initGui();
    this.buttonList.clear();
    this.buttonList.add(new GuiStringHandlerButton(0, guiLeft + 12, guiTop + 20, 96, 20, new GuiStringHandlerButton.StringHandler() {
      @Override
      public String getContent() {
        return module.getExtractMode()==1 ? "Extract Mode: on" : "Extract Mode: off";
      }
    }));
View Full Code Here

  public void initGui() {
    super.initGui();
    buttonList.clear();
    final String blocked = StringUtil.translate(PREFIX + "Blocked");
    final String allowed = StringUtil.translate(PREFIX + "Allowed");
    buttonList.add(new GuiStringHandlerButton(0, width / 2 + 23, height / 2 + 27 - 139, 60 , 20, new StringHandler() {@Override public String getContent() {return pipe.isBlocking() ? blocked : allowed;}}));
    buttonList.add(new GuiStringHandlerButton(1, width / 2 + 23, height / 2 + 60 - 139, 60 , 20, new StringHandler() {@Override public String getContent() {return pipe.isBlockProvider() ? blocked : allowed;}}));
    buttonList.add(new GuiStringHandlerButton(2, width / 2 + 23, height / 2 + 93 - 139, 60 , 20, new StringHandler() {@Override public String getContent() {return pipe.isBlockCrafer() ? blocked : allowed;}}));
    buttonList.add(new GuiStringHandlerButton(3, width / 2 + 23, height / 2 + 126- 139, 60 , 20, new StringHandler() {@Override public String getContent() {return pipe.isBlockSorting() ? blocked : allowed;}}));
    buttonList.add(new GuiStringHandlerButton(4, width / 2 + 23, height / 2 + 160- 139, 60 , 20, new StringHandler() {@Override public String getContent() {return pipe.isBlockPower() ? blocked : allowed;}}));
  }
View Full Code Here

  @Override
  public void initGui() {
    super.initGui();
      //Default item toggle:
    buttonList.clear();
    buttonList.add(new GuiStringHandlerButton(0, width / 2 - 6, height / 2 - 34, 88, 20, new GuiStringHandlerButton.StringHandler() {
      @Override
      public String getContent() {
        return _module.isDischargeMode() ? "Discharge Items" : "Charge Items";
      }
    }));
View Full Code Here

TOP

Related Classes of logisticspipes.utils.gui.GuiStringHandlerButton$StringHandler

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.