summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.cc
diff options
context:
space:
mode:
authorpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-07 06:20:32 +0000
committerpauldubois <pauldubois@c06c8d41-db1a-0410-9941-cceddc491573>2008-04-07 06:20:32 +0000
commit2f63d14e46fcb39b0021fb209f85207cddf7b404 (patch)
tree9bb9d77a3394ff6b159397308aeb2f8651ecb468 /crawl-ref/source/stash.cc
parent149c6fb2d95c12bcd27c067929da23c8a8335f33 (diff)
downloadcrawl-ref-2f63d14e46fcb39b0021fb209f85207cddf7b404.tar.gz
crawl-ref-2f63d14e46fcb39b0021fb209f85207cddf7b404.zip
For David. Menu's draw_title_suffix can now accept a formatted_string
instead of a string. See example in StashSearchMenu::draw_title. If you want everything in cyan, you might want to figure out who sets the StashSearchMenu's title->color and change that, too. Added formatted_string::substr(). Lightly tested, seems to work fine. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4091 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r--crawl-ref/source/stash.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc
index 2a2e47ee0c..66629a968f 100644
--- a/crawl-ref/source/stash.cc
+++ b/crawl-ref/source/stash.cc
@@ -1605,10 +1605,10 @@ void StashSearchMenu::draw_title()
char buf[200];
snprintf(buf, 200,
- " [a-z: %s ?: change action /: change sort]",
+ "<lightgrey> [<w>a-z</w>: %s <w>?</w>: change action <w>/</w>: change sort]",
menu_action == ACT_TRAVEL ? "travel" : "examine");
- draw_title_suffix(buf, false);
+ draw_title_suffix(formatted_string::parse_string(buf), false);
}
}