Program: 86654
Project: 86654
Buggy source:
private void createUI(){
  this.panelView=new PanelView();
  this.optionsPanel=new Panel();
  this.keyInput=new KeyInput();
  this.keyInput.setDisabled(true);
  this.optionsPanel.addWidget(keyInput);
  this.isFullscreen=app.isFullscreen();
  Vector2f uiPos=new Vector2f(200,app.getScreenHeight() - 30);
  Button saveBtn=setupButton(uiPos,"String_Node_Str",false);
  saveBtn.getBounds().setSize(140,80);
  saveBtn.getTextLabel().setFont(theme.getPrimaryFontName());
  saveBtn.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      try {
        VideoConfig vConfig=app.getConfig().getVideo();
        if (isFullscreen != app.isFullscreen()) {
          vConfig.setFullscreen(isFullscreen);
          if (!isFullscreen) {
            vConfig.setWidth(SeventhGame.DEFAULT_MINIMIZED_SCREEN_WIDTH);
            vConfig.setHeight(SeventhGame.DEFAULT_MINIMIZED_SCREEN_HEIGHT);
            Gdx.graphics.setDisplayMode(SeventhGame.DEFAULT_MINIMIZED_SCREEN_WIDTH,SeventhGame.DEFAULT_MINIMIZED_SCREEN_HEIGHT,isFullscreen);
          }
 else           if (mode != null) {
            vConfig.setWidth(mode.width);
            vConfig.setHeight(mode.height);
            Gdx.graphics.setDisplayMode(mode.width,mode.height,true);
          }
 else {
            Gdx.graphics.setDisplayMode(app.getScreenWidth(),app.getScreenHeight(),true);
          }
          app.restartVideo();
        }
 else         if (mode != null) {
          if (app.isFullscreen()) {
            vConfig.setWidth(mode.width);
            vConfig.setHeight(mode.height);
            Gdx.graphics.setDisplayMode(mode.width,mode.height,true);
            app.restartVideo();
          }
        }
        if (nameTxtBox != null) {
          String name=nameTxtBox.getText();
          String cfgName=app.getConfig().getPlayerName();
          if (name != null && cfgName != null) {
            if (!name.equals(cfgName)) {
              app.getConfig().setPlayerName(name);
            }
          }
        }
        app.getConfig().setMouseSensitivity(uiManager.getCursor().getMouseSensitivity());
        app.getConfig().save();
      }
 catch (      IOException e) {
        Cons.println("String_Node_Str");
        Cons.println(e);
        app.getTerminal().open();
      }
      app.popScreen();
      Sounds.playGlobalSound(Sounds.uiNavigate);
    }
  }
);
  uiPos.x=app.getScreenWidth() - 80;
  Button cancelBtn=setupButton(uiPos,"String_Node_Str",false);
  cancelBtn.getBounds().setSize(140,80);
  cancelBtn.getTextLabel().setFont(theme.getPrimaryFontName());
  cancelBtn.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      app.popScreen();
      Sounds.playGlobalSound(Sounds.uiNavigate);
    }
  }
);
  nameTxtBox=new TextBox();
  nameTxtBox.setLabelText("String_Node_Str");
  nameTxtBox.setTheme(theme);
  nameTxtBox.setBounds(new Rectangle(app.getScreenWidth() / 2 - 50,160,200,30));
  nameTxtBox.setFont(theme.getSecondaryFontName());
  nameTxtBox.setTextSize(18);
  nameTxtBox.getLabel().setTextSize(24);
  nameTxtBox.setFocus(false);
  nameTxtBox.setMaxSize(16);
  nameTxtBox.setText(app.getConfig().getPlayerName());
  nameTxtBox.getTextLabel().setForegroundColor(0xffffffff);
  this.optionsPanel.addWidget(nameTxtBox);
  KeyMap keys=app.getKeyMap();
  Label controlsLbl=new Label("String_Node_Str");
  controlsLbl.setTheme(theme);
  controlsLbl.setBounds(new Rectangle(10,200,400,40));
  controlsLbl.setHorizontalTextAlignment(TextAlignment.LEFT);
  controlsLbl.setFont(theme.getPrimaryFontName());
  controlsLbl.setTextSize(18);
  final int startX=230;
  final int startY=270;
  final int yInc=30;
  uiPos.x=startX;
  uiPos.y=startY;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getUpKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getDownKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getLeftKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getRightKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getWalkKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getSprintKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getCrouchKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  uiPos.x=app.getScreenWidth() / 2 + 80;
  uiPos.y=startY;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getReloadKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getDropWeaponKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getMeleeAttackKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getThrowGrenadeKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getFireKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getUseKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  uiPos.y+=yInc;
  Label mouseSensitivityLbl=new Label("String_Node_Str");
  mouseSensitivityLbl.setBounds(new Rectangle(80,20));
  mouseSensitivityLbl.getBounds().x=110;
  mouseSensitivityLbl.getBounds().y=(int)uiPos.y;
  mouseSensitivityLbl.setHorizontalTextAlignment(TextAlignment.LEFT);
  mouseSensitivityLbl.setFont(theme.getSecondaryFontName());
  mouseSensitivityLbl.setTextSize(18);
  mouseSensitivityLbl.setForegroundColor(0xffffffff);
  optionsPanel.addWidget(mouseSensitivityLbl);
  panelView.addElement(new LabelView(mouseSensitivityLbl));
  uiPos.x=300;
  uiPos.y+=5;
  Slider mouseSensitivitySlider=new Slider();
  mouseSensitivitySlider.setTheme(theme);
  mouseSensitivitySlider.getBounds().setSize(100,5);
  mouseSensitivitySlider.getBounds().setLocation(uiPos);
  int handlePos=(int)((uiManager.getCursor().getMouseSensitivity() / 2f) * 100.0f);
  mouseSensitivitySlider.moveHandle(handlePos);
  mouseSensitivitySlider.addSliderMoveListener(new OnSliderMovedListener(){
    @Override public void onSliderMoved(    SliderMovedEvent event){
      Cursor cursor=uiManager.getCursor();
      int value=event.getSlider().getIndex();
      float sensitivity=value / 50f;
      if (value <= 0) {
        sensitivity=0.5f;
      }
      cursor.setMouseSensitivity(sensitivity);
    }
  }
);
  mouseSensitivitySlider.addOnHoverListener(new OnHoverListener(){
    @Override public void onHover(    HoverEvent event){
      uiManager.getCursor().touchAccuracy();
    }
  }
);
  optionsPanel.addWidget(mouseSensitivitySlider);
  panelView.addElement(new SliderView(mouseSensitivitySlider));
  uiPos.y+=yInc;
  keyOverwriteLbl=new Label("String_Node_Str");
  keyOverwriteLbl.setTheme(theme);
  keyOverwriteLbl.setBounds(new Rectangle(app.getScreenWidth(),40));
  keyOverwriteLbl.getBounds().y=app.getScreenHeight() - 120;
  keyOverwriteLbl.setHorizontalTextAlignment(TextAlignment.CENTER);
  keyOverwriteLbl.setFont(theme.getPrimaryFontName());
  keyOverwriteLbl.setTextSize(18);
  this.panelView.addElement(new LabelView(keyOverwriteLbl));
  this.panelView.addElement(new LabelView(controlsLbl));
  this.panelView.addElement(new TextBoxView(nameTxtBox));
  final int bottomPanelY=600;
  Label videoLbl=new Label("String_Node_Str");
  videoLbl.setTheme(theme);
  videoLbl.setBounds(new Rectangle(80,bottomPanelY - 70,470,40));
  videoLbl.setHorizontalTextAlignment(TextAlignment.LEFT);
  videoLbl.setFont(theme.getPrimaryFontName());
  videoLbl.setTextSize(18);
  uiPos.x=startX;
  uiPos.y=bottomPanelY;
  final Button resBtn=setupButton(uiPos,"String_Node_Str" + app.getScreenWidth() + "String_Node_Str"+ app.getScreenHeight()+ "String_Node_Str",false);
  uiPos.y+=yInc;
  resBtn.getTextLabel().setForegroundColor(0xffffffff);
  resBtn.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      displayModeIndex=(displayModeIndex + 1) % displayModes.length;
      mode=displayModes[displayModeIndex];
      resBtn.setText("String_Node_Str" + mode.width + "String_Node_Str"+ mode.height+ "String_Node_Str");
    }
  }
);
  final Button fullscreenBtn=setupButton(uiPos,"String_Node_Str" + app.isFullscreen() + "String_Node_Str",false);
  uiPos.y+=yInc;
  fullscreenBtn.getTextLabel().setForegroundColor(0xffffffff);
  fullscreenBtn.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      isFullscreen=!app.isFullscreen();
      fullscreenBtn.setText("String_Node_Str" + isFullscreen + "String_Node_Str");
    }
  }
);
  final Button vsyncBtn=setupButton(uiPos,"String_Node_Str" + app.isVSync() + "String_Node_Str",false);
  uiPos.y+=yInc;
  vsyncBtn.getTextLabel().setForegroundColor(0xffffffff);
  vsyncBtn.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      app.setVSync(!app.isVSync());
      app.getConfig().getVideo().setVsync(app.isVSync());
      vsyncBtn.setText("String_Node_Str" + app.isVSync() + "String_Node_Str");
    }
  }
);
  this.panelView.addElement(new LabelView(videoLbl));
  Label soundLbl=new Label("String_Node_Str");
  soundLbl.setTheme(theme);
  soundLbl.setBounds(new Rectangle(app.getScreenWidth() / 2 - 90,bottomPanelY - 70,400,40));
  soundLbl.setHorizontalTextAlignment(TextAlignment.LEFT);
  soundLbl.setFont(theme.getPrimaryFontName());
  soundLbl.setTextSize(18);
  this.panelView.addElement(new LabelView(soundLbl));
  uiPos.x=app.getScreenWidth() / 3 + startX - 25;
  uiPos.y=bottomPanelY - 5;
  final Slider slider=new Slider();
  slider.setTheme(theme);
  slider.getBounds().setSize(100,5);
  slider.getBounds().setLocation(uiPos);
  slider.addSliderMoveListener(new OnSliderMovedListener(){
    @Override public void onSliderMoved(    SliderMovedEvent event){
      int value=event.getSlider().getIndex();
      Sounds.setVolume(value / 100.0f);
    }
  }
);
  slider.addOnHoverListener(new OnHoverListener(){
    @Override public void onHover(    HoverEvent event){
      uiManager.getCursor().touchAccuracy();
    }
  }
);
  int v=(int)(Sounds.getVolume() * 100.0f);
  slider.moveHandle(v);
  this.optionsPanel.addWidget(slider);
  this.panelView.addElement(new SliderView(slider));
  uiPos.x=app.getScreenWidth() / 3 + startX;
  uiPos.y=bottomPanelY;
  final Button sndBtn=setupButton(uiPos,"String_Node_Str",false);
  uiPos.y+=yInc;
  sndBtn.getBounds().width=80;
  sndBtn.getTextLabel().setForegroundColor(0xffffffff);
  sndBtn.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      int value=slider.getIndex();
      value+=10;
      if (value > 100) {
        value=0;
      }
      slider.moveHandle(value);
    }
  }
);
  final int thirdSectionX=app.getScreenWidth() - (app.getScreenWidth() / 3) + 20;
  Label gameLbl=new Label("String_Node_Str");
  gameLbl.setTheme(theme);
  gameLbl.setBounds(new Rectangle(thirdSectionX + 30,bottomPanelY - 70,400,40));
  gameLbl.setHorizontalTextAlignment(TextAlignment.LEFT);
  gameLbl.setFont(theme.getPrimaryFontName());
  gameLbl.setTextSize(18);
  this.panelView.addElement(new LabelView(gameLbl));
  uiPos.x=thirdSectionX + 60;
  uiPos.y=bottomPanelY - 15;
  Checkbox weaponRecoilEnabledChkBx=new Checkbox(app.getConfig().getWeaponRecoilEnabled());
  weaponRecoilEnabledChkBx.setTheme(theme);
  weaponRecoilEnabledChkBx.setLabelText("String_Node_Str");
  weaponRecoilEnabledChkBx.getBounds().setLocation(uiPos);
  weaponRecoilEnabledChkBx.addCheckboxClickedListener(new OnCheckboxClickedListener(){
    @Override public void onCheckboxClicked(    CheckboxEvent event){
      app.getConfig().setWeaponRecoilEnabled(event.getCheckbox().isChecked());
    }
  }
);
  weaponRecoilEnabledChkBx.addOnHoverListener(new OnHoverListener(){
    @Override public void onHover(    HoverEvent event){
      uiManager.getCursor().touchAccuracy();
    }
  }
);
  this.optionsPanel.addWidget(weaponRecoilEnabledChkBx);
  this.panelView.addElement(new CheckboxView(weaponRecoilEnabledChkBx));
  uiPos.y=bottomPanelY + 15;
  Checkbox bloodEnabledChkBx=new Checkbox(app.getConfig().getBloodEnabled());
  bloodEnabledChkBx.setTheme(theme);
  bloodEnabledChkBx.setLabelText("String_Node_Str");
  bloodEnabledChkBx.getBounds().setLocation(uiPos);
  bloodEnabledChkBx.addCheckboxClickedListener(new OnCheckboxClickedListener(){
    @Override public void onCheckboxClicked(    CheckboxEvent event){
      app.getConfig().setBloodEnabled(event.getCheckbox().isChecked());
    }
  }
);
  bloodEnabledChkBx.addOnHoverListener(new OnHoverListener(){
    @Override public void onHover(    HoverEvent event){
      uiManager.getCursor().touchAccuracy();
    }
  }
);
  this.optionsPanel.addWidget(bloodEnabledChkBx);
  this.panelView.addElement(new CheckboxView(bloodEnabledChkBx));
  uiPos.y=bottomPanelY + 45;
  Checkbox followReticleEnabledChkBx=new Checkbox(app.getConfig().getFollowReticleEnabled());
  followReticleEnabledChkBx.setTheme(theme);
  followReticleEnabledChkBx.setLabelText("String_Node_Str");
  followReticleEnabledChkBx.getBounds().setLocation(uiPos);
  followReticleEnabledChkBx.addCheckboxClickedListener(new OnCheckboxClickedListener(){
    @Override public void onCheckboxClicked(    CheckboxEvent event){
      app.getConfig().setFollowReticleEnabled(event.getCheckbox().isChecked());
    }
  }
);
  followReticleEnabledChkBx.addOnHoverListener(new OnHoverListener(){
    @Override public void onHover(    HoverEvent event){
      uiManager.getCursor().touchAccuracy();
    }
  }
);
  this.optionsPanel.addWidget(followReticleEnabledChkBx);
  this.panelView.addElement(new CheckboxView(followReticleEnabledChkBx));
}

Fixed version (ground truth):
private void createUI(){
  this.panelView=new PanelView();
  this.optionsPanel=new Panel();
  this.keyInput=new KeyInput();
  this.keyInput.setDisabled(true);
  this.optionsPanel.addWidget(keyInput);
  this.isFullscreen=app.isFullscreen();
  Vector2f uiPos=new Vector2f(200,app.getScreenHeight() - 30);
  Button saveBtn=setupButton(uiPos,"String_Node_Str",false);
  saveBtn.getBounds().setSize(140,80);
  saveBtn.getTextLabel().setFont(theme.getPrimaryFontName());
  saveBtn.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      try {
        VideoConfig vConfig=app.getConfig().getVideo();
        if (isFullscreen != app.isFullscreen()) {
          vConfig.setFullscreen(isFullscreen);
          if (!isFullscreen) {
            vConfig.setWidth(SeventhGame.DEFAULT_MINIMIZED_SCREEN_WIDTH);
            vConfig.setHeight(SeventhGame.DEFAULT_MINIMIZED_SCREEN_HEIGHT);
            Gdx.graphics.setDisplayMode(SeventhGame.DEFAULT_MINIMIZED_SCREEN_WIDTH,SeventhGame.DEFAULT_MINIMIZED_SCREEN_HEIGHT,isFullscreen);
          }
 else           if (mode != null) {
            vConfig.setWidth(mode.width);
            vConfig.setHeight(mode.height);
            Gdx.graphics.setDisplayMode(mode.width,mode.height,true);
          }
 else {
            Gdx.graphics.setDisplayMode(app.getScreenWidth(),app.getScreenHeight(),true);
          }
          app.restartVideo();
        }
 else         if (mode != null) {
          if (app.isFullscreen()) {
            vConfig.setWidth(mode.width);
            vConfig.setHeight(mode.height);
            Gdx.graphics.setDisplayMode(mode.width,mode.height,true);
            app.restartVideo();
          }
        }
        if (nameTxtBox != null) {
          String name=nameTxtBox.getText();
          String cfgName=app.getConfig().getPlayerName();
          if (name != null && cfgName != null) {
            if (!name.equals(cfgName)) {
              Cons.getImpl().execute("String_Node_Str",name);
            }
          }
        }
        app.getConfig().setMouseSensitivity(uiManager.getCursor().getMouseSensitivity());
        app.getConfig().save();
      }
 catch (      IOException e) {
        Cons.println("String_Node_Str");
        Cons.println(e);
        app.getTerminal().open();
      }
      app.popScreen();
      Sounds.playGlobalSound(Sounds.uiNavigate);
    }
  }
);
  uiPos.x=app.getScreenWidth() - 80;
  Button cancelBtn=setupButton(uiPos,"String_Node_Str",false);
  cancelBtn.getBounds().setSize(140,80);
  cancelBtn.getTextLabel().setFont(theme.getPrimaryFontName());
  cancelBtn.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      app.popScreen();
      Sounds.playGlobalSound(Sounds.uiNavigate);
    }
  }
);
  nameTxtBox=new TextBox();
  nameTxtBox.setLabelText("String_Node_Str");
  nameTxtBox.setTheme(theme);
  nameTxtBox.setBounds(new Rectangle(app.getScreenWidth() / 2 - 50,160,200,30));
  nameTxtBox.setFont(theme.getSecondaryFontName());
  nameTxtBox.setTextSize(18);
  nameTxtBox.getLabel().setTextSize(24);
  nameTxtBox.setFocus(false);
  nameTxtBox.setMaxSize(16);
  nameTxtBox.setText(app.getConfig().getPlayerName());
  nameTxtBox.getTextLabel().setForegroundColor(0xffffffff);
  this.optionsPanel.addWidget(nameTxtBox);
  KeyMap keys=app.getKeyMap();
  Label controlsLbl=new Label("String_Node_Str");
  controlsLbl.setTheme(theme);
  controlsLbl.setBounds(new Rectangle(10,200,400,40));
  controlsLbl.setHorizontalTextAlignment(TextAlignment.LEFT);
  controlsLbl.setFont(theme.getPrimaryFontName());
  controlsLbl.setTextSize(18);
  final int startX=230;
  final int startY=270;
  final int yInc=30;
  uiPos.x=startX;
  uiPos.y=startY;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getUpKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getDownKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getLeftKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getRightKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getWalkKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getSprintKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getCrouchKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  uiPos.x=app.getScreenWidth() / 2 + 80;
  uiPos.y=startY;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getReloadKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getDropWeaponKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getMeleeAttackKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getThrowGrenadeKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getFireKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  setupButton(uiPos,"String_Node_Str" + keys.keyString(keys.getUseKey()) + "String_Node_Str");
  uiPos.y+=yInc;
  uiPos.y+=yInc;
  Label mouseSensitivityLbl=new Label("String_Node_Str");
  mouseSensitivityLbl.setBounds(new Rectangle(80,20));
  mouseSensitivityLbl.getBounds().x=110;
  mouseSensitivityLbl.getBounds().y=(int)uiPos.y;
  mouseSensitivityLbl.setHorizontalTextAlignment(TextAlignment.LEFT);
  mouseSensitivityLbl.setFont(theme.getSecondaryFontName());
  mouseSensitivityLbl.setTextSize(18);
  mouseSensitivityLbl.setForegroundColor(0xffffffff);
  optionsPanel.addWidget(mouseSensitivityLbl);
  panelView.addElement(new LabelView(mouseSensitivityLbl));
  uiPos.x=300;
  uiPos.y+=5;
  Slider mouseSensitivitySlider=new Slider();
  mouseSensitivitySlider.setTheme(theme);
  mouseSensitivitySlider.getBounds().setSize(100,5);
  mouseSensitivitySlider.getBounds().setLocation(uiPos);
  int handlePos=(int)((uiManager.getCursor().getMouseSensitivity() / 2f) * 100.0f);
  mouseSensitivitySlider.moveHandle(handlePos);
  mouseSensitivitySlider.addSliderMoveListener(new OnSliderMovedListener(){
    @Override public void onSliderMoved(    SliderMovedEvent event){
      Cursor cursor=uiManager.getCursor();
      int value=event.getSlider().getIndex();
      float sensitivity=value / 50f;
      if (value <= 0) {
        sensitivity=0.5f;
      }
      cursor.setMouseSensitivity(sensitivity);
    }
  }
);
  mouseSensitivitySlider.addOnHoverListener(new OnHoverListener(){
    @Override public void onHover(    HoverEvent event){
      uiManager.getCursor().touchAccuracy();
    }
  }
);
  optionsPanel.addWidget(mouseSensitivitySlider);
  panelView.addElement(new SliderView(mouseSensitivitySlider));
  uiPos.y+=yInc;
  keyOverwriteLbl=new Label("String_Node_Str");
  keyOverwriteLbl.setTheme(theme);
  keyOverwriteLbl.setBounds(new Rectangle(app.getScreenWidth(),40));
  keyOverwriteLbl.getBounds().y=app.getScreenHeight() - 120;
  keyOverwriteLbl.setHorizontalTextAlignment(TextAlignment.CENTER);
  keyOverwriteLbl.setFont(theme.getPrimaryFontName());
  keyOverwriteLbl.setTextSize(18);
  this.panelView.addElement(new LabelView(keyOverwriteLbl));
  this.panelView.addElement(new LabelView(controlsLbl));
  this.panelView.addElement(new TextBoxView(nameTxtBox));
  final int bottomPanelY=600;
  Label videoLbl=new Label("String_Node_Str");
  videoLbl.setTheme(theme);
  videoLbl.setBounds(new Rectangle(80,bottomPanelY - 70,470,40));
  videoLbl.setHorizontalTextAlignment(TextAlignment.LEFT);
  videoLbl.setFont(theme.getPrimaryFontName());
  videoLbl.setTextSize(18);
  uiPos.x=startX;
  uiPos.y=bottomPanelY;
  final Button resBtn=setupButton(uiPos,"String_Node_Str" + app.getScreenWidth() + "String_Node_Str"+ app.getScreenHeight()+ "String_Node_Str",false);
  uiPos.y+=yInc;
  resBtn.getTextLabel().setForegroundColor(0xffffffff);
  resBtn.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      displayModeIndex=(displayModeIndex + 1) % displayModes.length;
      mode=displayModes[displayModeIndex];
      resBtn.setText("String_Node_Str" + mode.width + "String_Node_Str"+ mode.height+ "String_Node_Str");
    }
  }
);
  final Button fullscreenBtn=setupButton(uiPos,"String_Node_Str" + app.isFullscreen() + "String_Node_Str",false);
  uiPos.y+=yInc;
  fullscreenBtn.getTextLabel().setForegroundColor(0xffffffff);
  fullscreenBtn.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      isFullscreen=!app.isFullscreen();
      fullscreenBtn.setText("String_Node_Str" + isFullscreen + "String_Node_Str");
    }
  }
);
  final Button vsyncBtn=setupButton(uiPos,"String_Node_Str" + app.isVSync() + "String_Node_Str",false);
  uiPos.y+=yInc;
  vsyncBtn.getTextLabel().setForegroundColor(0xffffffff);
  vsyncBtn.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      app.setVSync(!app.isVSync());
      app.getConfig().getVideo().setVsync(app.isVSync());
      vsyncBtn.setText("String_Node_Str" + app.isVSync() + "String_Node_Str");
    }
  }
);
  this.panelView.addElement(new LabelView(videoLbl));
  Label soundLbl=new Label("String_Node_Str");
  soundLbl.setTheme(theme);
  soundLbl.setBounds(new Rectangle(app.getScreenWidth() / 2 - 90,bottomPanelY - 70,400,40));
  soundLbl.setHorizontalTextAlignment(TextAlignment.LEFT);
  soundLbl.setFont(theme.getPrimaryFontName());
  soundLbl.setTextSize(18);
  this.panelView.addElement(new LabelView(soundLbl));
  uiPos.x=app.getScreenWidth() / 3 + startX - 25;
  uiPos.y=bottomPanelY - 5;
  final Slider slider=new Slider();
  slider.setTheme(theme);
  slider.getBounds().setSize(100,5);
  slider.getBounds().setLocation(uiPos);
  slider.addSliderMoveListener(new OnSliderMovedListener(){
    @Override public void onSliderMoved(    SliderMovedEvent event){
      int value=event.getSlider().getIndex();
      Sounds.setVolume(value / 100.0f);
    }
  }
);
  slider.addOnHoverListener(new OnHoverListener(){
    @Override public void onHover(    HoverEvent event){
      uiManager.getCursor().touchAccuracy();
    }
  }
);
  int v=(int)(Sounds.getVolume() * 100.0f);
  slider.moveHandle(v);
  this.optionsPanel.addWidget(slider);
  this.panelView.addElement(new SliderView(slider));
  uiPos.x=app.getScreenWidth() / 3 + startX;
  uiPos.y=bottomPanelY;
  final Button sndBtn=setupButton(uiPos,"String_Node_Str",false);
  uiPos.y+=yInc;
  sndBtn.getBounds().width=80;
  sndBtn.getTextLabel().setForegroundColor(0xffffffff);
  sndBtn.addOnButtonClickedListener(new OnButtonClickedListener(){
    @Override public void onButtonClicked(    ButtonEvent event){
      int value=slider.getIndex();
      value+=10;
      if (value > 100) {
        value=0;
      }
      slider.moveHandle(value);
    }
  }
);
  final int thirdSectionX=app.getScreenWidth() - (app.getScreenWidth() / 3) + 20;
  Label gameLbl=new Label("String_Node_Str");
  gameLbl.setTheme(theme);
  gameLbl.setBounds(new Rectangle(thirdSectionX + 30,bottomPanelY - 70,400,40));
  gameLbl.setHorizontalTextAlignment(TextAlignment.LEFT);
  gameLbl.setFont(theme.getPrimaryFontName());
  gameLbl.setTextSize(18);
  this.panelView.addElement(new LabelView(gameLbl));
  uiPos.x=thirdSectionX + 60;
  uiPos.y=bottomPanelY - 15;
  Checkbox weaponRecoilEnabledChkBx=new Checkbox(app.getConfig().getWeaponRecoilEnabled());
  weaponRecoilEnabledChkBx.setTheme(theme);
  weaponRecoilEnabledChkBx.setLabelText("String_Node_Str");
  weaponRecoilEnabledChkBx.getBounds().setLocation(uiPos);
  weaponRecoilEnabledChkBx.addCheckboxClickedListener(new OnCheckboxClickedListener(){
    @Override public void onCheckboxClicked(    CheckboxEvent event){
      app.getConfig().setWeaponRecoilEnabled(event.getCheckbox().isChecked());
    }
  }
);
  weaponRecoilEnabledChkBx.addOnHoverListener(new OnHoverListener(){
    @Override public void onHover(    HoverEvent event){
      uiManager.getCursor().touchAccuracy();
    }
  }
);
  this.optionsPanel.addWidget(weaponRecoilEnabledChkBx);
  this.panelView.addElement(new CheckboxView(weaponRecoilEnabledChkBx));
  uiPos.y=bottomPanelY + 15;
  Checkbox bloodEnabledChkBx=new Checkbox(app.getConfig().getBloodEnabled());
  bloodEnabledChkBx.setTheme(theme);
  bloodEnabledChkBx.setLabelText("String_Node_Str");
  bloodEnabledChkBx.getBounds().setLocation(uiPos);
  bloodEnabledChkBx.addCheckboxClickedListener(new OnCheckboxClickedListener(){
    @Override public void onCheckboxClicked(    CheckboxEvent event){
      app.getConfig().setBloodEnabled(event.getCheckbox().isChecked());
    }
  }
);
  bloodEnabledChkBx.addOnHoverListener(new OnHoverListener(){
    @Override public void onHover(    HoverEvent event){
      uiManager.getCursor().touchAccuracy();
    }
  }
);
  this.optionsPanel.addWidget(bloodEnabledChkBx);
  this.panelView.addElement(new CheckboxView(bloodEnabledChkBx));
  uiPos.y=bottomPanelY + 45;
  Checkbox followReticleEnabledChkBx=new Checkbox(app.getConfig().getFollowReticleEnabled());
  followReticleEnabledChkBx.setTheme(theme);
  followReticleEnabledChkBx.setLabelText("String_Node_Str");
  followReticleEnabledChkBx.getBounds().setLocation(uiPos);
  followReticleEnabledChkBx.addCheckboxClickedListener(new OnCheckboxClickedListener(){
    @Override public void onCheckboxClicked(    CheckboxEvent event){
      app.getConfig().setFollowReticleEnabled(event.getCheckbox().isChecked());
    }
  }
);
  followReticleEnabledChkBx.addOnHoverListener(new OnHoverListener(){
    @Override public void onHover(    HoverEvent event){
      uiManager.getCursor().touchAccuracy();
    }
  }
);
  this.optionsPanel.addWidget(followReticleEnabledChkBx);
  this.panelView.addElement(new CheckboxView(followReticleEnabledChkBx));
}