From 2f63d14e46fcb39b0021fb209f85207cddf7b404 Mon Sep 17 00:00:00 2001 From: pauldubois Date: Mon, 7 Apr 2008 06:20:32 +0000 Subject: 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 --- crawl-ref/source/menu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/menu.h') diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h index 05c545747e..e1af2f760e 100644 --- a/crawl-ref/source/menu.h +++ b/crawl-ref/source/menu.h @@ -19,6 +19,8 @@ #include "defines.h" #include "libutil.h" +class formatted_string; + enum MenuEntryLevel { MEL_NONE = -1, @@ -218,6 +220,7 @@ public: void set_tag(const std::string& t) { tag = t; } bool draw_title_suffix( const std::string &s, bool titlefirst = true ); + bool draw_title_suffix( const formatted_string &fs, bool titlefirst = true ); void update_title(); // Sets a replacement for the --more-- string. -- cgit v1.2.3-54-g00ecf