diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-31 10:08:50 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-12-31 10:08:50 +0000 |
commit | 7e486c26cf76ddd68ee8ceb04e9bded1bdc25242 (patch) | |
tree | c9edae284a4937b9b22308a89f380b23b510ec18 /crawl-ref/source/menu.h | |
parent | 19f993c7183042c4666569fce41f7dbf39a61522 (diff) | |
download | crawl-ref-7e486c26cf76ddd68ee8ceb04e9bded1bdc25242.tar.gz crawl-ref-7e486c26cf76ddd68ee8ceb04e9bded1bdc25242.zip |
Put tables.txt into the help (hotkeyed to 's', for 'skills'.)
Made help accessible from the race/class choosing screens by '+'.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@755 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/menu.h')
-rw-r--r-- | crawl-ref/source/menu.h | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h index b7194385f8..a67cca68e9 100644 --- a/crawl-ref/source/menu.h +++ b/crawl-ref/source/menu.h @@ -414,6 +414,10 @@ private: std::vector<formatted_string> flines; }; +// This class is for when (some of) your items are formatted, and +// selection is impossible...in other words, you just want a browser. +// Hotkeys can be set on menu items, in which case you can jump +// to them by pressing the appropriate key. class formatted_scroller : public Menu { public: @@ -425,20 +429,11 @@ public: virtual ~formatted_scroller(); protected: virtual void draw_index_item(int index, const MenuEntry* me) const; + virtual bool process_key( int keyin ); + bool jump_to( int linenum ); }; int menu_colour(const std::string &itemtext); int linebreak_string( std::string& s, int wrapcol, int maxcol ); -// Idea: Menu entries with the hotkey set will jump to that -// entry when the hotkey is pressed. -class menu_browser : public Menu -{ -public: - menu_browser() { flags &= (~MF_EASY_EXIT); } -protected: - virtual bool process_key( int keyin ); - bool jump_to( int linenum ); -}; - #endif |