Examples of addSubPart()


Examples of de.eydamos.backpack.gui.GuiBackpack.addSubPart()

        GuiSlot guiSlot;
        for(int i = 0; i < container.inventorySlots.size(); i++) {
            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"));
View Full Code Here

Examples of de.eydamos.backpack.gui.GuiBackpack.addSubPart()

            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

Examples of de.eydamos.backpack.gui.GuiBackpack.addSubPart()

            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

Examples of de.eydamos.backpack.gui.GuiBackpack.addSubPart()

        GuiSlot guiSlot;
        for(int i = 0; i < container.inventorySlots.size(); i++) {
            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()));
View Full Code Here

Examples of de.eydamos.backpack.gui.GuiBackpack.addSubPart()

            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

Examples of de.eydamos.backpack.gui.GuiBackpack.addSubPart()

            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

Examples of de.eydamos.backpack.gui.GuiWorkbenchBackpack.addSubPart()

            if(i == 0) {
                guiSlot = new GuiSlot(slot.xDisplayPosition - 5, slot.yDisplayPosition - 5, 26);
            } else {
                guiSlot = new GuiSlot(slot.xDisplayPosition - 1, slot.yDisplayPosition - 1);
            }
            guiBackpack.addSubPart(guiSlot);
        }

        if(!backpack.isIntelligent()) {
            // arrow
            guiBackpack.addSubPart(new Icon(0, 238, 90, 35, 22, 15));
View Full Code Here

Examples of de.eydamos.backpack.gui.GuiWorkbenchBackpack.addSubPart()

            guiBackpack.addSubPart(guiSlot);
        }

        if(!backpack.isIntelligent()) {
            // arrow
            guiBackpack.addSubPart(new Icon(0, 238, 90, 35, 22, 15));
            // clear button
            Button btn_clear = new Button(0, 88, 16, 11, 11, "c");
            guiBackpack.addSubPart(btn_clear);
        } else {
            Button btn_clear = new Button(0, 66, 16, 11, 11, "c");
View Full Code Here

Examples of de.eydamos.backpack.gui.GuiWorkbenchBackpack.addSubPart()

        if(!backpack.isIntelligent()) {
            // arrow
            guiBackpack.addSubPart(new Icon(0, 238, 90, 35, 22, 15));
            // clear button
            Button btn_clear = new Button(0, 88, 16, 11, 11, "c");
            guiBackpack.addSubPart(btn_clear);
        } else {
            Button btn_clear = new Button(0, 66, 16, 11, 11, "c");
            Button btn_save = new Button(1, 81, 16, 11, 11, "s");
            guiBackpack.addSubPart(btn_clear);
            guiBackpack.addSubPart(btn_save);
View Full Code Here

Examples of de.eydamos.backpack.gui.GuiWorkbenchBackpack.addSubPart()

            Button btn_clear = new Button(0, 88, 16, 11, 11, "c");
            guiBackpack.addSubPart(btn_clear);
        } else {
            Button btn_clear = new Button(0, 66, 16, 11, 11, "c");
            Button btn_save = new Button(1, 81, 16, 11, 11, "s");
            guiBackpack.addSubPart(btn_clear);
            guiBackpack.addSubPart(btn_save);
        }

        int textPositionX = 28;
        Alignment alignment = Alignment.LEFT;
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.