Ejemplo n.º 1
0
 void selectDefaultListEntry() {
   // Default selection
   for (GuiListExtended.IGuiListEntry entry : partList.getEntries()) {
     PartEntry partEntry = (PartEntry) entry;
     PartInfo partInfo = parent.getEditingPartInfo();
     if ((!partEntry.partInfo.hasPart && !partInfo.hasPart)
         || (partInfo.hasPart
             && partEntry.partInfo.hasPart
             && partEntry.partInfo.typeid == partInfo.typeid
             && partEntry.partInfo.subid == partInfo.subid)) {
       partList.setCurrrentIndex(partList.getEntries().indexOf(partEntry));
       break;
     }
   }
 }
Ejemplo n.º 2
0
  @Override
  public void drawScreen(int mouseX, int mouseY, float p_73863_3_) {
    // zLevel = -100;
    drawGradientRect(0, 0, width, height, 0xCC000000, 0xCC000000);
    zLevel = 0;
    GlStateManager.color(1, 1, 1, 1);
    // Tails list
    partList.drawScreen(mouseX, mouseY, p_73863_3_);

    super.drawScreen(mouseX, mouseY, p_73863_3_);
  }