From 82fd8b10b5d975349ddb4088f205401687d75f7b Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 29 Feb 2008 20:11:21 +0000 Subject: Fix trunk compile, and a bit of code clean-up. Oh, and filter MSGCH_PROMPT from message history. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3488 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tutorial.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/tutorial.cc') diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc index cbf885a235..0208067c95 100644 --- a/crawl-ref/source/tutorial.cc +++ b/crawl-ref/source/tutorial.cc @@ -663,6 +663,7 @@ void tutorial_finished() text = "Congrats! You survived until the end of this tutorial - be sure to " "try the other ones as well. Note that the help screen (?) " "will look different from now on. Here's a last playing hint:"; + formatted_message_history(text, MSGCH_TUTORIAL, 0, get_tutorial_cols()); more(); @@ -932,6 +933,7 @@ void tutorial_first_monster(const monsters &mon) "bow. If you have a look at your bow with v, you'll " "find an explanation of how to do this. First wield " "it, then follow the instructions."; + formatted_message_history(text, MSGCH_TUTORIAL, 0, get_tutorial_cols()); } else if (Options.tutorial_type == TUT_MAGIC_CHAR) @@ -939,6 +941,7 @@ void tutorial_first_monster(const monsters &mon) text = "However, as a conjurer you will want to deal with it using magic. " "If you have a look at your spellbook with v, you'll " "find an explanation of how to do this."; + formatted_message_history(text, MSGCH_TUTORIAL, 0, get_tutorial_cols()); } } @@ -966,12 +969,13 @@ void tutorial_first_item(const item_def &item) get_item_glyph(&item, &ch, &col); text += colourize_glyph(col, ch); + text += " "; #else // highlight item const coord_def ep = grid2view(coord_def(item.x, item.y)); tile_place_cursor(ep.x-1,ep.y-1,true); #endif - text += " is an item. If you move there and press g or " + text += "is an item. If you move there and press g or " ", you will pick it up. " #ifndef USE_TILE "Generally, items are shown by " @@ -982,6 +986,7 @@ void tutorial_first_item(const item_def &item) "automatically." "\nAny time you view an item, you can read about its " "properties and description."; + formatted_message_history(text, MSGCH_TUTORIAL, 0, get_tutorial_cols()); } -- cgit v1.2.3-54-g00ecf