-
Notifications
You must be signed in to change notification settings - Fork 0
/
knob_with_button_horizontal_left.xml
61 lines (57 loc) · 1.96 KB
/
knob_with_button_horizontal_left.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE template>
<!--
Description:
A standard knob with an additional pushbutton
(e.g. for adding kill buttons next to a knob).
Variables:
control: The control to connect the knob to.
button_control: The control to connect the pushbutton to.
-->
<Template>
<WidgetGroup>
<ObjectName>KnobWithButtonHorizontal</ObjectName>
<Layout>horizontal</Layout>
<Children>
<!-- BUTTON -->
<WidgetGroup>
<Size>15f,21f</Size>
<Children>
<PushButton>
<TooltipId><Variable name="button_TooltipId"/></TooltipId>
<ObjectName>MixerButton</ObjectName>
<Size>15f,15f</Size>
<NumberStates>2</NumberStates>
<State>
<Number>0</Number>
<Text></Text>
<Pressed scalemode="STRETCH_ASPECT">icon/ic_radio_button_off_48px.svg</Pressed>
<Unpressed scalemode="STRETCH_ASPECT">icon/ic_radio_button_off_48px.svg</Unpressed>
</State>
<State>
<Number>1</Number>
<Text></Text>
<Pressed scalemode="STRETCH_ASPECT">icon/ic_radio_button_on_48px.svg</Pressed>
<Unpressed scalemode="STRETCH_ASPECT">icon/ic_radio_button_on_48px.svg</Unpressed>
</State>
<Connection>
<ConfigKey><Variable name="group"/>,<Variable name="button_control"/></ConfigKey>
<ButtonState>LeftButton</ButtonState>
</Connection>
</PushButton>
</Children>
</WidgetGroup>
<!-- KNOB -->
<WidgetGroup>
<Layout>vertical</Layout>
<Children>
<Template src="skin:knob.xml"/>
<Label>
<Size>40f,10f</Size>
<ObjectName>KnobLabel</ObjectName>
<Text><Variable name="label"/></Text>
</Label>
</Children>
</WidgetGroup>
</Children>
</WidgetGroup>
</Template>