diff options
Diffstat (limited to 'crawl-ref/source/menu.h')
-rw-r--r-- | crawl-ref/source/menu.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h index f169263a98..f2fbc5b359 100644 --- a/crawl-ref/source/menu.h +++ b/crawl-ref/source/menu.h @@ -47,6 +47,9 @@ struct menu_letter struct item_def; +int menu_colour(const std::string &itemtext, + const std::string &prefix = ""); + struct MenuEntry { std::string text; @@ -103,6 +106,11 @@ struct MenuEntry return text; } + virtual int highlight_colour() const + { + return (menu_colour(get_text())); + } + virtual bool selected() const { return selected_qty > 0 && quantity; @@ -403,7 +411,6 @@ protected: bool jump_to( int linenum ); }; -int menu_colour(const std::string &itemtext); int linebreak_string( std::string& s, int wrapcol, int maxcol ); int linebreak_string2( std::string& s, int maxcol ); void print_formatted_paragraph( std::string &s, int maxcol, |