Initial version
[tenra-roller.git] / .buildozer / android / app / tenraroller.kv
1 <SlavedSlider>:
2
3 <SlavedTextInput>:
4
5 <TenraRoller>:
6 dice_slider: dice_slider
7 dice_text: dice_text
8 skill_slider: skill_slider
9 skill_text: skill_text
10
11 roll_button: roll_button
12 result_label: result_label
13 previous_results: previous_results
14
15 BoxLayout:
16 orientation: 'vertical'
17 spacing: 10
18 size_hint: 1, 1
19
20 BoxLayout:
21 orientation: 'horizontal'
22 spacing: 10
23 center_x: root.center_x
24 width: root.width
25 Label:
26 text: "Dice"
27 SlavedSlider:
28 id: dice_slider
29 orientation: 'horizontal'
30 min: 1
31 max: root.max_dice
32 step: 1
33 value: int(root.max_dice / 2)
34 on_value: root.slider_value_change(dice_slider)
35 SlavedTextInput:
36 id: dice_text
37 multiline: False
38 on_text: root.text_value_change(dice_text)
39 text: str(int(root.max_dice / 2))
40
41 BoxLayout:
42 orientation: 'horizontal'
43 spacing: 10
44 width: root.width
45 Label:
46 text: "Skill"
47 SlavedSlider:
48 id: skill_slider
49 orientation: 'horizontal'
50 min: 1
51 max: root.max_skill
52 step: 1
53 value: int(root.max_skill / 2)
54 on_value: root.slider_value_change(skill_slider)
55 SlavedTextInput:
56 id: skill_text
57 multiline: False
58 on_text: root.text_value_change(skill_text)
59 text: str(int(root.max_skill / 2))
60
61 Button:
62 id: roll_button
63 text: "Roll"
64 on_press: root.roll_dice()
65
66 Label:
67 id: result_label
68 text: "No result"
69
70 ListView:
71 id: previous_results
72 adapter: root.previous_results_la