Examples of renderIcon()


Examples of crazypants.enderio.gui.IconEIO.renderIcon()

    ScaledResolution res = event.resolution;

    double offsetX = 16;
    double offsetY = res.getScaledHeight() - 16;
    GL11.glColor4f(1, 1, 1, 0.75f);
    icon.renderIcon(offsetX, offsetY - 32, 64, 32, 0, true);
  }

}
View Full Code Here

Examples of crazypants.enderio.gui.IconEIO.renderIcon()

    for (int i = 0; i < tabs.size(); i++) {
      if(i != activeTab) {
        RenderUtil.bindTexture(IconEIO.TEXTURE);
        IconEIO.INACTIVE_TAB.renderIcon(tabX, sy + tabYOffset + (i * 24));
        IconEIO icon = tabs.get(i).getIcon();
        icon.renderIcon(tabX + 4, sy + tabYOffset + (i * TAB_HEIGHT) + 7, 10, 10, 0, false);
      }
    }

    tes.draw();

View Full Code Here

Examples of crazypants.enderio.gui.IconEIO.renderIcon()

    tes.startDrawingQuads();
    IconEIO.ACTIVE_TAB.renderIcon(tabX, sy + tabYOffset + (activeTab * TAB_HEIGHT));

    if(tabs.size() > 0) {
      IconEIO icon = tabs.get(activeTab).getIcon();
      icon.renderIcon(tabX + 4, sy + tabYOffset + (activeTab * TAB_HEIGHT) + 7, 10, 10, 0, false);
      tes.draw();
      tabs.get(activeTab).render(par1, par2, par3);
    } else {
      tes.draw();
    }
View Full Code Here

Examples of crazypants.enderio.gui.IconEIO.renderIcon()

    for (int i = 0; i < tabs.size(); i++) {
      if(i != activeTab) {
        RenderUtil.bindTexture(IconEIO.TEXTURE);
        IconEIO.INACTIVE_TAB.renderIcon(tabX, sy + tabYOffset + (i * 24));
        IconEIO icon = tabs.get(i).getIcon();
        icon.renderIcon(tabX + 4, sy + tabYOffset + (i * TAB_HEIGHT) + 7, 10, 10, 0, false);
      }
    }

    tes.draw();

View Full Code Here

Examples of crazypants.enderio.gui.IconEIO.renderIcon()

    tes.startDrawingQuads();
    IconEIO.ACTIVE_TAB.renderIcon(tabX, sy + tabYOffset + (activeTab * TAB_HEIGHT));

    if(tabs.size() > 0) {
      IconEIO icon = tabs.get(activeTab).getIcon();
      icon.renderIcon(tabX + 4, sy + tabYOffset + (activeTab * TAB_HEIGHT) + 7, 10, 10, 0, false);
      tes.draw();
      tabs.get(activeTab).render(par1, par2, par3);
    } else {
      tes.draw();
    }
View Full Code Here

Examples of crazypants.enderio.gui.IconEIO.renderIcon()

    String modeString = con.getConnectionMode(gui.getDir()).getLocalisedName();
    x += gap + leftArrow.getWidth() + fr.getStringWidth(modeLabel) + gap;

    GL11.glColor3f(1, 1, 1);
    IconEIO icon = new IconEIO(10, 60, 64, 20);
    icon.renderIcon(x - gap,  y - (fr.FONT_HEIGHT / 2) - 1, getLongestModeStringWidth() + gap * 2, leftArrow.getHeight(), 0, true);

    int move = (getLongestModeStringWidth() - fr.getStringWidth(modeString)) / 2;
    x += move;
    rgb = ColorUtil.getRGB(Color.white);
    gui.getFontRenderer().drawString(modeString, x, y, rgb);
View Full Code Here

Examples of org.apache.myfaces.trinidad.skin.Icon.renderIcon()

    Map<String, Object> attrs
    ) throws IOException
  {
    Icon icon = _getIcon(arc);

    icon.renderIcon(context, arc, attrs);
  }

  /**
   * Override of Icon.getImageURI().
   */
 
View Full Code Here

Examples of org.apache.myfaces.trinidad.skin.Icon.renderIcon()

          // The span is written out here because the writer needs to see the UIComponent.
          ResponseWriter writer = context.getResponseWriter();
          writer.startElement("span", node.getUIComponent());
          RenderingContext arc = RenderingContext.getCurrentInstance();
          FacesContext fContext = context.getFacesContext();
          icon.renderIcon(fContext, arc, _getNodeAttributeMap(context, node));
          writer.endElement("span");
        }
      }
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.skin.Icon.renderIcon()

        }

        // inlineStyle, if set, always goes on the span (today)
        renderInlineStyle(context, rc, comp, bean);

        icon.renderIcon(context, rc,
                        _getNodeAttributeMap(context, comp, bean, embed));
        rw.endElement("span");
      }
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidad.skin.Icon.renderIcon()

    Map<String, ? extends Object> attrs
    ) throws IOException
  {
    Icon icon = _getIcon(rc);

    icon.renderIcon(context, rc, attrs);
  }

  /**
   * Override of Icon.getImageURI().
   */
 
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.