From b0e7dda3593b5e6022799727f3eb177fae3a5987 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 15 Mar 2009 16:25:56 +0000 Subject: * Tweak shop command help for Tiles. * Hook card descriptions into database. This is far from optimal at the moment, e.g. searching for the portal card returns the Portal spell as best match. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9497 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/shopping.cc | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/shopping.cc') diff --git a/crawl-ref/source/shopping.cc b/crawl-ref/source/shopping.cc index 15fb4b87de..982cbb910c 100644 --- a/crawl-ref/source/shopping.cc +++ b/crawl-ref/source/shopping.cc @@ -105,12 +105,11 @@ static void _list_shop_keys(const std::string &purchasable, bool viewing) + (viewing ? "Examine" : "Buy"); } snprintf(buf, sizeof buf, + "[x/Esc" #ifdef USE_TILE - "[x/Esc/R-Click] exit" -#else - "[x/Esc] exit" + "/R-Click" #endif - " [!] %s %s", + "] exit [!] %s %s", (viewing ? "to select items " : "to examine items"), pkeys.c_str()); @@ -120,13 +119,13 @@ static void _list_shop_keys(const std::string &purchasable, bool viewing) cgotoxy(1, numlines, GOTO_CRT); fs = formatted_string::parse_string( + "[Enter" #ifdef USE_TILE - "[?/*] inventory [\\] known items " - "[Enter/L-Click] make purchase"); -#else - "[Enter] make purchase [\\] list known items " - "[?/*] inventory"); + "/L-Click" #endif + "] make purchase [\\] list known items " + "[?/*] inventory"); + fs.cprintf("%*s", get_number_of_cols() - fs.length() - 1, ""); fs.display(); } -- cgit v1.2.3-54-g00ecf