1 group { name: "e/modules/mixer/main";
2 images.image: "speaker.png" COMP;
3 images.image: "inset_round_hilight.png" COMP;
4 images.image: "inset_round_shadow.png" COMP;
5 images.image: "inset_round_shading.png" COMP;
6 images.image: "led_dot_white.png" COMP;
10 public message(Msg_Type:type, id, ...) {
11 if ((type == MSG_INT_SET) && (id == 0)) {
19 run_program(PROGRAM:"mute");
21 run_program(PROGRAM:"unmute");
25 run_program(PROGRAM:"l0-off");
26 run_program(PROGRAM:"l1-off");
27 run_program(PROGRAM:"l2-off");
28 run_program(PROGRAM:"l3-off");
29 run_program(PROGRAM:"l4-off");
31 run_program(PROGRAM:"l0-on");
32 run_program(PROGRAM:"l1-off");
33 run_program(PROGRAM:"l2-off");
34 run_program(PROGRAM:"l3-off");
35 run_program(PROGRAM:"l4-off");
37 run_program(PROGRAM:"l0-on");
38 run_program(PROGRAM:"l1-on");
39 run_program(PROGRAM:"l2-off");
40 run_program(PROGRAM:"l3-off");
41 run_program(PROGRAM:"l4-off");
43 run_program(PROGRAM:"l0-on");
44 run_program(PROGRAM:"l1-on");
45 run_program(PROGRAM:"l2-on");
46 run_program(PROGRAM:"l3-off");
47 run_program(PROGRAM:"l4-off");
49 run_program(PROGRAM:"l0-on");
50 run_program(PROGRAM:"l1-on");
51 run_program(PROGRAM:"l2-on");
52 run_program(PROGRAM:"l3-on");
53 run_program(PROGRAM:"l4-off");
55 run_program(PROGRAM:"l0-on");
56 run_program(PROGRAM:"l1-on");
57 run_program(PROGRAM:"l2-on");
58 run_program(PROGRAM:"l3-on");
59 run_program(PROGRAM:"l4-on");
63 run_program(PROGRAM:"r0-off");
64 run_program(PROGRAM:"r1-off");
65 run_program(PROGRAM:"r2-off");
66 run_program(PROGRAM:"r3-off");
67 run_program(PROGRAM:"r4-off");
69 run_program(PROGRAM:"r0-on");
70 run_program(PROGRAM:"r1-off");
71 run_program(PROGRAM:"r2-off");
72 run_program(PROGRAM:"r3-off");
73 run_program(PROGRAM:"r4-off");
75 run_program(PROGRAM:"r0-on");
76 run_program(PROGRAM:"r1-on");
77 run_program(PROGRAM:"r2-off");
78 run_program(PROGRAM:"r3-off");
79 run_program(PROGRAM:"r4-off");
81 run_program(PROGRAM:"r0-on");
82 run_program(PROGRAM:"r1-on");
83 run_program(PROGRAM:"r2-on");
84 run_program(PROGRAM:"r3-off");
85 run_program(PROGRAM:"r4-off");
87 run_program(PROGRAM:"r0-on");
88 run_program(PROGRAM:"r1-on");
89 run_program(PROGRAM:"r2-on");
90 run_program(PROGRAM:"r3-on");
91 run_program(PROGRAM:"r4-off");
93 run_program(PROGRAM:"r0-on");
94 run_program(PROGRAM:"r1-on");
95 run_program(PROGRAM:"r2-on");
96 run_program(PROGRAM:"r3-on");
97 run_program(PROGRAM:"r4-on");
103 part { name: "base-sh";
104 description { state: "default" 0.0;
109 image.normal: "inset_round_shadow.png";
112 part { name: "base-hi";
113 description { state: "default" 0.0;
118 image.normal: "inset_round_hilight.png";
122 description { state: "default" 0.0;
123 rel1.relative: (25/380) (25/380);
124 rel2.relative: (365/380) (365/380);
125 aspect: 1.0 1.0; aspect_preference: BOTH;
126 image.normal: "speaker.png";
129 part { name: "state"; type: RECT;
130 description { state: "default" 0.0;
131 rel1.relative: -1.0 -1.0;
132 rel2.relative: 2.0 2.0;
133 color: 51 153 255 255;
135 description { state: "mute" 0.0;
136 inherit: "default" 0.0;
137 color: 255 153 51 255;
140 #define LED(_NAME, _BASE, _X, _SIZE) \
141 part { name: _NAME; type: RECT; \
143 description { state: "default" 0.0; \
144 rel1.relative: ((_BASE+(_X*8))/160) (80/160); \
145 rel2.relative: ((_BASE+(_X*8))/160) (80/160); \
149 color: 255 255 255 0; \
151 description { state: "active" 0.0; \
152 inherit: "default" 0.0; \
154 color: 255 255 255 255; \
157 part { name: _NAME"g"; \
159 description { state: "default" 0.0; \
162 image.normal: "led_dot_white.png"; \
165 color: 255 255 255 0; \
167 description { state: "active" 0.0; \
168 inherit: "default" 0.0; \
170 color: 255 255 255 255; \
180 LED("l2", 61, -2, 15)
181 LED("l3", 61, -3, 21)
182 LED("l4", 61, -4, 27)
184 part { name: "over"; type: RECT;
185 description { state: "default" 0.0;
186 color: 255 255 255 0;
191 program { name: "mute";
192 action: STATE_SET "mute" 0.0;
193 transition: LINEAR 0.3;
196 program { name: "unmute";
197 action: STATE_SET "default" 0.0;
198 transition: LINEAR 0.2;
201 #define PROG(_NAME) \
202 program { name: _NAME"-on"; \
203 action: STATE_SET "active" 0.0; \
207 program { name: _NAME"-off"; \
208 action: STATE_SET "default" 0.0; \