From 5331993d1a4db1a03e36a6860edcad756213973b Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 28 Nov 2008 23:07:05 +0000 Subject: * Add icons for weapon brands, mostly borrowing from potions/wands and with a few new creations. :) * Move tiles for unrandarts and fixedarts into artefact/ subfolders. * Move the Knife of Accuracy into the unrandart list. * Add a lab vault containing a hungry ghost (maybe should be rarer). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7680 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/tilereg.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/tilereg.cc') diff --git a/crawl-ref/source/tilereg.cc b/crawl-ref/source/tilereg.cc index e3eb26e384..9d632c4b8e 100644 --- a/crawl-ref/source/tilereg.cc +++ b/crawl-ref/source/tilereg.cc @@ -1096,11 +1096,12 @@ void DungeonRegion::clear_overlays() InventoryTile::InventoryTile() { - tile = 0; - idx = -1; + tile = 0; + idx = -1; quantity = -1; - key = 0; - flag = 0; + key = 0; + flag = 0; + special = 0; } bool InventoryTile::empty() const @@ -1142,9 +1143,7 @@ void InventoryRegion::update(unsigned int num, InventoryTile *items) { m_items.clear(); for (unsigned int i = 0; i < num; i++) - { m_items.push_back(items[i]); - } m_need_to_pack = true; } @@ -1232,7 +1231,7 @@ void InventoryRegion::pack_verts() m_need_to_pack = false; m_verts.clear(); - // ensure the cursor has been placed + // Ensure the cursor has been placed. place_cursor(m_cursor); // Pack base separately, as it comes from a different texture... @@ -1330,6 +1329,8 @@ void InventoryRegion::pack_verts() add_quad_char('0' + c1, x, y, offset_x, offset_y); } + if (item.special) + add_quad(TEX_DEFAULT, item.special, x, y, 0, 0, false); if (item.flag & TILEI_FLAG_TRIED) add_quad(TEX_DEFAULT, TILE_TRIED, x, y, 0, TILE_Y / 2, false); @@ -2590,9 +2591,8 @@ void MenuRegion::place_entries() int string_height = m_font_entry->string_height(split); if (string_height > entry_height) - { text_sy = m_entries[i].sy; - } + m_font_buf.add(split, text_sx, text_sy); m_entries[i].ex = entry_start + column_width; -- cgit v1.2.3-54-g00ecf