added 200% simulation speed alternative
This commit is contained in:
parent
492cd5f721
commit
1b556148d8
1 changed files with 10 additions and 4 deletions
|
@ -120,9 +120,13 @@ public class SimControl extends VisPlugin implements HasQuickHelp {
|
|||
speedlimitButtonGroup.add(limitMenuItem2);
|
||||
speedMenu.add(limitMenuItem2);
|
||||
JRadioButtonMenuItem limitMenuItem3 = new JRadioButtonMenuItem(
|
||||
new ChangeMaxSpeedLimitAction("100%", 1.0));
|
||||
speedlimitButtonGroup.add(limitMenuItem3);
|
||||
speedMenu.add(limitMenuItem3);
|
||||
new ChangeMaxSpeedLimitAction("100%", 1.0));
|
||||
speedlimitButtonGroup.add(limitMenuItem3);
|
||||
speedMenu.add(limitMenuItem3);
|
||||
JRadioButtonMenuItem limitMenuItem200 = new JRadioButtonMenuItem(
|
||||
new ChangeMaxSpeedLimitAction("200%", 2.0));
|
||||
speedlimitButtonGroup.add(limitMenuItem200);
|
||||
speedMenu.add(limitMenuItem200);
|
||||
JRadioButtonMenuItem limitMenuItem4 = new JRadioButtonMenuItem(
|
||||
new ChangeMaxSpeedLimitAction("1000%", 10.0));
|
||||
speedlimitButtonGroup.add(limitMenuItem4);
|
||||
|
@ -135,7 +139,9 @@ public class SimControl extends VisPlugin implements HasQuickHelp {
|
|||
} else if (simulation.getSpeedLimit().doubleValue() == 0.10) {
|
||||
limitMenuItem2.setSelected(true);
|
||||
} else if (simulation.getSpeedLimit().doubleValue() == 1.0) {
|
||||
limitMenuItem3.setSelected(true);
|
||||
limitMenuItem3.setSelected(true);
|
||||
} else if (simulation.getSpeedLimit().doubleValue() == 2.0) {
|
||||
limitMenuItem200.setSelected(true);
|
||||
} else if (simulation.getSpeedLimit().doubleValue() == 10) {
|
||||
limitMenuItem4.setSelected(true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue