diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-01-03 19:48:48 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-01-03 20:00:51 +0200 |
commit | 76bc1a5c994b46d8a4486a1226f681f7a4982f1c (patch) | |
tree | a2326dcfe0aa2208c03d7432168bca9ae35b5da4 /src/gui | |
parent | 3436558bfd7bbbe0c63a0a89330b099b7c9da7ed (diff) | |
download | plus-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')
-rw-r--r-- | src/gui/inventorywindow.cpp | 6 |
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()) { |