window port interface change - add mbehavior flags to start_menu()

Provide a way to communicate additional behaviors and/or appearances
desired from NetHack window port menus.

This is foundation work for changes to follow at a future date.
This commit is contained in:
nhmall
2020-02-20 20:12:51 -05:00
parent 8e6e4922f8
commit d81c096ce6
55 changed files with 170 additions and 134 deletions

View File

@@ -732,7 +732,7 @@ curses_character_dialog(const char **choices, const char *prompt)
winid wid = curses_get_wid(NHW_MENU);
identifier.a_void = 0;
curses_start_menu(wid);
curses_start_menu(wid, MENU_BEHAVE_STANDARD);
for (count = 0; choices[count]; count++) {
curletter = tolower(choices[count][0]);

View File

@@ -328,7 +328,7 @@ curses_create_nhwindow(int type)
winid wid = curses_get_wid(type);
if (curses_is_menu(wid) || curses_is_text(wid)) {
curses_start_menu(wid);
curses_start_menu(wid, MENU_BEHAVE_STANDARD);
curses_add_wid(wid);
}
@@ -480,7 +480,7 @@ curses_display_file(const char *filename, BOOLEAN_P must_exist)
be used for menus.
*/
void
curses_start_menu(winid wid)
curses_start_menu(winid wid, unsigned long mbehavior)
{
if (inv_update)
return;