diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-24 08:54:31 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-24 08:54:31 +0000 |
commit | cad9c185b4714e69e47cf62275cc02146f76c4a5 (patch) | |
tree | f2188074bddd75862b8c01f5fa8095872363cdbc | |
parent | 3fc133f3d8a0688bc0f7bff3df189e6d900b4c58 (diff) | |
download | crawl-ref-cad9c185b4714e69e47cf62275cc02146f76c4a5.tar.gz crawl-ref-cad9c185b4714e69e47cf62275cc02146f76c4a5.zip |
Move around some commands.
Ctrl-Q (Tiles settings) -> Ctrl-V (was version, now ?V)
Q (quit) -> Ctrl-Q
... which frees Q for a new command "set quiver", not yet implemented.
I've updated some docs but may have overlooked something.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6110 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r-- | crawl-ref/docs/crawl_manual.txt | 4 | ||||
-rw-r--r-- | crawl-ref/source/acr.cc | 21 | ||||
-rw-r--r-- | crawl-ref/source/command.cc | 6 | ||||
-rw-r--r-- | crawl-ref/source/enum.h | 1 |
4 files changed, 20 insertions, 12 deletions
diff --git a/crawl-ref/docs/crawl_manual.txt b/crawl-ref/docs/crawl_manual.txt index 88e9bb806a..c444ae9082 100644 --- a/crawl-ref/docs/crawl_manual.txt +++ b/crawl-ref/docs/crawl_manual.txt @@ -2213,7 +2213,7 @@ level map, interlevel travel) also have help menus via '?' on their own. Saving games: S Save game with query and exit. Ctrl-X Save game without query and exit. - Q Quit without saving (you're asked before). + Ctrl-Q Quit without saving (you're asked before). Movement: direction Moves one square, direction is either one of @@ -2408,7 +2408,7 @@ Tiles: current player's equipment and any species defaults. These options are saved into the dolls.txt file. - Ctrl-Q Modify screen size preferences. These changes + Ctrl-V Modify screen size preferences. These changes are saved into the wininit.txt file. Level map ('X') diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc index 4f3b1521c8..fa2a47c612 100644 --- a/crawl-ref/source/acr.cc +++ b/crawl-ref/source/acr.cc @@ -1292,6 +1292,7 @@ static bool _cmd_is_repeatable(command_type cmd, bool is_again = false) case CMD_TOGGLE_AUTOPICKUP: case CMD_TOGGLE_FRIENDLY_PICKUP: case CMD_ADJUST_INVENTORY: + case CMD_QUIVER_ITEM: case CMD_REPLAY_MESSAGES: case CMD_REDRAW_SCREEN: case CMD_MACRO_ADD: @@ -2078,6 +2079,10 @@ void process_command( command_type cmd ) fire_thing(); break; + case CMD_QUIVER_ITEM: + mpr("Sorry, this command has not yet been implemented."); + break; + case CMD_WEAR_ARMOUR: wear_armour(); break; @@ -3452,13 +3457,13 @@ static command_type _keycode_to_command( keycode_type key ) case 'C': return CMD_CLOSE_DOOR; case 'D': return CMD_NO_CMD; case 'E': return CMD_EXPERIENCE_CHECK; - case 'F': return CMD_FULL_VIEW; + case 'F': return CMD_NO_CMD; case 'G': return CMD_INTERLEVEL_TRAVEL; case 'I': return CMD_DISPLAY_SPELLS; case 'M': return CMD_MEMORISE_SPELL; case 'O': return CMD_OPEN_DOOR; case 'P': return CMD_WEAR_JEWELLERY; - case 'Q': return CMD_QUIT; + case 'Q': return CMD_QUIVER_ITEM; case 'R': return CMD_REMOVE_JEWELLERY; case 'S': return CMD_SAVE_GAME; case 'T': return CMD_REMOVE_ARMOUR; @@ -3510,18 +3515,20 @@ static command_type _keycode_to_command( keycode_type key ) case CONTROL('C'): return CMD_CLEAR_MAP; case CONTROL('E'): return CMD_FORGET_STASH; case CONTROL('F'): return CMD_SEARCH_STASHES; + case CONTROL('G'): return CMD_FULL_VIEW; case CONTROL('I'): return CMD_NO_CMD; // Tab on most systems case CONTROL('M'): return CMD_NO_CMD; // Enter on most systems case CONTROL('O'): return CMD_DISPLAY_OVERMAP; case CONTROL('P'): return CMD_REPLAY_MESSAGES; -#ifdef USE_TILE - case CONTROL('Q'): return CMD_EDIT_PREFS; -#else - case CONTROL('Q'): return CMD_NO_CMD; -#endif + case CONTROL('Q'): return CMD_QUIT; case CONTROL('R'): return CMD_REDRAW_SCREEN; case CONTROL('S'): return CMD_MARK_STASH; case CONTROL('T'): return CMD_TOGGLE_FRIENDLY_PICKUP; +#ifdef USE_TILE + case CONTROL('V'): return CMD_EDIT_PREFS; +#else + case CONTROL('V'): return CMD_NO_CMD; +#endif case CONTROL('W'): return CMD_FIX_WAYPOINT; case CONTROL('X'): return CMD_SAVE_GAME_NOW; case CONTROL('Z'): return CMD_SUSPEND_GAME; diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc index 6afe25ab5d..473723e88c 100644 --- a/crawl-ref/source/command.cc +++ b/crawl-ref/source/command.cc @@ -1785,9 +1785,9 @@ static void _add_formatted_keyhelp(column_composer &cols) cols.add_formatted( 1, "<h>Game Saving and Quitting:\n" - "<w>S</w> : Save game and exit \n" - "<w>Q</w> : Quit without saving\n" - "<w>Ctrl-X</w> : save game without query\n", + "<w>S</w> : Save game and exit\n" + "<w>Ctrl-X</w> : Save game without query and exit\n" + "<w>Ctrl-Q</w> : Quit without saving\n", true, true, _cmdhelp_textfilter); cols.add_formatted( diff --git a/crawl-ref/source/enum.h b/crawl-ref/source/enum.h index dbd85320d0..9bc7585319 100644 --- a/crawl-ref/source/enum.h +++ b/crawl-ref/source/enum.h @@ -449,6 +449,7 @@ enum command_type CMD_WEAPON_SWAP, CMD_THROW, // unused now CMD_FIRE, + CMD_QUIVER_ITEM, CMD_WEAR_ARMOUR, CMD_REMOVE_ARMOUR, CMD_WEAR_JEWELLERY, |