Commit 1b4c11d7 authored by Roman Haefeli's avatar Roman Haefeli
Browse files

make mode buttons keep their state across redraws

parent fc4211bc
...@@ -1137,28 +1137,47 @@ id float gid float vel float dur float c float vis; ...@@ -1137,28 +1137,47 @@ id float gid float vel float dur float c float vis;
#X connect 14 0 8 0; #X connect 14 0 8 0;
#X connect 15 0 7 0; #X connect 15 0 7 0;
#X restore 52 204 pd cursor.state; #X restore 52 204 pd cursor.state;
#N canvas 0 99 450 300 create.mode.button 0; #N canvas 0 99 652 395 create.mode.button 0;
#X obj 24 21 inlet; #X obj 24 21 inlet;
#X obj 24 206 outlet; #X obj 24 336 outlet;
#X obj 110 93 r \$0.canvasleftmargin; #X obj 57 162 r \$0.canvasleftmargin;
#X obj 24 159 list prepend \$0; #X obj 24 289 list prepend \$0;
#X obj 24 91 +; #X obj 24 161 +;
#X obj 24 69 unpack f f s; #X msg 24 312 scalar \$1.mode.button \$2 \$3 \$4 \$5 \$6;
#X obj 24 112 pack f f s; #X obj 105 19 r \$0.edit.modes;
#X msg 24 182 scalar \$1.mode.button \$2 \$3 \$4 \$5 \$6; #X obj 105 42 route velocity duration gid;
#X msg 24 138 \$1 11 \$2 666 \$3; #X obj 24 44 f;
#X msg 24 46 85 72 velocity \, 168 72 duration \, 251 95 gid; #X obj 24 80 pack f f f;
#X connect 0 0 9 0; #X msg 24 116 85 72 velocity \$1 \, 168 72 duration \$2 \, 251 95 gid
\$3;
#X obj 24 139 unpack f f s f;
#X obj 24 242 pack f f s f;
#X msg 24 268 \$1 11 \$2 \$4 \$3;
#X obj 96 187 sel 0 1;
#X msg 96 210 666;
#X msg 132 211 900;
#X connect 0 0 8 0;
#X connect 2 0 4 1; #X connect 2 0 4 1;
#X connect 3 0 7 0; #X connect 3 0 5 0;
#X connect 4 0 6 0; #X connect 4 0 12 0;
#X connect 5 0 4 0; #X connect 5 0 1 0;
#X connect 5 1 6 1; #X connect 6 0 7 0;
#X connect 5 2 6 2; #X connect 7 0 8 1;
#X connect 6 0 8 0; #X connect 7 1 9 1;
#X connect 7 0 1 0; #X connect 7 2 9 2;
#X connect 8 0 3 0; #X connect 8 0 9 0;
#X connect 9 0 5 0; #X connect 9 0 10 0;
#X connect 10 0 11 0;
#X connect 11 0 4 0;
#X connect 11 1 12 1;
#X connect 11 2 12 2;
#X connect 11 3 14 0;
#X connect 12 0 13 0;
#X connect 13 0 3 0;
#X connect 14 0 15 0;
#X connect 14 1 16 0;
#X connect 15 0 12 3;
#X connect 16 0 12 3;
#X restore 411 192 pd create.mode.button; #X restore 411 192 pd create.mode.button;
#N canvas 83 122 487 422 create.pager 0; #N canvas 83 122 487 422 create.pager 0;
#X obj 34 317 list prepend \$0; #X obj 34 317 list prepend \$0;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment