-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmenudef.txt
220 lines (171 loc) · 5.73 KB
/
menudef.txt
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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
// Main Menu ///////////////////////////////////////////////////////////////////
AddOptionMenu OptionsMenu
{
tt_AnimatedSubmenu "$TT_TITLE", tt_Options
}
OptionMenu tt_Options
{
Title "$TT_TITLE"
Submenu "$TT_CONTROLS_TITLE_OUT" , tt_Controls
StaticText ""
Submenu "$TT_DISPLAY_OPTIONS_TITLE_OUT" , tt_DisplayOptions
Submenu "$TT_GAMEPLAY_OPTIONS_TITLE_OUT" , tt_GameplayOptions
Submenu "$TT_LESSON_OPTIONS_TITLE_OUT" , tt_LessonOptions
Submenu "$TT_COMMANDS_TITLE_OUT" , tt_CommandOptions
Submenu "$TT_SOUND_OPTIONS_TITLE_OUT" , tt_SoundOptions
StaticText ""
Submenu "$TT_ACKNOWLEDGMENTS_TITLE" , tt_Acknowledgments
}
// Submenus ////////////////////////////////////////////////////////////////////
OptionMenu tt_DisplayOptions
{
Title "$TT_DISPLAY_OPTIONS_TITLE_IN"
Slider "$TT_TARGET_SCALE", tt_view_scale, 1, 4, 1, 0
StaticText ""
Option "$TT_SHOW_NOTES" , tt_show_notes , OnOff
Option "$TT_SCREEN_SAVER" , tt_screensaver , OnOff
}
OptionMenu tt_GameplayOptions
{
Title "$TT_GAMEPLAY_OPTIONS_TITLE_IN"
Option "$TT_CONFIRMATION", tt_confirm_type, tt_ConfirmationTypes
StaticText ""
Option "$TT_BUDDHA_ENABLED", tt_buddha_enabled, OnOff
StaticText "$TT_BUDDHA_NOTE"
}
OptionMenu tt_LessonOptions
{
Title "$TT_LESSON_OPTIONS_TITLE_IN"
Option "$TT_QUESTION_SOURCE", tt_question_source, tt_QuestionSourceValues
StaticText ""
Submenu "$TT_MIXED_LESSON_TITLE", tt_MixedLesson
Submenu "$TT_RANDOM_LESSON_TITLE", tt_RandomLesson
StaticText ""
Command "$TT_APPLY", tt_reset_targets
StaticText "$TT_QUESTION_SOURCE_NOTE"
StaticText ""
StaticText "$TT_CUSTOM_LESSON_HELP_TEXT"
}
OptionMenu tt_Controls
{
Title "$TT_CONTROLS_TITLE_IN"
Control "$TT_UNLOCK", tt_unlock_mode
Control "$TT_COMBAT", tt_force_combat
StaticText ""
Control "$TT_SCORE", zc_top
}
OptionMenu tt_SoundOptions
{
Title "$TT_SOUND_OPTIONS_TITLE_IN"
Option "$TT_SOUND_ENABLED" , tt_sound_enabled , OnOff
Option "$TT_SOUND_TYPING_ENABLED" , tt_sound_typing_enabled , OnOff
Option "$TT_SOUND_THEME" , tt_sound_theme , tt_SoundThemes
}
OptionMenu tt_Acknowledgments
{
Title "$TT_ACKNOWLEDGMENTS_TITLE_FULL"
StaticText "$TT_ACKNOWLEDGMENTS_TEXT"
}
OptionMenu tt_MixedLesson
{
Title "$TT_MIXED_LESSON_TITLE_FULL"
// See docs/adding-new-lesson.md.
Option "$TT_LESSON_RANDOM" , tt_is_lesson_enabled_0 , OnOff
Option "$TT_LESSON_GZDOOM" , tt_is_lesson_enabled_1 , OnOff
Option "$TT_LESSON_CPP" , tt_is_lesson_enabled_2 , OnOff
Option "$TT_LESSON_MATH" , tt_is_lesson_enabled_3 , OnOff
Option "$TT_LESSON_1000" , tt_is_lesson_enabled_4 , OnOff
Option "$TT_LESSON_1000_RU" , tt_is_lesson_enabled_5 , OnOff
Option "$TT_CUSTOM_TEXT" , tt_is_lesson_enabled_6 , OnOff
Option "$TT_NIX_LESSON" , tt_is_lesson_enabled_7 , OnOff
StaticText ""
StaticText "$TT_MIXED_LESSON_NOTE"
StaticText ""
Command "$TT_APPLY", tt_reset_targets
StaticText "$TT_QUESTION_SOURCE_NOTE"
}
OptionMenu tt_RandomLesson
{
Title "$TT_RANDOM_LESSON_TITLE_FULL"
Slider "$TT_RANDOM_LESSON_LENGTH", tt_rc_length, 1, 10, 1, 0
StaticText ""
Option "$TT_RANDOM_LESSON_UPPERCASE" , tt_rc_uppercase_letters_enabled , OnOff
Option "$TT_RANDOM_LESSON_LOWERCASE" , tt_rc_lowercase_letters_enabled , OnOff
Option "$TT_RANDOM_LESSON_NUMBERS" , tt_rc_numbers_enabled , OnOff
Option "$TT_RANDOM_LESSON_PUNCTUATION" , tt_rc_punctuation_enabled , OnOff
Option "$TT_RANDOM_LESSON_SYMBOLS" , tt_rc_symbols_enabled , OnOff
StaticText ""
Option "$TT_RANDOM_LESSON_CUSTOM" , tt_rc_custom_enabled , OnOff
TextField "$TT_RANDOM_LESSON_CUSTOM_CHARS" , tt_rc_custom
}
OptionMenu tt_CommandOptions
{
Title "$TT_COMMANDS_TITLE_IN"
StaticText ""
Option "$TT_COMMAND_PREFIX", tt_command_prefix, tt_CommandPrefixValues
StaticText "$TT_COMMAND_PREFIX_NOTE"
StaticText ""
TextField "$TT_FORWARD_DASH" , tt_command_forward_dash
Command "$TT_RESET_COMMAND" , tt_reset_forward_dash_command
StaticText ""
TextField "$TT_BACKWARD_DASH" , tt_command_backward_dash
Command "$TT_RESET_COMMAND" , tt_reset_backward_dash_command
StaticText ""
TextField "$TT_LEFT_DASH" , tt_command_left_dash
Command "$TT_RESET_COMMAND" , tt_reset_left_dash_command
StaticText ""
TextField "$TT_RIGHT_DASH" , tt_command_right_dash
Command "$TT_RESET_COMMAND" , tt_reset_right_dash_command
StaticText ""
TextField "$TT_RELOAD" , tt_command_reload
Command "$TT_RESET_COMMAND" , tt_reset_reload_command
}
// Helper Menu /////////////////////////////////////////////////////////////////
// This menu is a part of a workaround to run ZScript code before the level is
// started.
OptionMenu tt_MenuInjector
{
tt_MenuInjector
}
// Option Values ///////////////////////////////////////////////////////////////
// See docs/adding-new-lesson.md.
OptionValue tt_QuestionSourceValues
{
0 , "$TT_LESSON_RANDOM"
1 , "$TT_LESSON_GZDOOM"
2 , "$TT_LESSON_CPP"
3 , "$TT_LESSON_MATH"
4 , "$TT_LESSON_1000"
5 , "$TT_LESSON_1000_RU"
6 , "$TT_MIXED_LESSON"
7 , "$TT_CUSTOM_TEXT"
8 , "$TT_NIX_LESSON"
}
OptionString tt_CommandPrefixValues
{
"/" , "/"
":" , ":"
"~" , "~"
"@" , "@"
"." , "."
"-" , "-"
}
OptionValue tt_ConfirmationTypes
{
0, "$TT_CONFIRMATION_MANUAL"
1, "$TT_CONFIRMATION_AUTO"
}
OptionValue tt_SoundThemes
{
1, "Default"
2, "SNES"
4, "Dakka"
5, "Grocery Store"
}
// Score Menu //////////////////////////////////////////////////////////////////
OptionMenu zc_TopMenu
{
class zc_Top
Title "Top Points"
}
// Sound settings //////////////////////////////////////////////////////////////