Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tpf-server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TPF
tpf-server
Commits
1732308a
Commit
1732308a
authored
7 years ago
by
Roman Haefeli
Browse files
Options
Downloads
Patches
Plain Diff
highlight chat button on incoming messages
parent
246dd486
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pd-tools/include/tpf-client-button.pd
+28
-1
28 additions, 1 deletion
pd-tools/include/tpf-client-button.pd
pd-tools/tpf-client.pd
+54
-33
54 additions, 33 deletions
pd-tools/tpf-client.pd
with
82 additions
and
34 deletions
pd-tools/include/tpf-client-button.pd
+
28
−
1
View file @
1732308a
#N canvas 739 603
450 300
10;
#N canvas 739 603
726 288
10;
#X obj 23 20 hsl 123 32 0 127 0 0 \$0.button.click empty empty -2 -8
0 10 -262144 -1 -1 0 1;
#X obj 20 20 cnv 32 128 32 empty \$0.button.fg \$1 8 16 0 20 -233017
...
...
@@ -13,6 +13,30 @@
#X obj 297 130 del 200;
#X msg 297 151 10;
#X obj 278 250 s \$2;
#N canvas 1589 505 310 209 rgb2iem 0;
#X obj 14 2 inlet;
#X obj 14 23 unpack f f f;
#X obj 14 168 outlet;
#X obj 48 49 << 8;
#X obj 14 49 << 16;
#X obj 14 106 +;
#X obj 48 78 +;
#X text 93 79 converts rgb 8bit to iem colors;
#X obj 14 126 * -1;
#X obj 14 147 - 1;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 1 1 3 0;
#X connect 1 2 6 1;
#X connect 3 0 6 0;
#X connect 4 0 5 0;
#X connect 5 0 8 0;
#X connect 6 0 5 1;
#X connect 8 0 9 0;
#X connect 9 0 2 0;
#X restore 446 121 pd rgb2iem;
#X obj 446 93 route color;
#X obj 446 72 r \$3;
#X connect 2 0 3 0;
#X connect 3 0 8 0;
#X connect 3 1 4 0;
...
...
@@ -24,4 +48,7 @@
#X connect 8 2 7 0;
#X connect 9 0 10 0;
#X connect 10 0 5 0;
#X connect 12 0 5 0;
#X connect 13 0 12 0;
#X connect 14 0 13 0;
#X coords 0 -1 1 1 128 32 2 20 20;
This diff is collapsed.
Click to expand it.
pd-tools/tpf-client.pd
+
54
−
33
View file @
1732308a
...
...
@@ -79,7 +79,7 @@
#X connect 38 0 37 1;
#X restore 8 41 pd communication;
#X obj 189 149 nbx 5 14 -1e+37 1e+37 0 0 \$0.bla \$0.id empty 0 -8
0 10 -262144 -1 -1
5
256;
0 10 -262144 -1 -1
0
256;
#N canvas 358 93 314 294 tpf.initialization 0;
#X obj 17 10 r \$0.id;
#X obj 17 51 b;
...
...
@@ -838,23 +838,23 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
#X obj 199 42 r \$0.name;
#X obj 52 27 r \$0.chat.s;
#X obj 295 52 text define \$0.chat;
#X obj 690 1
4
2 loadbang;
#X obj 596 1
4
1 list;
#X obj 690 1
9
2 loadbang;
#X obj 596 1
9
1 list;
#X msg 295 28 clear;
#X obj 635
19
0 text insert \$0.chat;
#X msg 690 1
6
2 0;
#X obj 615 2
1
4 text size \$0.chat;
#X obj 615 2
3
5 - 30;
#X obj 615
25
6 max 0;
#X obj 615 2
7
8 until;
#X obj 615 3
2
2 text delete \$0.chat;
#X obj 615
29
9 f 30;
#X obj 635
24
0 text insert \$0.chat;
#X msg 690
2
12 0;
#X obj 615 2
6
4 text size \$0.chat;
#X obj 615 2
8
5 - 30;
#X obj 615
30
6 max 0;
#X obj 615
3
28 until;
#X obj 615 3
7
2 text delete \$0.chat;
#X obj 615
34
9 f 30;
#X obj 785 26 loadbang;
#X obj 785 89 s \$0.chat.buffer;
#X obj 693 2
7
5 r \$0.chat.buffer;
#X msg 596
36
9 totalsize \$1;
#X obj 596 1
6
3 t b b a;
#X obj 596 3
4
6 text size \$0.chat;
#X obj 693
3
25 r \$0.chat.buffer;
#X msg 596
41
9 totalsize \$1;
#X obj 596
2
13 t b b a;
#X obj 596 3
9
6 text size \$0.chat;
#X msg 785 47 80;
#X obj 103 372 s \$0.chat.r;
#X obj 104 185 r \$0.connection.state;
...
...
@@ -936,16 +936,26 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
#X connect 9 0 5 1;
#X connect 10 0 4 0;
#X connect 11 0 3 0;
#X restore 596 111 pd wrap;
#X obj 307 397 r \$0.display.chat;
#X msg 307 418 vis 1;
#X obj 307 439 s pd-chat;
#X obj 596 394 s \$0.scb.chat.r;
#X restore 596 161 pd wrap;
#X obj 277 438 r \$0.display.chat;
#X msg 277 459 vis 1;
#X obj 277 480 s pd-chat;
#X obj 596 444 s \$0.scb.chat.r;
#X obj 821 129 r \$0.id;
#X obj 596 123 t a a;
#X obj 794 151 sel 0;
#X obj 821 181 b;
#X obj 821 206 s \$0.new.chat.msg;
#X obj 284 345 r \$0.new.chat.msg;
#X obj 284 387 s \$0.display.chat.r;
#X msg 284 366 color 128 255 128;
#X msg 776 126 \$3;
#X obj 596 105 list;
#X connect 1 0 2 0;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0
42
0;
#X connect 5 0
56
0;
#X connect 6 0 7 1;
#X connect 7 0 8 0;
#X connect 8 0 1 0;
...
...
@@ -986,6 +996,15 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
#X connect 42 0 13 0;
#X connect 43 0 44 0;
#X connect 44 0 45 0;
#X connect 47 0 49 1;
#X connect 48 0 42 0;
#X connect 48 1 55 0;
#X connect 49 1 50 0;
#X connect 50 0 51 0;
#X connect 52 0 54 0;
#X connect 54 0 53 0;
#X connect 55 0 49 0;
#X connect 56 0 48 0;
#X restore 8 162 pd chat.code;
#N canvas 978 53 787 374 chat 0;
#X obj 9 334 cnv 15 128 22 empty empty empty 20 12 0 14 -233017 -66577
...
...
@@ -1340,7 +1359,7 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
#X obj 170 78 cnv 32 70 32 empty empty empty 8 16 0 20 -1 -262144 0
;
#X obj 170 83 nbx 2 20 0 64 0 0 \$0.lat.ret.ch \$0.lat.ret.ch.r empty
0 -8 0 20 -1 -262144 -1
3
256;
0 -8 0 20 -1 -262144 -1
0
256;
#X obj 170 8 tpf-client-button32x32 \$0.latency.switch \$0.latency.switch.r
;
#X obj 7 8 cnv 32 160 32 empty \$0.button.fg ON/OFF 8 16 0 20 -233017
...
...
@@ -1349,12 +1368,12 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
-1 0;
#X obj 7 113 cnv 32 160 32 empty empty RETURN/LEVEL 8 16 0 20 -233017
-1 0;
#X obj 170 113 cnv 32 70 32 empty \$0.lat.ret.level
9
0dB 8 16 0 20
#X obj 170 113 cnv 32 70 32 empty \$0.lat.ret.level
0dB 8 16 0 20
-1 -262144 0;
#X obj 7 148 cnv 32 160 32 empty empty LATENCY 8 16 0 20 -233017 -1
0;
#X obj 170 148 cnv 32 70 32 empty \$0.latency.label
44ms 8 16 0 20
-1 -
262144
0;
#X obj 170 148 cnv 32 70 32 empty \$0.latency.label 44ms 8 16 0 20
-1 -
1
0;
#X obj 170 43 cnv 32 70 32 empty empty empty 8 16 0 20 -1 -262144 0
;
#X obj 7 43 cnv 32 160 32 empty empty SAMPLEPERIOD 8 16 0 20 -233017
...
...
@@ -1401,15 +1420,15 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
#X obj 398 3 symbolatom_203x17 \$0 \$0.host \$0.host.r 500 15;
#X obj 605 3 nbx 7 16 6 34 0 0 \$0.channels.nb \$0.channels.nb.r empty
0 8 0 10 -262144 -1 -1 8 256;
#X obj 602 3 cnv 15 75 16 empty \$0.channels.label ch=
8
4 8 0 13 -1
-
195568
0;
#X obj 602 3 cnv 15 75 16 empty \$0.channels.label ch=
2
4 8 0 13 -1
-
262144
0;
#X obj 610 19 nbx 6 16 10 398 0 0 \$0.queue.nb \$0.queue.nb.r empty
0 8 0 10 -262144 -1 -1
32
256;
#X obj 610 20 cnv 15 67 15 empty \$0.queue.label q=
8
4 7 0 13 -1 -
195568
0 8 0 10 -262144 -1 -1
16
256;
#X obj 610 20 cnv 15 67 15 empty \$0.queue.label q=
4
4 7 0 13 -1 -
262144
0;
#X obj 540 19 nbx 6 16 2 26 0 0 \$0.bs.nb \$0.bs.nb.r empty 0 8 0 10
-262144 -1 -1 8 256;
#X obj 537 20 cnv 15 72 15 empty \$0.bs.label bs=128 4 7 0 13 -1 -
195568
#X obj 537 20 cnv 15 72 15 empty \$0.bs.label bs=128 4 7 0 13 -1 -
262144
0;
#X obj 680 38 cnv 24 32 24 empty empty 1 10 13 0 16 -228856 -1 0;
#X obj 715 38 cnv 24 32 24 empty empty 2 10 13 0 16 -228856 -1 0;
...
...
@@ -1427,8 +1446,8 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
#X obj 855 3 tpf-client-inchannel \$0 5;
#X obj 890 3 tpf-client-inchannel \$0 6;
#X obj 925 3 tpf-client-inchannel \$0 7;
#X obj 4 345 tpf-client-button Chat \$0.display.chat
;
#X obj 266 345 tpf-client-button Errors \$0.display.errors
;
#X obj 4 345 tpf-client-button Chat \$0.display.chat
\$0.display.chat.r
;
#X obj 4 3 tpf-client-button32x32 \$0.connect.switch \$0.connect.switch.r
;
#X obj 4 100 tpf-client-link \$0 1;
...
...
@@ -1439,6 +1458,8 @@ symbol telematic.zhdk.ch \; \$1.channels 2 \; \$1.bitres 16 \; \$1.queue
#X obj 4 275 tpf-client-link \$0 6;
#X obj 4 310 tpf-client-link \$0 7;
#X obj 925 345 tpf-client-testsignal-outchannel \$0 8 0;
#X obj 135 345 tpf-client-button Latency \$0.display.latency;
#X obj 730 345 cnv 15 192 32 empty empty empty 20 12 0 14 -262144 -66577
0;
#X obj 266 345 tpf-client-button Errors \$0.display.errors \$0.display.errors.r
;
#X obj 135 345 tpf-client-button Latency \$0.display.latency;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment