summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-03 19:48:48 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-03 20:00:51 +0200
commit76bc1a5c994b46d8a4486a1226f681f7a4982f1c (patch)
treea2326dcfe0aa2208c03d7432168bca9ae35b5da4 /src/gui/inventorywindow.cpp
parent3436558bfd7bbbe0c63a0a89330b099b7c9da7ed (diff)
downloadplus-76bc1a5c994b46d8a4486a1226f681f7a4982f1c.tar.gz
plus-76bc1a5c994b46d8a4486a1226f681f7a4982f1c.tar.bz2
plus-76bc1a5c994b46d8a4486a1226f681f7a4982f1c.tar.xz
plus-76bc1a5c994b46d8a4486a1226f681f7a4982f1c.zip
Impliment base items tags. And show this tags in inventory.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 8ae9c0f32..3930ef207 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -96,7 +96,11 @@ InventoryWindow::InventoryWindow(Inventory *inventory):
mFilterLabel = new Label(_("Filter:"));
- mFilter->add("All");
+ std::vector<std::string> tags = ItemDB::getTags();
+ for (int f = 0; f < tags.size(); f ++)
+ mFilter->add(tags[f]);
+
+// mFilter->add("All");
if (isMainInventory())
{