-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeck_beatjump_controls.xml
63 lines (55 loc) · 3.08 KB
/
deck_beatjump_controls.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
62
63
<!DOCTYPE template>
<!--
Description:
A stack of beatjump controls that jump forward or backward by X beats.
Variables:
group: The group for the controls.
-->
<Template>
<WidgetGroup>
<Layout>horizontal</Layout>
<SizePolicy>min,min</SizePolicy>
<Children>
<BeatSpinBox>
<ObjectName>BeatjumpSizeSpinBox</ObjectName>
<TooltipId>beatjump_size</TooltipId>
<Size>54f,24f</Size>
<Value><Variable name="group"/>,beatjump_size</Value>
</BeatSpinBox>
<!-- Workaround for layout spacing -->
<WidgetGroup><Size>0min,2f</Size></WidgetGroup>
<!-- <WidgetGroup><Size>2f,0min</Size></WidgetGroup> -->
<WidgetGroup><!-- backward + forward -->
<Layout>horizontal</Layout>
<Children>
<Template src="skin:left_right_1state_button.xml">
<SetVariable name="TooltipId">beatjump_backward</SetVariable>
<SetVariable name="ObjectName">BeatJumpButton</SetVariable>
<SetVariable name="MinimumSize"><Variable name="HorizontalStretchButtonMinimumSize"/></SetVariable>
<SetVariable name="MaximumSize"><Variable name="HorizontalStretchButtonMaximumSize"/></SetVariable>
<SetVariable name="SizePolicy"><Variable name="HorizontalStretchButtonSizePolicy"/></SetVariable>
<SetVariable name="state_0_pressed">icon/ic_beatjump_backward_48px.svg</SetVariable>
<SetVariable name="state_0_unpressed">icon/ic_beatjump_backward_48px.svg</SetVariable>
<SetVariable name="state_0_text"><Variable name="text_length"/></SetVariable>
<SetVariable name="left_connection_control"><Variable name="group"/>,beatjump_backward</SetVariable>
<SetVariable name="right_connection_control"><Variable name="group"/>,beatjump_1_backward</SetVariable>
</Template>
<!-- Workaround for layout spacing -->
<WidgetGroup><Size>2f,0min</Size></WidgetGroup>
<Template src="skin:left_right_1state_button.xml">
<SetVariable name="TooltipId">beatjump_forward</SetVariable>
<SetVariable name="ObjectName">BeatJumpButton</SetVariable>
<SetVariable name="MinimumSize"><Variable name="HorizontalStretchButtonMinimumSize"/></SetVariable>
<SetVariable name="MaximumSize"><Variable name="HorizontalStretchButtonMaximumSize"/></SetVariable>
<SetVariable name="SizePolicy"><Variable name="HorizontalStretchButtonSizePolicy"/></SetVariable>
<SetVariable name="state_0_pressed">icon/ic_beatjump_forward_48px.svg</SetVariable>
<SetVariable name="state_0_unpressed">icon/ic_beatjump_forward_48px.svg</SetVariable>
<SetVariable name="state_0_text"><Variable name="text_length"/></SetVariable>
<SetVariable name="left_connection_control"><Variable name="group"/>,beatjump_forward</SetVariable>
<SetVariable name="right_connection_control"><Variable name="group"/>,beatjump_1_forward</SetVariable>
</Template>
</Children>
</WidgetGroup><!-- backward + forward -->
</Children>
</WidgetGroup>
</Template>