diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2012-10-08 14:12:55 +0200 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2012-10-08 18:11:11 +0200 |
commit | 74c35ba6f35c2ecb3e6baf8cf1a6ede7cbdda23d (patch) | |
tree | d26a4c2bc065ca3f11dbb4f1bf17ed2314993162 /crawl-ref/source/skill_menu.h | |
parent | 589acc5e30fdeb6f424fbecb3e0e7539c5bdab94 (diff) | |
download | crawl-ref-74c35ba6f35c2ecb3e6baf8cf1a6ede7cbdda23d.tar.gz crawl-ref-74c35ba6f35c2ecb3e6baf8cf1a6ede7cbdda23d.zip |
Scale the skill menu tiles.
Scale up with the tile_cell_pixels option, and scale down when the
resolution is too low (instead of disabling tiles).
Diffstat (limited to 'crawl-ref/source/skill_menu.h')
-rw-r--r-- | crawl-ref/source/skill_menu.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/crawl-ref/source/skill_menu.h b/crawl-ref/source/skill_menu.h index 3cf256eea6..7f3d859ad8 100644 --- a/crawl-ref/source/skill_menu.h +++ b/crawl-ref/source/skill_menu.h @@ -70,9 +70,10 @@ public: private: skill_type m_sk; - TextItem* m_name; #ifdef USE_TILE_LOCAL - TextTileItem* m_name_tile; + TextTileItem* m_name; +#else + TextItem* m_name; #endif NoSelectTextItem* m_level; NoSelectTextItem* m_progress; @@ -128,6 +129,9 @@ public: void add_item(TextItem* item, const int size, coord_def &coord); void cancel_help(); bool exit(); +#ifdef USE_TILE_LOCAL + int get_line_height(); +#endif int get_raw_skill_level(skill_type sk); int get_saved_skill_level(skill_type sk, bool real); skill_menu_state get_state(skill_menu_switch sw); @@ -143,6 +147,9 @@ private: coord_def m_min_coord; coord_def m_max_coord; coord_def m_pos; +#ifdef USE_TILE_LOCAL + int line_height; +#endif SkillMenuEntry m_skills[SK_ARR_LN][SK_ARR_COL]; |