Package forestry.core.gui.tooltips

Examples of forestry.core.gui.tooltips.ToolTip


  @Override
  public ToolTip getToolTip() {
    String line = getLegacyTooltip(Proxies.common.getClientInstance().thePlayer);
    if (line != null && !line.isEmpty()) {
      ToolTip tip = new ToolTip();
      tip.add(line);
      return tip;
    }
    return null;
  }
View Full Code Here


      if (!(obj instanceof IToolTipProvider))
        continue;
      IToolTipProvider provider = (IToolTipProvider) obj;
      if (!provider.isToolTipVisible())
        continue;
      ToolTip tips = provider.getToolTip();
      if (tips == null)
        continue;
      boolean mouseOver = provider.isMouseOver(mouseX - guiLeft, mouseY - guiTop);
      tips.onTick(mouseOver);
      if (mouseOver && tips.isReady()) {
        tips.refresh();
        drawToolTips(tips, mouseX, mouseY);
      }
    }
  }
View Full Code Here

    return control;
  }

  @Override
  public ToolTip getToolTip() {
    ToolTip tip = control.getButtonState().getToolTip();
    if (tip != null) {
      return tip;
    }
    return super.getToolTip();
  }
View Full Code Here

      itemRender.renderItemOverlayIntoGUI(fontRendererObj, mc.renderEngine, itemStack, xPos + startX, yPos + startY);
    }

    @Override
    public ToolTip getToolTip() {
      ToolTip tip = new ToolTip();
      tip.add(itemStack.getDisplayName());
      return tip;
    }
View Full Code Here

TOP

Related Classes of forestry.core.gui.tooltips.ToolTip

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.