added 200% simulation speed alternative
This commit is contained in:
parent
492cd5f721
commit
1b556148d8
|
@ -123,6 +123,10 @@ public class SimControl extends VisPlugin implements HasQuickHelp {
|
||||||
new ChangeMaxSpeedLimitAction("100%", 1.0));
|
new ChangeMaxSpeedLimitAction("100%", 1.0));
|
||||||
speedlimitButtonGroup.add(limitMenuItem3);
|
speedlimitButtonGroup.add(limitMenuItem3);
|
||||||
speedMenu.add(limitMenuItem3);
|
speedMenu.add(limitMenuItem3);
|
||||||
|
JRadioButtonMenuItem limitMenuItem200 = new JRadioButtonMenuItem(
|
||||||
|
new ChangeMaxSpeedLimitAction("200%", 2.0));
|
||||||
|
speedlimitButtonGroup.add(limitMenuItem200);
|
||||||
|
speedMenu.add(limitMenuItem200);
|
||||||
JRadioButtonMenuItem limitMenuItem4 = new JRadioButtonMenuItem(
|
JRadioButtonMenuItem limitMenuItem4 = new JRadioButtonMenuItem(
|
||||||
new ChangeMaxSpeedLimitAction("1000%", 10.0));
|
new ChangeMaxSpeedLimitAction("1000%", 10.0));
|
||||||
speedlimitButtonGroup.add(limitMenuItem4);
|
speedlimitButtonGroup.add(limitMenuItem4);
|
||||||
|
@ -136,6 +140,8 @@ public class SimControl extends VisPlugin implements HasQuickHelp {
|
||||||
limitMenuItem2.setSelected(true);
|
limitMenuItem2.setSelected(true);
|
||||||
} else if (simulation.getSpeedLimit().doubleValue() == 1.0) {
|
} 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) {
|
} else if (simulation.getSpeedLimit().doubleValue() == 10) {
|
||||||
limitMenuItem4.setSelected(true);
|
limitMenuItem4.setSelected(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue