Pause and equipment menu now available in adventures.
This commit is contained in:
@@ -187,6 +187,7 @@ void run_quest_menu() {
|
||||
string count_str = " " + (selection + 1) + " of " + options.length();
|
||||
|
||||
if (key_pressed(KEY_DOWN)) {
|
||||
play_menu_move_sound();
|
||||
selection++;
|
||||
if (selection >= options.length()) selection = 0;
|
||||
count_str = " " + (selection + 1) + " of " + options.length();
|
||||
@@ -194,6 +195,7 @@ void run_quest_menu() {
|
||||
}
|
||||
|
||||
if (key_pressed(KEY_UP)) {
|
||||
play_menu_move_sound();
|
||||
selection--;
|
||||
if (selection < 0) selection = options.length() - 1;
|
||||
count_str = " " + (selection + 1) + " of " + options.length();
|
||||
@@ -201,6 +203,7 @@ void run_quest_menu() {
|
||||
}
|
||||
|
||||
if (key_pressed(KEY_RETURN)) {
|
||||
play_menu_select_sound();
|
||||
int quest_type = quest_queue[selection];
|
||||
quest_queue.remove_at(selection);
|
||||
run_quest(quest_type);
|
||||
|
||||
Reference in New Issue
Block a user