Flesh out New Quest screen

This commit is contained in:
drdev
2014-07-06 05:25:57 +00:00
parent 4e479d280d
commit e4e1368fb1
9 changed files with 422 additions and 29 deletions

View File

@@ -167,14 +167,14 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
private final ActionListener alStartingWorld = new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
updateEnableFormats();
updateEnabledFormats();
}
};
/**
* Aux function for enabling or disabling the format selection according to world selection.
*/
private void updateEnableFormats() {
private void updateEnabledFormats() {
final QuestWorld qw = FModel.getWorlds().get(getStartingWorldName());
if (qw != null) {
cbxStartingPool.setEnabled(qw.getFormat() == null);
@@ -244,7 +244,7 @@ public enum VSubmenuQuestData implements IVSubmenu<CSubmenuQuestData> {
cbxStartingWorld.setSelectedItem(FModel.getWorlds().get("Main world"));
cbxStartingWorld.addActionListener(alStartingWorld);
updateEnableFormats();
updateEnabledFormats();
cboAllowUnlocks.setSelected(true);