From 4c540e1c4e99150305b9c5297928ed1794cec13c Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 11 Mar 2009 20:01:06 +0000 Subject: Generalize the menu toggle from InvMenu to Menu and use it to properly tie ability descriptions into the menu. Still haven't worked out how to update the titles, though. :( git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9412 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/directn.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/directn.cc') diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 2e935ce2ba..ffac5ff9c2 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -50,7 +50,7 @@ REVISION("$Rev$"); #ifdef USE_TILE #include "tiles.h" #include "tilereg.h" - #include "tilesdl.h" +// #include "tilesdl.h" #endif #include "terrain.h" #include "traps.h" @@ -663,7 +663,7 @@ void full_describe_view() if (getch() == 0) getch(); } - else // ACT_TRAVEL, here used to view database entry + else // ACT_EXECUTE, here used to view database entry { describe_monsters(*m); redraw_screen(); @@ -676,7 +676,7 @@ void full_describe_view() item_def* i = (item_def*)(sel[0]->data); if (desc_menu.menu_action == InvMenu::ACT_EXAMINE) describe_item( *i ); - else // ACT_TRAVEL + else // ACT_EXECUTE -> travel to item { const coord_def c = i->pos; start_travel( c ); @@ -692,6 +692,9 @@ void full_describe_view() InvEntry *me = new InvEntry(list_items[0]); me->set_show_glyph(false); } +#else + tiles.place_cursor(CURSOR_TUTORIAL, Region::NO_CURSOR); + tiles.clear_text_tags(TAG_TUTORIAL); #endif } -- cgit v1.2.3-54-g00ecf