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

Method initialize_needs_key

crawl-ref/source/macro.cc:1271–1282  ·  view source on GitHub ↗

Initialize the menu to accept key input immediately on show

Source from the content-addressed store, hash-verified

1269
1270 /// Initialize the menu to accept key input immediately on show
1271 void initialize_needs_key()
1272 {
1273 clear();
1274 key.clear();
1275 set_more(string(""));
1276 prompt = make_stringf(
1277 "Input trigger key to edit or create a %s:",
1278 parent.mode_name().c_str());
1279 set_title(new MenuEntry(prompt, MEL_TITLE));
1280 set_more("<lightgray>([<w>~</w>] to enter by keycode)</lightgray>");
1281 doing_key_input = true;
1282 }
1283
1284 void reset_key_prompt()
1285 {

Callers

nothing calls this directly

Calls 4

make_stringfFunction · 0.85
mode_nameMethod · 0.80
clearFunction · 0.50
clearMethod · 0.45

Tested by

no test coverage detected