Wire up Speed slider to Engine Configuration
This commit is contained in:
parent
905af769f6
commit
c3f0881454
1 changed files with 2 additions and 1 deletions
|
@ -8,7 +8,8 @@ class ConfigurationService {
|
||||||
int _simSpeed;
|
int _simSpeed;
|
||||||
int get simSpeed => _simSpeed;
|
int get simSpeed => _simSpeed;
|
||||||
void set simSpeed(int val) {
|
void set simSpeed(int val) {
|
||||||
_simSpeed = 5;
|
_simSpeed = val;
|
||||||
|
engineService.engine.stepsPerSecond = simSpeed;
|
||||||
}
|
}
|
||||||
|
|
||||||
ConfigurationService(this.engineService) {
|
ConfigurationService(this.engineService) {
|
||||||
|
|
Loading…
Reference in a new issue