diff --git a/lib/components/controls_component.dart b/lib/components/controls_component.dart index cd18105..02cbe1a 100644 --- a/lib/components/controls_component.dart +++ b/lib/components/controls_component.dart @@ -6,13 +6,14 @@ import 'package:rules_of_living/src/Engine.dart'; @Component( selector: 'sim-controls', templateUrl: "controls_component.html", - directives: [coreDirectives, MaterialButtonComponent, MaterialIconComponent, MaterialSliderComponent], + directives: [coreDirectives, MaterialButtonComponent, MaterialIconComponent, MaterialSliderComponent, MaterialTooltipDirective], providers: [], styleUrls: const ["controls_component.css"], ) class ControlsComponent { final EngineService engineService; int simSpeed = 5; + String get speedSliderTooltip => "Simulation Speed: $simSpeed"; Engine get engine => engineService.engine; ControlsComponent(this.engineService); diff --git a/lib/components/controls_component.html b/lib/components/controls_component.html index 4d07357..b5ab389 100644 --- a/lib/components/controls_component.html +++ b/lib/components/controls_component.html @@ -1,14 +1,14 @@
+ - - + + - - - - - {{simSpeed}} - + + + + +
\ No newline at end of file diff --git a/web/index.html b/web/index.html index be2e05b..d5432b4 100644 --- a/web/index.html +++ b/web/index.html @@ -19,11 +19,6 @@ - - - - -