Package crazypants.gui

Examples of crazypants.gui.TemplateSlot


    ArrayInventory arrInv = new PasswordInventory(ta.getPassword(), true);   
    int x = 44;
    int y = 73;
    for (int i = 0; i < 5; i++) {
      addSlotToContainer(new TemplateSlot(arrInv, i, x, y));
      x += 18;
    }
   
    arrInv = new PasswordInventory(new ItemStack[] {ta.getItemLabel()}, false);   
    x = 125;
    y = 10;   
    addSlotToContainer(new TemplateSlot(arrInv, 0, x, y));
   

    // add players inventory
    for (int i = 0; i < 3; ++i) {
      for (int j = 0; j < 9; ++j) {
View Full Code Here


    };
    int x = 44;
    int y = 28;
    for (int i = 0; i < 5; i++) {
      addSlotToContainer(new TemplateSlot(arrInv, i, x, y));
      x += 18;
    }

    // add players inventory
    for (int i = 0; i < 3; ++i) {
View Full Code Here

    int numRows = isAdvanced ? 2 : 1;
    for (int row = 0; row < numRows; ++row) {
      for (int col = 0; col < 5; ++col) {
        int x = leftX + col * 18;
        int y = topY + row * 18;       
        result.add(new TemplateSlot(this, index, x, y));       
        index++;
      }
    }   
    return result;
  }
View Full Code Here

TOP

Related Classes of crazypants.gui.TemplateSlot

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.