diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-27 11:46:32 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-01-27 11:46:32 +0000 |
commit | 6c39c085ffd9d5d75d5d3ba7c5edb3952eef8064 (patch) | |
tree | 0d8f46a5e205d2f265df7f658a64f24722ef381d /crawl-ref/source/menu.h | |
parent | 1d78b895cd536021bae5ab96ca3a4fff30eef870 (diff) | |
download | crawl-ref-6c39c085ffd9d5d75d5d3ba7c5edb3952eef8064.tar.gz crawl-ref-6c39c085ffd9d5d75d5d3ba7c5edb3952eef8064.zip |
Added formatted_mpr(), which gives (very!) basic support for formatted
output in mpr(). This is an extreme hack, and should be redone better.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@891 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/menu.h')
-rw-r--r-- | crawl-ref/source/menu.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h index 606579c7f8..2fe96eda3a 100644 --- a/crawl-ref/source/menu.h +++ b/crawl-ref/source/menu.h @@ -44,6 +44,13 @@ struct menu_letter } }; +enum fs_op_type +{ + FSOP_COLOUR, + FSOP_CURSOR, + FSOP_TEXT +}; + class formatted_string { public: @@ -72,17 +79,10 @@ public: bool eol_ends_format = true, bool (*process_tag)(const std::string &tag) = NULL ); -private: - enum fs_op_type - { - FSOP_COLOUR, - FSOP_CURSOR, - FSOP_TEXT - }; - +public: static int get_colour(const std::string &tag); -private: +public: struct fs_op { fs_op_type type; |