MCPcopy Create free account
hub / github.com/NetHack/NetHack / invdisp_nothing

Function invdisp_nothing

src/invent.c:5289–5305  ·  view source on GitHub ↗

common to display_minventory and display_cinventory */

Source from the content-addressed store, hash-verified

5287
5288/* common to display_minventory and display_cinventory */
5289staticfn void
5290invdisp_nothing(const char *hdr, const char *txt)
5291{
5292 winid win;
5293 menu_item *selected;
5294
5295 win = create_nhwindow(NHW_MENU);
5296 start_menu(win, MENU_BEHAVE_STANDARD);
5297 add_menu_heading(win, hdr);
5298 add_menu_str(win, "");
5299 add_menu_str(win, txt);
5300 end_menu(win, (char *) 0);
5301 if (select_menu(win, PICK_NONE, &selected) > 0)
5302 free((genericptr_t) selected);
5303 destroy_nhwindow(win);
5304 return;
5305}
5306
5307/* query_objlist callback: return things that are worn or wielded */
5308staticfn boolean

Callers 2

display_minventoryFunction · 0.85
display_cinventoryFunction · 0.85

Calls 3

add_menu_headingFunction · 0.85
add_menu_strFunction · 0.85
select_menuFunction · 0.85

Tested by

no test coverage detected