-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgitapp.kv
More file actions
104 lines (101 loc) · 3.04 KB
/
gitapp.kv
File metadata and controls
104 lines (101 loc) · 3.04 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<MainMenu>:
BoxLayout:
orientation: 'vertical'
padding: 20
spacing: 20
Label:
text: 'Изучение и практика Git'
font_size: 32
color: 0, 0, 0, 1
bold: True
size_hint: 1, 0.2
Button:
text: 'Начать игру'
size_hint: 1, 0.2
on_release: root.start_game()
Button:
text: 'О приложении'
size_hint: 1, 0.2
on_release: root.about()
Button:
text: 'Выход'
size_hint: 1, 0.2
on_release: root.exit_app()
<LevelSelection>:
BoxLayout:
orientation: 'vertical'
padding: 20
spacing: 20
Label:
text: 'Выберите уровень'
font_size: 32
bold: True
size_hint: 1, 0.2
Button:
text: 'Начальный уровень'
size_hint: 1, 0.2
on_release: root.start_easy()
Button:
text: 'Средний уровень'
size_hint: 1, 0.2
on_release: root.start_medium()
Button:
text: 'Продвинутый уровень'
size_hint: 1, 0.2
on_release: root.start_hard()
Button:
text: 'Назад'
size_hint: 1, 0.2
on_release: root.back_to_menu()
<GameScreen>:
BoxLayout:
orientation: 'vertical'
padding: 20
spacing: 20
Label:
id: level_label
text: 'Уровень: '
font_size: 24
size_hint: 1, 0.1
Label:
id: question_label
text: ''
font_size: 18
size_hint: 1, 0.2
TextInput:
id: command_input
text: 'Введите команду Git'
multiline: False
size_hint: 1, 0.1
on_text_validate: root.check_answer()
Label:
id: command_output
text: ''
size_hint: 1, 0.4
Label:
id: score_label
text: 'Счет: '
font_size: 18
size_hint: 1, 0.1
Button:
text: 'Назад'
size_hint: 1, 0.1
on_release: root.back_to_levels()
<AboutScreen>:
BoxLayout:
orientation: 'vertical'
padding: 20
spacing: 20
Label:
text: 'О приложении'
font_size: 32
bold: True
size_hint: 1, 0.2
Label:
text: 'Это приложение разработано для изучения и практики команд Git. Оно включает в себя разные уровни сложности и элементы геймификации. Приятного обучения!'
font_size: 18
size_hint: 1, 0.6
Button:
text: 'Назад'
size_hint: 1, 0.2
on_release: root.back_to_menu()