summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/menu.h
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-10 20:02:38 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-03-10 20:02:38 +0000
commitb2d325166ee05741620ee70de5b47104e256f0b4 (patch)
treee3146b6c6a5a4ccb6e0eb6c531842dc07d83b049 /crawl-ref/source/menu.h
parentae2a0b91978d593736cfea9b5d4ab2a6afd8c537 (diff)
downloadcrawl-ref-b2d325166ee05741620ee70de5b47104e256f0b4.tar.gz
crawl-ref-b2d325166ee05741620ee70de5b47104e256f0b4.zip
Greatly improve 'V' command:
* Add toggle to travel to items. (FR 2180269) (Basically copied from StashSearchMenu, but I couldn't work out how to change the title after the toggle.) * Display monster tiles, yay! * Space allowing, display monsters' description along with 'x' information. (Ironically, though this was copied from Tiles, it only works for ASCII at the moment.) * Right-shift all entry types by 1 instead of just InvEntry, so it's more consistent and looks better on the 'V' screen. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9409 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/menu.h')
-rw-r--r--crawl-ref/source/menu.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h
index d4bd101a47..86c3b6e556 100644
--- a/crawl-ref/source/menu.h
+++ b/crawl-ref/source/menu.h
@@ -114,7 +114,7 @@ struct MenuEntry
{
char buf[300];
snprintf(buf, sizeof buf,
- "%c - %s", hotkeys[0], text.c_str());
+ " %c - %s", hotkeys[0], text.c_str());
return std::string(buf);
}
return text;
@@ -144,10 +144,7 @@ struct MenuEntry
}
#ifdef USE_TILE
- virtual bool get_tiles(std::vector<tile_def>& tileset) const
- {
- return (false);
- }
+ virtual bool get_tiles(std::vector<tile_def>& tileset) const;
#endif
};