Compare commits
1 Commits
65370b4679
...
104c385ae4
| Author | SHA1 | Date | |
|---|---|---|---|
| 104c385ae4 |
@@ -143,6 +143,7 @@ void configure_and_run_learn_sounds() {
|
|||||||
learn_sounds_set_speak_callback(learn_sounds_bridge_speak);
|
learn_sounds_set_speak_callback(learn_sounds_bridge_speak);
|
||||||
learn_sounds_set_menu_sound_dir("sounds/menu");
|
learn_sounds_set_menu_sound_dir("sounds/menu");
|
||||||
learn_sounds_set_root_dir("sounds");
|
learn_sounds_set_root_dir("sounds");
|
||||||
|
learn_sounds_set_play_select_sound(false);
|
||||||
configure_project_learn_sounds();
|
configure_project_learn_sounds();
|
||||||
learn_sounds_run_menu();
|
learn_sounds_run_menu();
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-1
@@ -15,6 +15,7 @@ string[] learnSoundsDescriptionTexts;
|
|||||||
string learnSoundsRootDir = "sounds";
|
string learnSoundsRootDir = "sounds";
|
||||||
string learnSoundsMenuSoundDir = "sounds/menu";
|
string learnSoundsMenuSoundDir = "sounds/menu";
|
||||||
bool learnSoundsWrap = true;
|
bool learnSoundsWrap = true;
|
||||||
|
bool learnSoundsPlaySelectSound = true;
|
||||||
bool learnSoundsSetupApplied = false;
|
bool learnSoundsSetupApplied = false;
|
||||||
|
|
||||||
sound learnSoundsPreviewSound;
|
sound learnSoundsPreviewSound;
|
||||||
@@ -46,6 +47,10 @@ void learn_sounds_set_wrap(bool wrap) {
|
|||||||
learnSoundsWrap = wrap;
|
learnSoundsWrap = wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void learn_sounds_set_play_select_sound(bool playSelectSound) {
|
||||||
|
learnSoundsPlaySelectSound = playSelectSound;
|
||||||
|
}
|
||||||
|
|
||||||
void learn_sounds_clear_skip_entries() {
|
void learn_sounds_clear_skip_entries() {
|
||||||
learnSoundsSkipList.resize(0);
|
learnSoundsSkipList.resize(0);
|
||||||
}
|
}
|
||||||
@@ -315,7 +320,9 @@ void learn_sounds_run_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (key_pressed(KEY_RETURN)) {
|
if (key_pressed(KEY_RETURN)) {
|
||||||
learn_sounds_play_ui_sound(learnSoundsSelectSound, learnSoundsMenuSoundDir + "/menu_select");
|
if (learnSoundsPlaySelectSound) {
|
||||||
|
learn_sounds_play_ui_sound(learnSoundsSelectSound, learnSoundsMenuSoundDir + "/menu_select");
|
||||||
|
}
|
||||||
string selectedPath = soundPaths[selection];
|
string selectedPath = soundPaths[selection];
|
||||||
if (!file_exists(selectedPath)) {
|
if (!file_exists(selectedPath)) {
|
||||||
learn_sounds_speak("Sound not found.", true);
|
learn_sounds_speak("Sound not found.", true);
|
||||||
|
|||||||
Reference in New Issue
Block a user