-
Notifications
You must be signed in to change notification settings - Fork 0
/
knob_with_button.xml
49 lines (49 loc) · 1.74 KB
/
knob_with_button.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
<!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>
<Layout>vertical</Layout>
<Children>
<Template src="skin:knob.xml"/>
<WidgetGroup>
<Layout>horizontal</Layout>
<Children>
<PushButton>
<TooltipId><Variable name="button_TooltipId"/></TooltipId>
<ObjectName>KillButtons</ObjectName>
<Size>10f,10f</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>
<Label>
<Size>30f,10f</Size>
<ObjectName>KnobLabel</ObjectName>
<Text><Variable name="label"/></Text>
</Label>
</Children>
</WidgetGroup>
</Children>
</WidgetGroup>
</Template>