-
Notifications
You must be signed in to change notification settings - Fork 0
/
extendedxypad.kv
49 lines (41 loc) · 1.29 KB
/
extendedxypad.kv
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
#:kivy 1.4
<ExtendedXyPad>:
xfader: xfader
yfader: yfader
pad_pos: 60, 80
xfader_pos: root.x + root.pad_x, root.y + root.x_name_pad_y - xfader.height - 5
xfader_size: root.pad_width, 40
yfader_pos: root.x + root.pad_x - root.y_name_pad_height - yfader.width - 10, root.y + root.pad_y
yfader_size: 40, root.pad_height
# name_pad_pos: root.name_pad_pos[0], root.y + root.x_name_pad_y - root.x_name_w.height - root.xfader.height
Fader:
id: xfader
orientation: 'horizontal'
color: root.color
padding: 15
size_hint: None, None
size: root.xfader_size
pos: root.xfader_pos
subpad: 0
on_touch_move:
root.value_pos = (self.value_pos[0], root.value_pos[1])
root.send_message()
step: root.step[0]
min: root.min[0]
max: root.max[0]
Fader:
id: yfader
orientation: 'vertical'
color: root.color
padding: 15
subpad: 0
size_hint: None, None
size: root.yfader_size
pos: root.yfader_pos
subpad: 0
on_touch_move:
root.value_pos = (root.value_pos[0], self.value_pos[1])
root.send_message()
step: root.step[1]
min: root.min[1]
max: root.max[1]