diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2010-12-22 16:03:52 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2010-12-22 21:53:59 +0100 |
commit | d853c1fc54d911db30ff6302f9cc4fe68cd8c3c5 (patch) | |
tree | 60f63dbed8a4449c0350caf0192b09ac1095758e /crawl-ref/source/tilereg-tab.h | |
parent | f9cbe282823c7b38b5ca691c4d7a12afc2f22e00 (diff) | |
download | crawl-ref-d853c1fc54d911db30ff6302f9cc4fe68cd8c3c5.tar.gz crawl-ref-d853c1fc54d911db30ff6302f9cc4fe68cd8c3c5.zip |
Fix tab icons position when one is disabled.
Diffstat (limited to 'crawl-ref/source/tilereg-tab.h')
-rw-r--r-- | crawl-ref/source/tilereg-tab.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/tilereg-tab.h b/crawl-ref/source/tilereg-tab.h index 22360c311c..4d68eb80a0 100644 --- a/crawl-ref/source/tilereg-tab.h +++ b/crawl-ref/source/tilereg-tab.h @@ -53,6 +53,9 @@ protected: bool active_is_valid() const; // Returns the tab the mouse is over, -1 if none. int get_mouseover_tab(MouseEvent &event) const; + void set_icon_pos(int idx); + void reset_icons(int from_idx); + int m_active; int m_mouse_tab; @@ -65,6 +68,7 @@ protected: int ofs_y; int min_y; int max_y; + int height; bool enabled; }; std::vector<TabInfo> m_tabs; |