diff options
author | Enne Walker <enne.walker@gmail.com> | 2010-06-01 11:31:59 -0400 |
---|---|---|
committer | Enne Walker <enne.walker@gmail.com> | 2010-06-01 12:58:16 -0400 |
commit | 4887d8a2cdc8a33748724fe7732d2ab97d53a5f1 (patch) | |
tree | 6269094f3140feb270c228f4bcf40add8e389543 /crawl-ref/source/tilepick.h | |
parent | 63cc52422890d554e57e565cd0606fcc0f7c930b (diff) | |
download | crawl-ref-4887d8a2cdc8a33748724fe7732d2ab97d53a5f1.tar.gz crawl-ref-4887d8a2cdc8a33748724fe7732d2ab97d53a5f1.zip |
Add wiz-only tile idx debug tooltips on dungeon.
Hovering the mouse over any cell on the dungeon display will now display the
contents of tile_fg, tile_bk_fg, and crawl_view.vbuf[x]->tile_fg (and the
corresponding background tiles too). It displays them as index, flag (as hex),
and then name (with multiple names for any mcache entries that comprise
multiple tiles). This should help debug weird tiles display issues.
Diffstat (limited to 'crawl-ref/source/tilepick.h')
-rw-r--r-- | crawl-ref/source/tilepick.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/tilepick.h b/crawl-ref/source/tilepick.h index e4d7bb4496..7c47178abf 100644 --- a/crawl-ref/source/tilepick.h +++ b/crawl-ref/source/tilepick.h @@ -47,6 +47,9 @@ int enchant_to_int(const item_def &item); // If tile has variations, select among them based upon the enchant of item. tileidx_t tileidx_enchant_equ(const item_def &item, tileidx_t tile); +// For a given fg/bg set of tile indices and a 1 character prefix, +// return index, flag, and tile name as a printable string. +std::string tile_debug_string(tileidx_t fg, tileidx_t bg, char prefix); #endif #endif |