summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tiles.h
diff options
context:
space:
mode:
authorFlorian Diebold <flodiebold@gmail.com>2011-11-05 04:15:00 +0100
committerFlorian Diebold <flodiebold@gmail.com>2011-12-08 22:52:58 +0100
commit15055ff1e639201928917d7f54f1d0a61ffad2a7 (patch)
tree7ec92e7c1219cfc3e3dc35203bdf90a09d7e8d6c /crawl-ref/source/tiles.h
parente54b525164596b6559e19fc9d86016d9bf36e983 (diff)
downloadcrawl-ref-15055ff1e639201928917d7f54f1d0a61ffad2a7.tar.gz
crawl-ref-15055ff1e639201928917d7f54f1d0a61ffad2a7.zip
Implement dedicated Menu support for Webtiles.
This is just for menus using the Menu class. It means that the menu items are laid out in html on the client side, the menu size adapts to the window of each spectator, and scrolling is done client-side.
Diffstat (limited to 'crawl-ref/source/tiles.h')
-rw-r--r--crawl-ref/source/tiles.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/crawl-ref/source/tiles.h b/crawl-ref/source/tiles.h
index 8f9a0492ef..90f15c0730 100644
--- a/crawl-ref/source/tiles.h
+++ b/crawl-ref/source/tiles.h
@@ -6,6 +6,31 @@
#ifndef TILES_H
#define TILES_H
+// The different texture types.
+enum TextureID
+{
+ TEX_FLOOR, // floor.png
+ TEX_WALL, // wall.png
+ TEX_FEAT, // feat.png
+ TEX_PLAYER, // player.png
+ TEX_DEFAULT, // main.png
+ TEX_GUI, // gui.png
+ TEX_ICONS, // icons.png
+ TEX_MAX
+};
+
+struct tile_def
+{
+ tile_def(tileidx_t _tile, TextureID _tex, int _ymax = TILE_Y)
+ : tile(_tile), tex(_tex), ymax(_ymax){}
+
+ tileidx_t tile;
+ TextureID tex;
+ int ymax;
+};
+
+TextureID get_dngn_tex(tileidx_t idx);
+
#ifdef USE_TILE_LOCAL
#include "tilesdl.h"
#elif defined(USE_TILE_WEB)