[fixes #897] Add stage button order changing
This commit is contained in:
parent
30bb320d67
commit
56e4887a45
@ -36,8 +36,9 @@ public class StageSelector extends JPanel implements StateChangeListener {
|
|||||||
private void updateButtons( final FlightConfiguration configuration ) {
|
private void updateButtons( final FlightConfiguration configuration ) {
|
||||||
buttons.clear();
|
buttons.clear();
|
||||||
this.removeAll();
|
this.removeAll();
|
||||||
for(AxialStage stage : configuration.getRocket().getStageList()){
|
for(RocketComponent stage : configuration.getRocket().getChildren()){
|
||||||
JToggleButton button = new SelectColorToggleButton(new StageAction(stage));
|
if (!(stage instanceof AxialStage)) continue;
|
||||||
|
JToggleButton button = new SelectColorToggleButton(new StageAction((AxialStage) stage));
|
||||||
button.setSelected(configuration.isStageActive(stage.getStageNumber()));
|
button.setSelected(configuration.isStageActive(stage.getStageNumber()));
|
||||||
this.add(button);
|
this.add(button);
|
||||||
buttons.add(button);
|
buttons.add(button);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user