From f06ed96132ffd042606941032f8708f241883252 Mon Sep 17 00:00:00 2001 From: Eduardo Cavazos Date: Sun, 13 Jul 2008 17:12:34 -0500 Subject: [PATCH] boids.ui: Rewrite to not use 'gadget,' --- extra/boids/ui/ui.factor | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/extra/boids/ui/ui.factor b/extra/boids/ui/ui.factor index 6b175eeb5e..f45b1cc0ff 100755 --- a/extra/boids/ui/ui.factor +++ b/extra/boids/ui/ui.factor @@ -114,6 +114,8 @@ VARS: population-label cohesion-label alignment-label separation-label ; + + { [ "ESC - Pause" [ drop toggle-loop ] button* ] @@ -139,7 +141,7 @@ VARS: population-label cohesion-label alignment-label separation-label ; "e - +0.1" [ drop inc-separation-weight ] button* add-gadget "d - -0.1" [ drop dec-separation-weight ] button* add-gadget ] - } [ call ] map [ [ gadget, ] each ] make-shelf + } [ call ] map [ add-gadget ] each 1 over set-pack-fill over @top grid-add