Exemplo n.º 1
0
  public OCSettings(GuiExternalConnection gui, IConduit con) {
    super(IconEIO.WRENCH_OVERLAY_OC, EnderIO.lang.localize("itemOCConduit.name"), gui, con);
    occon = (IOCConduit) con;

    int x = 0;
    int y = customTop;

    x += gap + gap + 2 + gui.getFontRenderer().getStringWidth(signalColorStr);
    cb = new ColorButton(gui, ID_COLOR_BUTTON, x, y);
    cb.setToolTipHeading(EnderIO.lang.localize("gui.conduit.redstone.signalColor"));
    DyeColor sigCol = occon.getSignalColor(gui.getDir());
    cb.setColorIndex(sigCol.ordinal());
    x += cb.getButtonWidth();
  }