|
@@ -104,7 +104,7 @@ public class SelectSpellsPanel extends JPanel {
|
|
|
final List<DDSpell> known = new ArrayList<>(avail);
|
|
final List<DDSpell> known = new ArrayList<>(avail);
|
|
|
this.modelPrepared = new SelectSpellModel(createPrepareModel(prepared, toPrepare));
|
|
this.modelPrepared = new SelectSpellModel(createPrepareModel(prepared, toPrepare));
|
|
|
this.modelKnown = new SelectSpellModel(known.stream().map(DDSpell::getName).toArray());
|
|
this.modelKnown = new SelectSpellModel(known.stream().map(DDSpell::getName).toArray());
|
|
|
- putClientProperty(READY, countNone() == 0);
|
|
|
|
|
|
|
+ gate.set(countNone() == 0);
|
|
|
sharedValue.value(sharedValue.value() - this.modelPrepared.data.length + countNone());
|
|
sharedValue.value(sharedValue.value() - this.modelPrepared.data.length + countNone());
|
|
|
|
|
|
|
|
GridBagLayout gridBagLayout = new GridBagLayout();
|
|
GridBagLayout gridBagLayout = new GridBagLayout();
|
|
@@ -195,9 +195,7 @@ public class SelectSpellsPanel extends JPanel {
|
|
|
}
|
|
}
|
|
|
tablePrepared.getSelectionModel().clearSelection();
|
|
tablePrepared.getSelectionModel().clearSelection();
|
|
|
tablePrepared.repaint();
|
|
tablePrepared.repaint();
|
|
|
- if ((Boolean) getClientProperty(READY)) {
|
|
|
|
|
- putClientProperty(READY, false);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ gate.set(false);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
JButton button_1 = new JButton("<<");
|
|
JButton button_1 = new JButton("<<");
|