summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/command.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-18 14:57:33 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-03-18 14:57:33 +0000
commitc74a157f8f99fa7fffa2547c92a76d8cb7eecdb5 (patch)
treef2cb42fae1ab3a17465e42833ffa91b5d02dbc1c /crawl-ref/source/command.cc
parentf35794fa75f96cf6c8d874581dde6c8bfba7941f (diff)
downloadcrawl-ref-c74a157f8f99fa7fffa2547c92a76d8cb7eecdb5.tar.gz
crawl-ref-c74a157f8f99fa7fffa2547c92a76d8cb7eecdb5.zip
Changes to the overview screen (%) - added abilities and made it scrollable.
Also, some more clean-up of tutorial.cc. As this involved a lot of spacing changes it was easier to just replace the file as a whole. Sorry about that. There are still some differences between the Linux and Windows versions that I don't really understand but using get_number_of_cols helps a lot. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1055 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r--crawl-ref/source/command.cc24
1 files changed, 17 insertions, 7 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc
index 3431591f1d..ddfe34fa6f 100644
--- a/crawl-ref/source/command.cc
+++ b/crawl-ref/source/command.cc
@@ -1055,8 +1055,8 @@ void list_tutorial_help()
// Page size is number of lines - one line for --more-- prompt.
cols.set_pagesize(get_number_of_lines());
- cols.add_formatted(
- 0,
+ unsigned short ch, colour;
+ std::string text =
"<h>Item types (and common commands)\n"
"<cyan>)</cyan> : hand weapons (<w>w</w>ield)\n"
"<brown>(</brown> : missiles (<w>t</w>hrow or <w>f</w>ire)\n"
@@ -1066,10 +1066,17 @@ void list_tutorial_help()
"<magenta>!</magenta> : potions (<w>q</w>uaff)\n"
"<blue>=</blue> : rings (<w>P</w>ut on and <w>R</w>emove)\n"
"<red>\"</red> : amulets (<w>P</w>ut on and <w>R</w>emove)\n"
- "<darkgrey>/</darkgrey> : wands (<w>z</w>ap)\n"
- // is it possible to replace that with e.g. Options.char_table[DNGN_ITEM_BOOK]
- "<lightcyan>+</lightcyan>, <lightcyan>:</lightcyan> : books (<w>r</w>ead, <w>M</w>emorise and <w>Z</w>ap)\n"
- "<brown>\\</brown>, <brown>|</brown> : staves, rods (<w>w</w>ield and <w>E</w>voke)\n"
+ "<darkgrey>/</darkgrey> : wands (<w>z</w>ap)\n"
+ "<lightcyan>";
+ get_item_symbol(DNGN_ITEM_BOOK, &ch, &colour);
+ snprintf(info, INFO_SIZE, "%c", ch);
+ text += info;
+ text += "</lightcyan> : books (<w>r</w>ead, <w>M</w>emorise and <w>Z</w>ap)\n"
+ "<brown>";
+ get_item_symbol(DNGN_ITEM_STAVE, &ch, &colour);
+ snprintf(info, INFO_SIZE, "%c", ch);
+ text += info;
+ text += "</brown> : staves, rods (<w>w</w>ield and <w>E</w>voke)\n"
"\n"
"<h>Movement and attacking\n"
"Use the <w>numpad</w> for movement (try both\n"
@@ -1078,10 +1085,13 @@ void list_tutorial_help()
" <w>yubn</w> : diagonal movement.\n"
"Walking into a monster will attack it\n"
"with the wielded weapon or barehanded.\n"
- "For ranged attacks use either\n"
+ "For ranged attacks use either\n"
"<w>f</w> to launch missiles (like arrows)\n"
"<w>t</w> to throw items by hand (like darts)\n"
"<w>Z</w> to cast spells (<w>Z?</w> lists spells).\n",
+
+ cols.add_formatted(
+ 0, text.c_str(),
true, true, cmdhelp_textfilter);
cols.add_formatted(