diff options
author | Chris West <therealchriswest@hotmail.com> | 2013-01-03 14:50:26 +0000 |
---|---|---|
committer | Chris West <therealchriswest@hotmail.com> | 2013-01-05 16:25:24 +0000 |
commit | a8d0a723dec2bc21bc7a9ede345414a3a86cf8d7 (patch) | |
tree | 33432f0523f42b9d8a7f18c345deebd31c11dd4f /crawl-ref/source/tilereg-tab.h | |
parent | 05ee1febfb3e47621532d27b924746547a7b7518 (diff) | |
download | crawl-ref-a8d0a723dec2bc21bc7a9ede345414a3a86cf8d7.tar.gz crawl-ref-a8d0a723dec2bc21bc7a9ede345414a3a86cf8d7.zip |
added autoexplore to touch tabs
Diffstat (limited to 'crawl-ref/source/tilereg-tab.h')
-rw-r--r-- | crawl-ref/source/tilereg-tab.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crawl-ref/source/tilereg-tab.h b/crawl-ref/source/tilereg-tab.h index 34b21e6bcb..145651a354 100644 --- a/crawl-ref/source/tilereg-tab.h +++ b/crawl-ref/source/tilereg-tab.h @@ -20,7 +20,8 @@ public: TAB_OFS_MAX }; - void set_tab_region(int idx, GridRegion *reg, tileidx_t tile_tab); + int push_tab_region(GridRegion *reg, tileidx_t tile_tab); + int push_tab_button(command_type cmd, tileidx_t tile_tab); GridRegion *get_tab_region(int idx); tileidx_t get_tab_tile(int idx); void activate_tab(int idx); @@ -56,7 +57,6 @@ protected: void set_icon_pos(int idx); void reset_icons(int from_idx); - int m_active; int m_mouse_tab; bool m_use_small_layout; @@ -66,6 +66,7 @@ protected: struct TabInfo { GridRegion *reg; + command_type cmd; tileidx_t tile_tab; int ofs_y; int min_y; @@ -74,6 +75,9 @@ protected: bool enabled; }; vector<TabInfo> m_tabs; + +private: + int _push_tab(GridRegion *reg, command_type cmd, tileidx_t tile_tab); }; #endif |