Pause and equipment menu now available in adventures.

This commit is contained in:
Storm Dragon
2026-02-06 21:18:12 -05:00
parent 8cd2e1d5a9
commit 2b0955110b
25 changed files with 168 additions and 1 deletions

View File

@@ -362,16 +362,19 @@ bool select_player_sex(int &out sex) {
while (true) {
wait(5);
if (key_pressed(KEY_DOWN)) {
play_menu_move_sound();
selection++;
if (selection >= options.length()) selection = 0;
speak_with_history(prompt + " " + options[selection], true);
}
if (key_pressed(KEY_UP)) {
play_menu_move_sound();
selection--;
if (selection < 0) selection = options.length() - 1;
speak_with_history(prompt + " " + options[selection], true);
}
if (key_pressed(KEY_RETURN)) {
play_menu_select_sound();
sex = (selection == 1) ? SEX_FEMALE : SEX_MALE;
return true;
}
@@ -435,16 +438,19 @@ bool select_save_file(string &out filename) {
while (true) {
wait(5);
if (key_pressed(KEY_DOWN)) {
play_menu_move_sound();
selection++;
if (selection >= options.length()) selection = 0;
speak_with_history(options[selection], true);
}
if (key_pressed(KEY_UP)) {
play_menu_move_sound();
selection--;
if (selection < 0) selection = int(options.length()) - 1;
speak_with_history(options[selection], true);
}
if (key_pressed(KEY_RETURN)) {
play_menu_select_sound();
filename = files[selection];
return true;
}