/** Adds the buttons (and other controls) to the screen in question. */
  public void initGui() {
    StringTranslate stringTranslate = StringTranslate.getInstance();
    this.buttonList.clear();
    //        this.buttonList.add(new GuiSmallButtonEx(EnumOptions.USE_VR.returnEnumOrdinal(),
    // this.width / 2 - 78, this.height / 6 - 14, EnumOptions.USE_VR,
    // this.guivrSettings.getKeyBinding(EnumOptions.USE_VR)));
    this.buttonList.add(
        new GuiButtonEx(202, this.width / 2 - 100, this.height / 6 + 128, "Recalibrate..."));
    this.buttonList.add(
        new GuiButtonEx(201, this.width / 2 - 100, this.height / 6 + 148, "Reset To Defaults"));
    this.buttonList.add(
        new GuiButtonEx(
            200,
            this.width / 2 - 100,
            this.height / 6 + 168,
            stringTranslate.translateKey("gui.done")));
    EnumOptions[] buttons = calibrationOptions;

    for (int var12 = 2; var12 < buttons.length + 2; ++var12) {
      EnumOptions var8 = buttons[var12 - 2];
      int width = this.width / 2 - 155 + var12 % 2 * 160;
      int height = this.height / 6 + 21 * (var12 / 2) - 10;

      if (var8.getEnumFloat()) {
        float minValue = 0.0f;
        float maxValue = 1.0f;
        float increment = 0.01f;

        if (var8 == EnumOptions.HUD_SCALE) {
          minValue = 0.5f;
          maxValue = 1.5f;
          increment = 0.01f;
        }
        if (var8 == EnumOptions.HUD_DISTANCE) {
          minValue = 0.5f;
          maxValue = 3.0f;
          increment = 0.02f;
        }

        this.buttonList.add(
            new GuiSliderEx(
                var8.returnEnumOrdinal(),
                width,
                height,
                var8,
                this.guivrSettings.getKeyBinding(var8),
                minValue,
                maxValue,
                increment,
                this.guivrSettings.getOptionFloatValue(var8)));
      } else {
        this.buttonList.add(
            new GuiSmallButtonEx(
                var8.returnEnumOrdinal(),
                width,
                height,
                var8,
                this.guivrSettings.getKeyBinding(var8)));
      }
    }
  }
  /** Adds the buttons (and other controls) to the screen in question. */
  public void initGui() {
    StringTranslate stringTranslate = StringTranslate.getInstance();
    this.buttonList.clear();
    this.buttonList.add(
        new GuiButtonEx(
            200,
            this.width / 2 - 100,
            this.height / 6 + 168,
            stringTranslate.translateKey("gui.done")));
    this.buttonList.add(
        new GuiButtonEx(201, this.width / 2 - 100, this.height / 6 + 148, "Reset To Defaults"));
    this.buttonList.add(
        new GuiButtonEx(202, this.width / 2 - 100, this.height / 6 + 128, "Recalibrate..."));
    pluginModeChangeutton =
        new PluginModeChangeButton(
            203,
            this.width / 2 - 78,
            this.height / 6 - 14,
            (List<IBasePlugin>) (List<?>) PluginManager.thePluginManager.orientPlugins,
            this.guivrSettings.headTrackerPluginID);
    this.buttonList.add(pluginModeChangeutton);
    EnumOptions[] var10 = null;
    if (this.mc.headTracker instanceof MCHydra) var10 = hydraHeadOrientationOptions;
    else var10 = oculusHeadOrientationOptions;

    int var11 = var10.length;

    for (int var12 = 2; var12 < var11 + 2; ++var12) {
      EnumOptions var8 = var10[var12 - 2];
      int width = this.width / 2 - 155 + var12 % 2 * 160;
      int height = this.height / 6 + 21 * (var12 / 2) - 10;

      if (var8.getEnumFloat()) {
        float minValue = 0.0f;
        float maxValue = 1.0f;
        float increment = 0.001f;

        if (var8 == EnumOptions.HEAD_TRACK_SENSITIVITY) {
          minValue = 0.5f;
          maxValue = 3.0f;
          increment = 0.01f;
        } else if (var8 == EnumOptions.HEAD_TRACK_PREDICTION_TIME) {
          minValue = 0.000f;
          maxValue = 0.100f;
          increment = 0.001f;
        }

        GuiSliderEx slider =
            new GuiSliderEx(
                var8.returnEnumOrdinal(),
                width,
                height,
                var8,
                this.guivrSettings.getKeyBinding(var8),
                minValue,
                maxValue,
                increment,
                this.guivrSettings.getOptionFloatValue(var8));
        slider.setEventHandler(this);
        slider.enabled = getEnabledState(var8);
        this.buttonList.add(slider);
      } else {
        this.buttonList.add(
            new GuiSmallButtonEx(
                var8.returnEnumOrdinal(),
                width,
                height,
                var8,
                this.guivrSettings.getKeyBinding(var8)));
      }
    }
  }