diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-10-08 15:17:50 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-10-08 18:11:11 +0200 |
commit | 4fa33068a4e812ae36422af806e84416bd92b421 (patch) | |
tree | b7fa7c7a4c31deb2194cf4e3e85a5badd85c21c1 /crawl-ref/source/skill_menu.h | |
parent | 9966aa71c571ff24f06802f12a3ac15ca45d7333 (diff) | |
download | crawl-ref-4fa33068a4e812ae36422af806e84416bd92b421.tar.gz crawl-ref-4fa33068a4e812ae36422af806e84416bd92b421.zip |
Skill menu: map shift-click and right-click to single select.
Does the same as shift-letter.
Diffstat (limited to 'crawl-ref/source/skill_menu.h')
-rw-r--r-- | crawl-ref/source/skill_menu.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/crawl-ref/source/skill_menu.h b/crawl-ref/source/skill_menu.h index 107e660ad3..84f5d5f92f 100644 --- a/crawl-ref/source/skill_menu.h +++ b/crawl-ref/source/skill_menu.h @@ -48,6 +48,16 @@ enum skill_menu_switch class SkillMenu; +#ifdef USE_TILE_LOCAL +class SkillTextTileItem : public TextTileItem +{ +public: + SkillTextTileItem() {}; +protected: + bool handle_mouse(const MouseEvent& me); +}; +#endif + class SkillMenuEntry { public: @@ -70,7 +80,7 @@ private: skill_type m_sk; #ifdef USE_TILE_LOCAL - TextTileItem* m_name; + SkillTextTileItem* m_name; #else TextItem* m_name; #endif |