diff --git a/lib/app_component.dart b/lib/app_component.dart index 637c8cf..8239568 100644 --- a/lib/app_component.dart +++ b/lib/app_component.dart @@ -5,7 +5,8 @@ import 'package:rules_of_living/src/App.dart'; @Component( selector: 'my-app', - templateUrl: "app_component.html" + templateUrl: "app_component.html", + directives: [coreDirectives] ) class AppComponent implements OnInit { var name = "World"; @@ -32,10 +33,17 @@ class AppComponent implements OnInit { void onStartClicked() { bool isRunning = !engine.running; engine.running = isRunning; + } switch (isRunning) { case true: buttonRunText = "Stop"; break; case false: buttonRunText = "Start"; break; } + void onStepClicked() { } + + void onResetClicked() { + } + + void onRandomClicked() {} } diff --git a/lib/app_component.html b/lib/app_component.html index b0f6234..366ce7b 100644 --- a/lib/app_component.html +++ b/lib/app_component.html @@ -1,14 +1,20 @@

Cellular Automata - The Rules of Life

Ruleset: +
- - - - - Speed: + + + + + Speed:
\ No newline at end of file diff --git a/web/index.html b/web/index.html index 36f2b5a..35bd3cb 100644 --- a/web/index.html +++ b/web/index.html @@ -17,6 +17,9 @@ + + +