diff options
author | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-15 21:26:39 +0100 |
---|---|---|
committer | Johanna Ploog <j-p-e-g@users.sourceforge.net> | 2010-01-15 21:26:39 +0100 |
commit | db0e3300dd36a98734dd081e35dadd3a0c6a8aa4 (patch) | |
tree | 5d91418ba2b00bccab6131c8c294ab82f1128b16 /crawl-ref/source/command.cc | |
parent | 4224dfb2d2276ae82502dcf2b04ae099bfe44100 (diff) | |
download | crawl-ref-db0e3300dd36a98734dd081e35dadd3a0c6a8aa4.tar.gz crawl-ref-db0e3300dd36a98734dd081e35dadd3a0c6a8aa4.zip |
New method _command_to_string() returning human-readable key names.
The plan is to replace the hardcoded command key names on the help screen
and in the tutorial with these dynamic ones respecting redefined keys.
Unfortunately, several commands have multiple assignments and macro.cc's
command_to_key() only returns the last one, which might not be what the
player is actually using. For example, I don't have a Numpad, so all
mentions of it are of no use to me, and I'd rather have the vi keys
listed, which in turn many other players have no interest in.
You can check the current key assignments if you comment out the
DEBUG_DUMP_COMMANDS definition in chardump.cc and then create a character
dump. This will be removed once I'm finished here.
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r-- | crawl-ref/source/command.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index 981da89674..fe86234b1a 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -2123,7 +2123,6 @@ void show_butchering_help() show_specific_help( getHelpString("butchering") ); } - static void _add_formatted_keyhelp(column_composer &cols) { cols.add_formatted( |