Package buildcraft.core.gui.tooltips

Examples of buildcraft.core.gui.tooltips.ToolTipLine


  @Override
  public void initGui() {
    super.initGui();

    tool = new GuiBetterButton(0, guiLeft + 5, guiTop + 20, 20, "+");
    tool.setToolTip(new ToolTip(new ToolTipLine(StringUtils.localize("tip.tool.add"))));
    buttonList.add(tool);

    savedButtonList = buttonList;
  }
View Full Code Here


  protected void actionPerformed(GuiButton button) {
    if (button == tool) {
      if (tool.displayString.equals("+")) {
        tool.displayString = "-";
        tool.getToolTip().remove(0);
        tool.getToolTip().add(new ToolTipLine(StringUtils.localize("tip.tool.remove")));
      } else {
        tool.displayString = "+";
        tool.getToolTip().remove(0);
        tool.getToolTip().add(new ToolTipLine(StringUtils.localize("tip.tool.add")));
      }
    }
  }
View Full Code Here

  protected void refreshTooltip() {
    toolTip.clear();
    int amount = 0;
    if (getFluid() != null && getFluid().amount > 0) {
      ToolTipLine fluidName = new ToolTipLine(getFluid().getFluid().getLocalizedName(getFluid()));
      fluidName.setSpacing(2);
      toolTip.add(fluidName);
      amount = getFluid().amount;
    }
    toolTip.add(new ToolTipLine(String.format(Locale.ENGLISH, "%,d / %,d", amount, getCapacity())));
  }
View Full Code Here

    optionExcavate = new GuiBetterButton(1, guiLeft + 5, guiTop + 55, 79, "");
    buttonList.add(optionExcavate);

    optionAllowCreative = new GuiBetterButton(2, guiLeft + 5, guiTop + 80, 79, "");
    optionAllowCreative.setToolTip(new ToolTip(500,
        new ToolTipLine(StringUtils.localize("tile.architect.tooltip.allowCreative.1")),
        new ToolTipLine(StringUtils.localize("tile.architect.tooltip.allowCreative.2"))
    ));
    buttonList.add(optionAllowCreative);
   
    textField = new GuiTextField(this.fontRendererObj, TEXT_X, TEXT_Y, TEXT_WIDTH, TEXT_HEIGHT);
    textField.setMaxStringLength(BuildCraftBuilders.MAX_BLUEPRINTS_NAME_SIZE);
View Full Code Here

TOP

Related Classes of buildcraft.core.gui.tooltips.ToolTipLine

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.