diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-11-29 12:43:17 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2006-11-29 12:43:17 +0000 |
commit | b19ebc792ea3d2b9fc0cabdc68a0534964f1a21a (patch) | |
tree | 4beb99a92c107b2db42559df16d8b1cb77fff123 /crawl-ref/source/menu.h | |
parent | b73661584c513f7b3c02a793dc7a20778e72909d (diff) | |
download | crawl-ref-b19ebc792ea3d2b9fc0cabdc68a0534964f1a21a.tar.gz crawl-ref-b19ebc792ea3d2b9fc0cabdc68a0534964f1a21a.zip |
[1602285] Fixed newgame slider bugs.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@526 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/menu.h')
-rw-r--r-- | crawl-ref/source/menu.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h index 1b01fa1273..7ab4e3bc0e 100644 --- a/crawl-ref/source/menu.h +++ b/crawl-ref/source/menu.h @@ -4,6 +4,7 @@ #include <string> #include <vector> #include <algorithm> +#include <time.h> #include "AppHdr.h" #include "externs.h" #include "defines.h" @@ -337,6 +338,12 @@ protected: int item_colour(int index, const MenuEntry *me) const; void draw_stock_item(int index, const MenuEntry *me) const; void draw_menu(); + void show_less(); + void show_more(); + void calc_y_offset(); + void adjust_pagesizes(int rdepth = 3); + int entry_end() const; + void fill_line() const; void new_selection(int nsel); bool move_selection(int nsel); @@ -348,7 +355,7 @@ protected: bool is_set(int flag) const; void select_items( int key, int qty ); - bool fix_entry(); + bool fix_entry(int rdepth = 3); bool process_key( int keyin ); int post_process(int key); @@ -359,6 +366,9 @@ protected: formatted_string less; int starty, endy; int selected; + bool need_less, need_more; + int oldselect; + time_t lastkey; std::string search; }; |