summaryrefslogtreecommitdiff
path: root/src/gui/inventorywindow.cpp
diff options
context:
space:
mode:
authorDavid Athay <ko2fan@gmail.com>2009-01-13 12:48:36 +0000
committerDavid Athay <ko2fan@gmail.com>2009-01-13 12:48:36 +0000
commitdb37dcd73f3116917584e81a474f70e0d0786bc4 (patch)
treee1b03485652de7a129f6c9277a973e1d468b7a16 /src/gui/inventorywindow.cpp
parent8d6cc0162fec250743e6491fb4b1e2f07c7657c2 (diff)
downloadmana-client-db37dcd73f3116917584e81a474f70e0d0786bc4.tar.gz
mana-client-db37dcd73f3116917584e81a474f70e0d0786bc4.tar.bz2
mana-client-db37dcd73f3116917584e81a474f70e0d0786bc4.tar.xz
mana-client-db37dcd73f3116917584e81a474f70e0d0786bc4.zip
Added WoW style item adding to chat window. Right Ctrl and Left click to put the item in the chat input. Left click the item link to show a popup description, and click the link again to remove the popup.
Diffstat (limited to 'src/gui/inventorywindow.cpp')
-rw-r--r--src/gui/inventorywindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 1e3c4084..1765eeea 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -51,7 +51,8 @@
InventoryWindow::InventoryWindow():
Window(_("Inventory")),
- mSplit(false)
+ mSplit(false),
+ mItemDesc(false)
{
setWindowName("Inventory");
setResizable(false);
@@ -200,6 +201,7 @@ void InventoryWindow::keyPressed(gcn::KeyEvent &event)
case Key::LEFT_SHIFT:
case Key::RIGHT_SHIFT:
mSplit = true;
+ break;
}
}
@@ -210,5 +212,6 @@ void InventoryWindow::keyReleased(gcn::KeyEvent &event)
case Key::LEFT_SHIFT:
case Key::RIGHT_SHIFT:
mSplit = false;
+ break;
}
}