From 76bc1a5c994b46d8a4486a1226f681f7a4982f1c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 3 Jan 2011 19:48:48 +0200 Subject: Impliment base items tags. And show this tags in inventory. --- src/gui/inventorywindow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/gui') 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 tags = ItemDB::getTags(); + for (int f = 0; f < tags.size(); f ++) + mFilter->add(tags[f]); + +// mFilter->add("All"); if (isMainInventory()) { -- cgit v1.2.3-70-g09d2