MCPcopy Index your code
hub / github.com/NetHack/NetHack / add_menu_heading

Function add_menu_heading

src/windows.c:1815–1828  ·  view source on GitHub ↗

insert a non-selectable, possibly highlighted line of text into a menu */

Source from the content-addressed store, hash-verified

1813
1814/* insert a non-selectable, possibly highlighted line of text into a menu */
1815void
1816add_menu_heading(winid tmpwin, const char *buf)
1817{
1818 anything any = cg.zeroany;
1819 int attr = iflags.menu_headings.attr,
1820 color = iflags.menu_headings.color;
1821
1822 /* suppress highlighting during end-of-game disclosure */
1823 if (program_state.gameover)
1824 attr = ATR_NONE, color = NO_COLOR;
1825
1826 add_menu(tmpwin, &nul_glyphinfo, &any, '\0', '\0', attr, color,
1827 buf, MENU_ITEMFLAGS_SKIPMENUCOLORS);
1828}
1829
1830/* insert a non-selectable, unhighlighted line of text into a menu */
1831void

Callers 15

doset_simple_menuFunction · 0.85
dosetFunction · 0.85
rename_discoFunction · 0.85
add_skills_to_menuFunction · 0.85
invent.cFile · 0.85
display_used_invletsFunction · 0.85
invdisp_nothingFunction · 0.85
wiz_customFunction · 0.85
print_dungeonFunction · 0.85
print_mapseenFunction · 0.85
query_objlistFunction · 0.85

Calls 1

add_menuFunction · 0.85

Tested by

no test coverage detected