Examples of ITooltip


Examples of appeng.client.gui.widgets.ITooltip

    for (Object c : buttonList)
    {
      if ( c instanceof ITooltip )
      {
        ITooltip tooltip = (ITooltip) c;
        int x = tooltip.xPos(); // ((GuiImgButton) c).xPosition;
        int y = tooltip.yPos(); // ((GuiImgButton) c).yPosition;

        if ( x < mouse_x && x + tooltip.getWidth() > mouse_x && tooltip.isVisible() )
        {
          if ( y < mouse_y && y + tooltip.getHeight() > mouse_y )
          {
            if ( y < 15 )
              y = 15;

            String msg = tooltip.getMsg();
            if ( msg != null )
              drawTooltip( x + 11, y + 4, 0, msg );
          }
        }
      }
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.