MCPcopy Create free account
hub / github.com/crawl/crawl / show_keyhelp_menu

Function show_keyhelp_menu

crawl-ref/source/command.cc:506–519  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504////////////////////////////////////////////////////////////////////////////
505
506int show_keyhelp_menu(const vector<formatted_string> &lines)
507{
508 int flags = FS_PREWRAPPED_TEXT | FS_EASY_EXIT;
509 formatted_scroller cmd_help(flags);
510 cmd_help.set_tag("help");
511 cmd_help.set_more();
512
513 for (unsigned i = 0; i < lines.size(); ++i)
514 cmd_help.add_formatted_string(lines[i], i < lines.size()-1);
515
516 cmd_help.show();
517
518 return cmd_help.get_lastch();
519}
520
521void show_specific_helps(const vector<string> keys)
522{

Callers 4

list_wizard_commandsFunction · 0.85
show_specific_helpsFunction · 0.85
show_targeting_helpFunction · 0.85
show_spell_library_helpFunction · 0.85

Calls 6

add_formatted_stringMethod · 0.80
get_lastchMethod · 0.80
set_tagMethod · 0.45
set_moreMethod · 0.45
sizeMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected