summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/menu.cc
diff options
context:
space:
mode:
authorChris Oelmueller <chris.oelmueller@gmail.com>2013-08-24 07:58:30 +0200
committerNeil Moore <neil@s-z.org>2013-09-21 01:30:51 -0400
commitc6de1386fa331d59c58b1d3054ffdaeab3268517 (patch)
tree615e5bca957b4a717be727c48308bdf6078240fe /crawl-ref/source/menu.cc
parentec0fa00cfee16130cd57b80c48cf5ca3bcd2fcf1 (diff)
downloadcrawl-ref-c6de1386fa331d59c58b1d3054ffdaeab3268517.tar.gz
crawl-ref-c6de1386fa331d59c58b1d3054ffdaeab3268517.zip
Condense some duplicated menu code for formatted_scroller
Also re-align, and highlight input keys as in lots of other places. Show this improved -more- line for viewing character notes, too. The TODO was removed as well because the only effect of dynamically changing displayed "help" information like this is player confusion. Static information works better when it comes to legends.
Diffstat (limited to 'crawl-ref/source/menu.cc')
-rw-r--r--crawl-ref/source/menu.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/crawl-ref/source/menu.cc b/crawl-ref/source/menu.cc
index fe756b53d2..1c94d15913 100644
--- a/crawl-ref/source/menu.cc
+++ b/crawl-ref/source/menu.cc
@@ -248,6 +248,21 @@ void Menu::set_more(const formatted_string &fs)
more = fs;
}
+void Menu::set_more()
+{
+ set_more(formatted_string::parse_string(
+#ifdef USE_TILE_LOCAL
+ "<cyan>[ <w>+</w>, <w>></w>, <w>Space</w> or <w>L-click</w>: Page down."
+ " <w>-</w> or <w><<</w>: Page up."
+ " <w>Esc</w> or <w>R-click</w> exits.]"
+#else
+ "<cyan>[ <w>+</w>, <w>></w> or <w>Space</w>: Page down."
+ " <w>-</w> or <w><<</w>: Page up."
+ " <w>Esc</w> exits.]"
+#endif
+ ));
+}
+
void Menu::set_highlighter(MenuHighlighter *mh)
{
if (highlighter != mh)