optGenSwitches.setSelectedIndex(GEN_OPT_SOUND, true);
optCommentFontSize = new TextField(T._("Comment font size"), "14", 2, TextField.NUMERIC);
optGenForm.append(optGenSwitches);
optGenForm.append(optCommentFontSize);
optForm = new List(T._("Options"), Choice.IMPLICIT, optGroupList, null);
optForm.setCommandListener(this);
optForm.addCommand(backCommand);
optForm.addCommand(selectCommand);
// -- In-game submenus -------------------------------------------
igProblemMenuList = new List(T._("Problem"), Choice.IMPLICIT, igProblemMenuItems, null);
igProblemMenuList.setCommandListener(this);
igProblemMenuList.addCommand(backCommand);
igPlayMenuList = new List(T._("Play"), Choice.IMPLICIT, igPlayMenuItems, null);
igPlayMenuList.setCommandListener(this);
igPlayMenuList.addCommand(backCommand);
igViewMenuList = new List(T._("View"), Choice.IMPLICIT, igViewMenuItems, null);
igViewMenuList.setCommandListener(this);
igViewMenuList.addCommand(backCommand);
igScoreMenuList = new List(T._("Score"), Choice.IMPLICIT, igScoreMenuItems, null);
igScoreMenuList.setCommandListener(this);
igScoreMenuList.addCommand(backCommand);
// -- Problem filter ---------------------------------------------
probFilterForm = new Form(T._("Problem filter"));
probFilterForm.setCommandListener(this);
if (fileSelectScreen != null)
probFilterForm.addCommand(updPathsCommand);
probFilterForm.addCommand(startCommand);
probFilterForm.addCommand(backCommand);
probFilterGenre = new ChoiceGroup(T._("Genre"), Choice.POPUP);
//probFilterGenre.setSelectedIndex(0, true);
probFilterDiffFrom = new ChoiceGroup(T._("Difficulty From"), Choice.POPUP, levelList, null);
probFilterDiffFrom.setSelectedIndex(0, true);
probFilterDiffTo = new ChoiceGroup(T._("Difficulty To"), ChoiceGroup.POPUP, levelList, null);
probFilterDiffTo.setSelectedIndex(0, true);
probFilterDiffTo.setSelectedIndex(levelList.length - 1, true);
probFilterSortByGenre = new ChoiceGroup(T._("Sort By Genre"), ChoiceGroup.POPUP, sortList, null);
probFilterSortByGenre.setSelectedIndex(0, true);
probFilterSortByDifficulty = new ChoiceGroup(T._("Sort By Difficulty"), ChoiceGroup.POPUP, sortList, null);
probFilterSortByDifficulty.setSelectedIndex(0, true);
probFilterSortByPopularity = new ChoiceGroup(T._("Sort By Popularity"), ChoiceGroup.POPUP, sortList, null);
probFilterSortByPopularity.setSelectedIndex(0, true);
probFilterShow = new ChoiceGroup(T._("Show"), ChoiceGroup.MULTIPLE, showList, null);
probFilterShow.setSelectedIndex(0, true);
probFilterShow.setSelectedIndex(2, true);
probFilterShow.setSelectedIndex(3, true);
probFilterPath = new ChoiceGroup(T._("Path"), ChoiceGroup.MULTIPLE);
probFilterForm.append(probFilterGenre);
probFilterForm.append(probFilterDiffFrom);
probFilterForm.append(probFilterDiffTo);
probFilterForm.append(probFilterShow);
probFilterForm.append(probFilterSortByGenre);
probFilterForm.append(probFilterSortByPopularity);
probFilterForm.append(probFilterSortByDifficulty);
probFilterForm.append(probFilterPath);
probPathList = new List(T._("Problem Paths"), List.IMPLICIT);
probPathList.addCommand(addCommand);
probPathList.addCommand(removeCommand);
probPathList.addCommand(removeAllCommand);
probPathList.addCommand(backCommand);
probPathList.setSelectCommand(removeCommand);