Package de.eydamos.guiadvanced.form

Examples of de.eydamos.guiadvanced.form.Label


        addSubPart(btn_ok);
        addSubPart(btn_cancel);

        // create "Rename your Backpack" label at the top in the middle
        int posX = xSize / 2 - fontRendererObj.getStringWidth(TITLE) / 2;
        addSubPart(new Label(posX, 10, 0x000000, TITLE));

        // create "New name:" label at the left site above the GuiTextField
        addSubPart(new Label(20, 30, 0x404040, NEW_NAME));

        // create text field
        txt_backpackName = new Textbox(fontRendererObj, 20, 40, 200, 20);
        txt_backpackName.setFocused(true);
        txt_backpackName.setMaxStringLength(32);
View Full Code Here


            Slot slot = (Slot) container.inventorySlots.get(i);
            guiSlot = new GuiSlot(slot.xDisplayPosition - 1, slot.yDisplayPosition - 1);
            guiBackpack.addSubPart(guiSlot);
        }

        guiBackpack.addSubPart(new Label(X_SPACING, 6, 0x404040, inventories[1].getInventoryName()));
        guiBackpack.addSubPart(new Label(X_SPACING, textPositionY, 0x404040, "container.inventory"));

        return guiBackpack;
    }
View Full Code Here

            Slot slot = (Slot) container.inventorySlots.get(i);
            guiSlot = new GuiSlot(slot.xDisplayPosition - 1, slot.yDisplayPosition - 1);
            guiBackpack.addSubPart(guiSlot);
        }

        guiBackpack.addSubPart(new Label(X_SPACING, 6, 0x404040, container.getInventoryToSave().getInventoryName()));
        guiBackpack.addSubPart(new Label(X_SPACING, 38, 0x404040, container.getInventoryPickup().getInventoryName()));

        return guiBackpack;
    }
View Full Code Here

        int slotsPerRow = backpack.getSlotsPerRow();
        int inventoryRows = (int) Math.ceil(inventories[1].getSizeInventory() / (float) slotsPerRow);
        int textPositionY2 = textPositionY + inventoryRows * SLOT + 3 * SLOT + 19;

        guiBackpack.addSubPart(new Label(textPositionX, textPositionY, 0x404040, "container.crafting", alignment));
        guiBackpack.addSubPart(new Label(X_SPACING, textPositionY2, 0x404040, "container.inventory"));

        return guiBackpack;
    }
View Full Code Here

TOP

Related Classes of de.eydamos.guiadvanced.form.Label

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.