});
Label difficultyLabel = new Label("-- DIFFICULTY --", game.getSkin());
String[] resolutionsArray = {"LOW", "MEDIUM", "HIGH"};
final List difficultyList = new List(resolutionsArray, game.getSkin());
difficultyList.addListener(new ClickListener() {
public void touchUp(InputEvent event, float x, float y, int pointer, int button) {
switch (difficultyList.getSelectedIndex()) {
case 0:
prefs.putString("difficulty", "low");
break;
case 1:
prefs.putString("difficulty", "medium");