diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-11 20:01:06 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-03-11 20:01:06 +0000 |
commit | 4c540e1c4e99150305b9c5297928ed1794cec13c (patch) | |
tree | 3ce5ba4f11d96ba590256bdd446ae8204091a0a7 /crawl-ref/source/directn.cc | |
parent | f792f9b19c0dcdbe4166ad0dc543f704822bfa29 (diff) | |
download | crawl-ref-4c540e1c4e99150305b9c5297928ed1794cec13c.tar.gz crawl-ref-4c540e1c4e99150305b9c5297928ed1794cec13c.zip |
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
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r-- | crawl-ref/source/directn.cc | 9 |
1 files changed, 6 insertions, 3 deletions
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 } |