From cf7c5ab387afef8d2ec89fd15beb3458bc06324f Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 12 Jun 2009 09:29:38 +0000 Subject: * Add a hack to make the right bracket of the weight information show up up in tiled inventories. Still doesn't work with tile_menu_icons = true but at least it looks nice otherwise. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/branches/stone_soup-0.5@9969 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/docs/options_guide.txt | 2 ++ crawl-ref/source/invent.cc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/crawl-ref/docs/options_guide.txt b/crawl-ref/docs/options_guide.txt index c11d65026f..c659e67b8c 100644 --- a/crawl-ref/docs/options_guide.txt +++ b/crawl-ref/docs/options_guide.txt @@ -1232,6 +1232,8 @@ delay_message_clear = false show_inventory_weights = false When this is set to true, inventory listings will mention the weight of each item. + Note: This option doesn't currently work for Tiles unless you use + tile_menu_icons = false. show_gold_turns = false If set to true, this option adds an extra line to the stat area diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc index 834527fc5a..3c89d39f14 100644 --- a/crawl-ref/source/invent.cc +++ b/crawl-ref/source/invent.cc @@ -218,7 +218,7 @@ std::string InvEntry::get_text() const if (Options.show_inventory_weights) { const int mass = item_mass(*item) * item->quantity; - tstr << std::setw(get_number_of_cols() - tstr.str().length() - 1) + tstr << std::setw(get_number_of_cols() - tstr.str().length() - 2) << std::right << make_stringf("(%.1f aum)", BURDEN_TO_AUM * mass); } -- cgit v1.2.3-54-g00ecf