From 7e486c26cf76ddd68ee8ceb04e9bded1bdc25242 Mon Sep 17 00:00:00 2001 From: haranp Date: Sun, 31 Dec 2006 10:08:50 +0000 Subject: 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 --- crawl-ref/source/menu.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'crawl-ref/source/menu.h') 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 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 -- cgit v1.2.3-54-g00ecf