groundwork for window port interface change to add_menu
groundwork only - window port interface change This changes the last parameter for add_menu() from a boolean to an unsigned int, to allow additional itemflags in future beyond just the "preselected" that the original boolean offered. There shouldn't be any functionality changes with this groundwork-only change, and if there are it is unintentional and should be reported.
This commit is contained in:
@@ -601,7 +601,7 @@ int gloc;
|
||||
Sprintf(fullbuf, "%s%s%s", firstmatch,
|
||||
(*tmpbuf ? " " : ""), tmpbuf);
|
||||
add_menu(tmpwin, NO_GLYPH, &any, 0, 0, ATR_NONE, fullbuf,
|
||||
MENU_UNSELECTED);
|
||||
MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1352,26 +1352,26 @@ docallcmd()
|
||||
any = cg.zeroany;
|
||||
any.a_char = 'm'; /* group accelerator 'C' */
|
||||
add_menu(win, NO_GLYPH, &any, abc ? 0 : any.a_char, 'C', ATR_NONE,
|
||||
"a monster", MENU_UNSELECTED);
|
||||
"a monster", MENU_ITEMFLAGS_NONE);
|
||||
if (g.invent) {
|
||||
/* we use y and n as accelerators so that we can accept user's
|
||||
response keyed to old "name an individual object?" prompt */
|
||||
any.a_char = 'i'; /* group accelerator 'y' */
|
||||
add_menu(win, NO_GLYPH, &any, abc ? 0 : any.a_char, 'y', ATR_NONE,
|
||||
"a particular object in inventory", MENU_UNSELECTED);
|
||||
"a particular object in inventory", MENU_ITEMFLAGS_NONE);
|
||||
any.a_char = 'o'; /* group accelerator 'n' */
|
||||
add_menu(win, NO_GLYPH, &any, abc ? 0 : any.a_char, 'n', ATR_NONE,
|
||||
"the type of an object in inventory", MENU_UNSELECTED);
|
||||
"the type of an object in inventory", MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
any.a_char = 'f'; /* group accelerator ',' (or ':' instead?) */
|
||||
add_menu(win, NO_GLYPH, &any, abc ? 0 : any.a_char, ',', ATR_NONE,
|
||||
"the type of an object upon the floor", MENU_UNSELECTED);
|
||||
"the type of an object upon the floor", MENU_ITEMFLAGS_NONE);
|
||||
any.a_char = 'd'; /* group accelerator '\' */
|
||||
add_menu(win, NO_GLYPH, &any, abc ? 0 : any.a_char, '\\', ATR_NONE,
|
||||
"the type of an object on discoveries list", MENU_UNSELECTED);
|
||||
"the type of an object on discoveries list", MENU_ITEMFLAGS_NONE);
|
||||
any.a_char = 'a'; /* group accelerator 'l' */
|
||||
add_menu(win, NO_GLYPH, &any, abc ? 0 : any.a_char, 'l', ATR_NONE,
|
||||
"record an annotation for the current level", MENU_UNSELECTED);
|
||||
"record an annotation for the current level", MENU_ITEMFLAGS_NONE);
|
||||
end_menu(win, "What do you want to name?");
|
||||
if (select_menu(win, PICK_ONE, &pick_list) > 0) {
|
||||
ch = pick_list[0].item.a_char;
|
||||
|
||||
Reference in New Issue
Block a user