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

Function mcmd_addmenu

src/cmd.c:4420–4431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4418};
4419
4420staticfn void
4421mcmd_addmenu(winid win, int act, const char *txt)
4422{
4423 anything any;
4424 int clr = NO_COLOR;
4425
4426 /* TODO: fixed letters for the menu entries? */
4427 any = cg.zeroany;
4428 any.a_int = act;
4429 add_menu(win, &nul_glyphinfo, &any, '\0', 0, ATR_NONE, clr, txt,
4430 MENU_ITEMFLAGS_NONE);
4431}
4432
4433/* command menu entries when targeting self */
4434staticfn int

Callers 4

there_cmd_menu_selfFunction · 0.85
there_cmd_menu_next2uFunction · 0.85
there_cmd_menu_farFunction · 0.85
there_cmd_menu_commonFunction · 0.85

Calls 1

add_menuFunction · 0.85

Tested by

no test coverage detected