Package org.spoutcraft.api.gui

Examples of org.spoutcraft.api.gui.GenericTexture


    labels.add(labelSpoutcraftLabel);

    labelSpoutcraft = new GenericLabel("...");
    labelSpoutcraft.setTextColor(new Color(0xffaaaaaa));
    content.attachWidget("Spoutcraft", labelSpoutcraft);
    textureIcon = new GenericTexture("http://cdn.spout.org/server/thumb/" + item.getDatabaseId() + ".png");
    textureIcon.setFinishDelegate(new ImageUpdate());
    textureIcon.setWidth(48).setHeight(48);
    content.attachWidget("Spoutcraft", textureIcon);

    for (GenericLabel lbl:labels) {
View Full Code Here


  public void setupGallery() {
    buttonGalleryNext = new GenericButton("->");
    buttonGalleryPrev = new GenericButton("<-");
    labelGalleryImageTitle = new GenericLabel();
    labelGalleryImageDesc = new GenericLabel();
    textureGalleryImage = new GenericTexture("");
    textureGalleryImage.setFinishDelegate(new ImageUpdate());
    labelGalleryTitle = new GenericLabel("Gallery");
    ((GenericLabel) labelGalleryImageDesc).setWrapLines(true);
    content.attachWidgets("Spoutcraft", labelGalleryImageTitle, labelGalleryImageDesc, textureGalleryImage, buttonGalleryPrev, buttonGalleryNext, labelGalleryTitle);
    layoutWidgets();
View Full Code Here

    HashMap<String, Object> images = (HashMap<String, Object>) yaml;
    for (Object img:images.values()) {
      HashMap<String, String> attr = (HashMap<String, String>) img;
      Image image = new Image();
      image.texture = new GenericTexture(attr.get("image"));
      image.texture.setFinishDelegate(new Runnable() {
        @Override
        public void run() {
          screen.update();
        }
View Full Code Here

TOP

Related Classes of org.spoutcraft.api.gui.GenericTexture

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.