diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-16 23:18:55 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2006-12-16 23:18:55 +0000 |
commit | dc53baaaf65943c6768e3ad209129609334133e8 (patch) | |
tree | cfd4ba52d94e2f2238195addaa53f80f4013f36a /src/gui/sell.cpp | |
parent | 35afca876ece89be5b282c73a200d0d3c5d27fe0 (diff) | |
download | mana-client-dc53baaaf65943c6768e3ad209129609334133e8.tar.gz mana-client-dc53baaaf65943c6768e3ad209129609334133e8.tar.bz2 mana-client-dc53baaaf65943c6768e3ad209129609334133e8.tar.xz mana-client-dc53baaaf65943c6768e3ad209129609334133e8.zip |
Subclassed ShopListBox from ListBox to get rid of some duplicated code, and
fixed a problem with scrolling to the current selection. Also aligned the text
a bit better and put the price in parenthesis.
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index 0137fdde..24556567 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -146,7 +146,8 @@ void SellDialog::addItem(Item *item, int price) ITEM_SHOP item_shop; - item_shop.name = item->getInfo().getName() + " " + toString(price) + " GP"; + item_shop.name = item->getInfo().getName() + + " (" + toString(price) + " GP)"; item_shop.price = price; item_shop.index = item->getInvIndex(); item_shop.id = item->getId(); |