\#dotypeinv ('I') - show title for inventory subset
When asking for an inventory subset for one of the meta-classes that can generate output which spans object classes (so B,U,C,X, and P), insert a title at the start of the resulting inventory list. (Iu and Ix produce alternate output that already includes a title.) Also, stop handling '$' differently for menustyles traditional and combination from full and partial. 'I$' was running the '$' command for the first two styles but just showing the inventory entry for gold for the last two. Change to the latter for all styles.
This commit is contained in:
@@ -985,6 +985,12 @@ query_objlist(const char *qstr, /* query string */
|
||||
win = create_nhwindow(NHW_MENU);
|
||||
start_menu(win, MENU_BEHAVE_STANDARD);
|
||||
any = cg.zeroany;
|
||||
if (g.this_title) {
|
||||
/* dotypeinv() supplies g.this_title to display as initial header;
|
||||
intentionally avoid the menu_headings highlight attribute here */
|
||||
add_menu(win, &nul_glyphinfo, &any, 0, 0, ATR_NONE,
|
||||
g.this_title, MENU_ITEMFLAGS_NONE);
|
||||
}
|
||||
/*
|
||||
* Run through the list and add the objects to the menu. If
|
||||
* INVORDER_SORT is set, we'll run through the list once for
|
||||
|
||||
Reference in New Issue
Block a user