Examples of GuiToolTip


Examples of crazypants.gui.GuiToolTip

    monHeading2 = Lang.localize("gui.powerMonitor.monHeading2");
    monHeading3 = Lang.localize("gui.powerMonitor.monHeading3");
    monHeading4 = Lang.localize("gui.powerMonitor.monHeading4");
    monHeading5 = Lang.localize("gui.powerMonitor.monHeading5");

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

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

Examples of crazypants.gui.GuiToolTip

  }
  public void setToolTip(String... tooltipText) {
    if(toolTip == null) {
      toolTip = new GuiToolTip(new Rectangle(xOrigin, yOrigin, width, height), tooltipText);
      //gui.addToolTip(toolTip);
      toolTip.setBounds(new Rectangle(xPosition, yPosition, width, height));
    } else {
      toolTip.setToolTipText(tooltipText);
    }
View Full Code Here

Examples of crazypants.gui.GuiToolTip

  public GuiKillerJoe(InventoryPlayer inventory, TileKillerJoe tileEntity) {
    super(tileEntity, new ContainerKillerJoe(inventory, tileEntity));
    joe = tileEntity;
   
    addToolTip(new GuiToolTip(new Rectangle(18, 11, 15, 47), "") {

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

Examples of crazypants.gui.GuiToolTip

  public GuiMachineBase(AbstractMachineEntity machine, Container container) {
    super(container);
    tileEntity = machine;
    if(renderPowerBar()) {
      addToolTip(new GuiToolTip(new Rectangle(getPowerX(), getPowerY(), getPowerWidth(), getPowerHeight()), "") {

        @Override
        protected void updateText() {
          text.clear();
          if(renderPowerBar()) {
View Full Code Here

Examples of crazypants.gui.GuiToolTip

  public GuiTank(InventoryPlayer par1InventoryPlayer, TileTank te) {
    super(te, new ContainerTank(par1InventoryPlayer, te));
    this.entity = te;
   
    addToolTip(new GuiToolTip(new Rectangle(80, 21, 16, 47), "") {

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

Examples of crazypants.gui.GuiToolTip

  public GuiZombieGenerator(InventoryPlayer inventory, TileZombieGenerator tileEntity) {
    super(tileEntity, new ContainerZombieGenerator(inventory, tileEntity));
    gen = tileEntity;
   
    addToolTip(new GuiToolTip(new Rectangle(80, 21, 15, 47), "") {

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

Examples of crazypants.gui.GuiToolTip

  public GuiVat(InventoryPlayer inventory, TileVat te) {
    super(te, new ContainerVat(inventory, te));
    vat = te;

    addToolTip(new GuiToolTip(new Rectangle(30, 12, 15, 47), "") {

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

    });

    addToolTip(new GuiToolTip(new Rectangle(132, 12, 15, 47), "") {

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

Examples of crazypants.gui.GuiToolTip

 
  public GeneralTab(GuiTransceiver guiTransceiver) {
    parent = guiTransceiver;   
    container = parent.container;
   
    sendPowerBarTT = new GuiToolTip(new Rectangle(parent.getPowerX() + SEND_BAR_OFFSET, parent.getPowerY(), parent.getPowerWidth(), parent.getPowerHeight()), "") {
      @Override
      protected void updateText() {       
        text.clear();
        if(parent.renderPowerBar()) {
          updateSendPowerBarTooltip(text);
View Full Code Here

Examples of crazypants.gui.GuiToolTip

    super(new ContainerCapacitorBank(player, playerInv, te));
    this.capBank = te;

    xSize = 176 + 42;
   
    addToolTip(new GuiToolTip(new Rectangle(POWER_X - 21, POWER_Y, POWER_WIDTH, POWER_HEIGHT), "") {

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

Examples of crazypants.gui.GuiToolTip

  public GuiAlloySmelter(InventoryPlayer par1InventoryPlayer, TileAlloySmelter furnaceInventory) {
    super(furnaceInventory, new ContainerAlloySmelter(par1InventoryPlayer, furnaceInventory));
    this.tileEntity = furnaceInventory;

    addToolTip(new GuiToolTip(new Rectangle(0, 0, 0, 0), "") {

      @Override
      protected void updateText() {
        text.clear();
        text.add(Lang.localize("gui.alloy.mode.heading"));
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.