summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilereg.h
diff options
context:
space:
mode:
authorJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-02-14 23:33:38 +0100
committerJohanna Ploog <j-p-e-g@users.sourceforge.net>2010-02-14 23:37:33 +0100
commit5d55bfa42f2b181e25d92b5b825d7816734eb844 (patch)
treef44556447cce7f9ace8db6089fc516ad349b1f2e /crawl-ref/source/tilereg.h
parent8d42d33ae0001705105cb29a61bc0b10bde1647d (diff)
downloadcrawl-ref-5d55bfa42f2b181e25d92b5b825d7816734eb844.tar.gz
crawl-ref-5d55bfa42f2b181e25d92b5b825d7816734eb844.zip
Always show 21 cells in the Tiles' spell display. (22 with Amnesia.)
This should make it more obvious that the number of spell slots is limited and how many more spells you'll be able to fit. Also print a special message when switching tabs and the new display is empty, for items and spells. (Memorise being handled elsewhere.)
Diffstat (limited to 'crawl-ref/source/tilereg.h')
-rw-r--r--crawl-ref/source/tilereg.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/tilereg.h b/crawl-ref/source/tilereg.h
index ca0a1cf7b7..5213f3b616 100644
--- a/crawl-ref/source/tilereg.h
+++ b/crawl-ref/source/tilereg.h
@@ -390,8 +390,11 @@ public:
virtual int handle_mouse(MouseEvent &event);
virtual bool update_tip_text(std::string &tip);
virtual bool update_alt_text(std::string &alt);
+ virtual bool check_memorise();
protected:
+ bool memorise;
+
virtual void pack_buffers();
virtual void draw_tag(int item_idx);
};
@@ -400,7 +403,7 @@ class MemoriseRegion : public SpellRegion
{
public:
MemoriseRegion(ImageManager *im, FTFont *tag_font,
- int tile_x, int tile_y);
+ int tile_x, int tile_y);
virtual void update();
virtual int handle_mouse(MouseEvent &event);