UI/Model Parse - Switches
[clnl] / resources / UI-test.nlogo
index 2ba8b49e4f425cf93f2990b5ae6e59d5b80c59f1..b7eed22761bc5b286aa9ffe8d1df10b8e514796a 100644 (file)
@@ -1,6 +1,12 @@
 to go
   ask turtles [ fd 1 ]
 end
+
+to create-and-move
+  if 40 < count turtles [ stop ]
+  crt 1
+  ask turtles [ fd 1 ]
+end
 @#$#@#$#@
 GRAPHICS-WINDOW
 219
@@ -35,7 +41,7 @@ BUTTON
 102
 61
 setup
-crt 10
+crt 10 [ if new-turtles-green [ set color green ] ]
 NIL
 1
 T
@@ -80,6 +86,51 @@ NIL
 NIL
 1
 
+BUTTON
+78
+182
+160
+215
+forever
+go
+T
+1
+T
+OBSERVER
+NIL
+NIL
+NIL
+NIL
+1
+
+BUTTON
+66
+276
+161
+309
+stopping
+create-and-move
+T
+1
+T
+OBSERVER
+NIL
+NIL
+NIL
+NIL
+1
+
+SWITCH
+13
+127
+198
+160
+new-turtles-green
+new-turtles-green
+1
+1
+-1000
+
 @#$#@#$#@
 ## WHAT IS IT?