diff options
author | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-25 17:47:37 +0000 |
---|---|---|
committer | ennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-10-25 17:47:37 +0000 |
commit | 7db47d41a1e8c783f0cf9aba41b835cc9950fc96 (patch) | |
tree | 1fe47a2e3e92ee58a1a49d116202192f8bfd5b6e /crawl-ref/source/tilereg.h | |
parent | b94b86b02e55c4d458a16cd95f32c943eadff57c (diff) | |
download | crawl-ref-7db47d41a1e8c783f0cf9aba41b835cc9950fc96.tar.gz crawl-ref-7db47d41a1e8c783f0cf9aba41b835cc9950fc96.zip |
More graphical menu improvements. Inventory menus now have columns. Long entries are now wrapped and then truncated.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7296 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tilereg.h')
-rw-r--r-- | crawl-ref/source/tilereg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg.h b/crawl-ref/source/tilereg.h index 4111e6152a..55205ed3e3 100644 --- a/crawl-ref/source/tilereg.h +++ b/crawl-ref/source/tilereg.h @@ -193,6 +193,7 @@ public: void set_entry(int index, const std::string &s, int colour, const MenuEntry *me); void set_offset(int lines); void set_more(const formatted_string &more); + void set_num_columns(int columns); protected: virtual void on_resize(); virtual void place_entries(); @@ -214,6 +215,7 @@ protected: FTFont *m_font_entry; formatted_string m_more; int m_mouse_idx; + int m_max_columns; bool m_dirty; std::vector<MenuRegionEntry> m_entries; |