forked from n0remac/Code-Jam
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkers.kv
59 lines (55 loc) · 1.38 KB
/
checkers.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
49
50
51
52
53
54
55
56
57
58
<TitleMenu>:
BoxLayout:
orientation: 'vertical'
Label:
text: 'Checkers'
font_size: '36sp'
Button:
text: 'Settings'
on_release: root.manager.current = 'settings'
Button:
text: 'Play'
on_release: root.manager.current = 'board'
Button:
text: 'Quit'
on_release: app.stop()
<PlayerSetting>
BoxLayout:
size: root.size
pos: root.pos
orientation: 'horizontal'
Button:
text: '1 Player'
on_release: root.select_players(1)
Button:
text: '2 Players'
on_release: root.select_players(2)
Label:
id: count
text: '1 Player Selected'
<DifficultySetting>
BoxLayout:
size: root.size
pos: root.pos
orientation: 'horizontal'
Label:
text: 'CPU Difficulty'
Slider:
id: slider
min: 1
max: 10
value: 3
step: 1
orientation: 'horizontal'
Label:
text: str(round(slider.value))
<SettingsMenu>:
BoxLayout:
orientation: 'vertical'
Label:
text: 'Settings'
PlayerSetting:
DifficultySetting:
Button:
text: 'Main Menu'
on_release: root.manager.current = 'menu'