summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/menu.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-07-10 03:00:48 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-07-10 03:01:29 +0200
commitaf70560f38a62a524fb175e411567f138956d0d5 (patch)
tree413263d574338d648b7a373b578b9d4de3a331f4 /crawl-ref/source/menu.h
parent4417407b0926d54022eb9df3133a921eb5b0fe8a (diff)
parentc7191323ecc38c1283b9b52949a5b81b5095642a (diff)
downloadcrawl-ref-af70560f38a62a524fb175e411567f138956d0d5.tar.gz
crawl-ref-af70560f38a62a524fb175e411567f138956d0d5.zip
Merge branch 'webtiles'
Diffstat (limited to 'crawl-ref/source/menu.h')
-rw-r--r--crawl-ref/source/menu.h42
1 files changed, 21 insertions, 21 deletions
diff --git a/crawl-ref/source/menu.h b/crawl-ref/source/menu.h
index 2386f4ee34..95a9560074 100644
--- a/crawl-ref/source/menu.h
+++ b/crawl-ref/source/menu.h
@@ -15,7 +15,7 @@
#include "defines.h"
#include "libutil.h"
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
#include "tilebuf.h"
#include "tiledoll.h"
#endif
@@ -76,7 +76,7 @@ public:
bool preselected;
void *data;
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
std::vector<tile_def> tiles;
#endif
@@ -158,7 +158,7 @@ public:
return get_text();
}
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
virtual bool get_tiles(std::vector<tile_def>& tileset) const;
virtual void add_tile(tile_def tile);
@@ -185,12 +185,12 @@ class MonsterMenuEntry : public MenuEntry
public:
MonsterMenuEntry(const std::string &str, const monster* mon, int hotkey);
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
virtual bool get_tiles(std::vector<tile_def>& tileset) const;
#endif
};
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
class PlayerMenuEntry : public MenuEntry
{
public:
@@ -210,7 +210,7 @@ public:
FeatureMenuEntry(const std::string &str, const dungeon_feature_type f,
int hotkey);
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
virtual bool get_tiles(std::vector<tile_def>& tileset) const;
#endif
};
@@ -591,7 +591,7 @@ protected:
MenuItem* m_link_up;
MenuItem* m_link_down;
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
// Holds the conversion values to translate unit values to pixel values
unsigned int m_unit_width_pixels;
unsigned int m_unit_height_pixels;
@@ -624,7 +624,7 @@ protected:
std::string m_text;
std::string m_render_text;
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
FontBuffer m_font_buf;
#endif
};
@@ -656,7 +656,7 @@ public:
/**
* Holds an arbitary number of tiles, currently rendered on top of each other
*/
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
class TextTileItem : public TextItem
{
public:
@@ -737,7 +737,7 @@ public:
virtual bool can_be_focused();
virtual InputReturnValue process_input(int key) = 0;
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
virtual InputReturnValue handle_mouse(const MouseEvent& me) = 0;
#endif
virtual void render() = 0;
@@ -785,7 +785,7 @@ protected:
// if you need a different behaviour, pleare override the
// affected methods
std::vector<MenuItem*> m_entries;
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
// Holds the conversion values to translate unit values to pixel values
unsigned int m_unit_width_pixels;
unsigned int m_unit_height_pixels;
@@ -804,7 +804,7 @@ public:
virtual ~MenuFreeform();
virtual InputReturnValue process_input(int key);
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
virtual InputReturnValue handle_mouse(const MouseEvent& me);
#endif
virtual void render();
@@ -844,7 +844,7 @@ public:
virtual ~MenuScroller();
virtual InputReturnValue process_input(int key);
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
virtual InputReturnValue handle_mouse(const MouseEvent& me);
#endif
virtual void render();
@@ -884,7 +884,7 @@ public:
const std::string& name);
virtual InputReturnValue process_input(int key);
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
virtual InputReturnValue handle_mouse(const MouseEvent& me);
#endif
virtual void render();
@@ -920,7 +920,7 @@ protected:
};
/**
- * Class for mouse over tooltips, does nothing if USE_TILE is not defined
+ * Class for mouse over tooltips, does nothing if USE_TILE_LOCAL is not defined
* TODO: actually implement render() and _place_items()
*/
class MenuTooltip : public MenuDescriptor
@@ -929,14 +929,14 @@ public:
MenuTooltip(PrecisionMenu* parent);
virtual ~MenuTooltip();
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
virtual InputReturnValue handle_mouse(const MouseEvent& me);
#endif
virtual void render();
protected:
virtual void _place_items();
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
ShapeBuffer m_background;
FontBuffer m_font_buf;
#endif
@@ -955,7 +955,7 @@ public:
virtual ~BoxMenuHighlighter();
virtual InputReturnValue process_input(int key);
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
virtual InputReturnValue handle_mouse(const MouseEvent& me);
#endif
virtual void render();
@@ -988,7 +988,7 @@ protected:
PrecisionMenu* m_parent;
MenuItem* m_active_item;
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
LineBuffer m_line_buf;
#else
COLORS m_old_bg_colour;
@@ -1005,7 +1005,7 @@ public:
protected:
virtual void _place_items();
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
// Tiles does not seem to support background colors
ShapeBuffer m_shape_buf;
#endif
@@ -1049,7 +1049,7 @@ public:
virtual void draw_menu();
virtual bool process_key(int key);
-#ifdef USE_TILE
+#ifdef USE_TILE_LOCAL
virtual int handle_mouse(const MouseEvent& me);
#endif