Examples of GuiToolTip


Examples of crazypants.gui.GuiToolTip

    this.cube = te;

    xSize = 245;
    ySize = 145;

    addToolTip(new GuiToolTip(new Rectangle(POWER_X, POWER_Y, POWER_WIDTH, POWER_HEIGHT), "") {

      @Override
      protected void updateText() {
        text.clear();
        text.add(PowerDisplayUtil.formatPower(cube.getEnergyStored()) + " / "
View Full Code Here

Examples of crazypants.gui.GuiToolTip

  public GuiCombustionGenerator(InventoryPlayer par1InventoryPlayer, TileCombustionGenerator te) {
    super(te, new ContainerCombustionEngine(par1InventoryPlayer, te));
    this.gen = te;

    addToolTip(new GuiToolTip(new Rectangle(114, 21, 15, 47), "") {

      @Override
      protected void updateText() {
        text.clear();
        String heading = Lang.localize("combustionGenerator.coolantTank");
        if(gen.getCoolantTank().getFluid() != null) {
          heading += ": " + gen.getCoolantTank().getFluid().getFluid().getLocalizedName();
        }
        text.add(heading);
        text.add(Fluids.toCapactityString(gen.getCoolantTank()));
      }

    });

    addToolTip(new GuiToolTip(new Rectangle(48, 21, 15, 47), "") {

      @Override
      protected void updateText() {
        text.clear();
        String heading = Lang.localize("combustionGenerator.fuelTank");
View Full Code Here

Examples of crazypants.gui.GuiToolTip

    y += 8;
    priDownB = new IconButtonEIO(gui, ID_PRIORITY_DOWN, x, y, IconEIO.MINUS_BUT);
    priDownB.setSize(8, 8);

    priorityTooltip = new GuiToolTip(new Rectangle(priLeft + 9, y, priWidth, 20), Lang.localize("gui.conduit.item.priority"));

    gui.getContainer().addFilterListener(new FilterChangeListener() {

      @Override
      public void onFilterChanged() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.