summaryrefslogtreecommitdiff
path: root/src/gui/menuwindow.cpp
diff options
context:
space:
mode:
authorJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-21 15:11:19 +0000
committerJoshua Langley <joshlangley[at]optusnet.com.au>2007-08-21 15:11:19 +0000
commit0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9 (patch)
treea07d923f09e8c9aa4a478e2bd572ab94edf09ae4 /src/gui/menuwindow.cpp
parent148b62c05337eaaaf3a1ead212b3792122812cee (diff)
downloadmana-client-0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9.tar.gz
mana-client-0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9.tar.bz2
mana-client-0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9.tar.xz
mana-client-0f8e80bcfe92ca39803f0443cf4b30e3f9171eb9.zip
mantis id=118 - Added Item Shortcut Bar.
Diffstat (limited to 'src/gui/menuwindow.cpp')
-rw-r--r--src/gui/menuwindow.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/menuwindow.cpp b/src/gui/menuwindow.cpp
index 943cc6f0..c7505bae 100644
--- a/src/gui/menuwindow.cpp
+++ b/src/gui/menuwindow.cpp
@@ -35,6 +35,7 @@ extern Window *inventoryWindow;
extern Window *equipmentWindow;
extern Window *skillDialog;
extern Window *statusWindow;
+extern Window *itemShortcutWindow;
namespace {
struct MenuWindowListener : public gcn::ActionListener
@@ -61,6 +62,7 @@ MenuWindow::MenuWindow():
"Equipment",
"Inventory",
"Skills",
+ "Shortcut",
"Setup",
0
};
@@ -108,11 +110,14 @@ void MenuWindowListener::action(const gcn::ActionEvent &event)
{
window = skillDialog;
}
+ else if (event.getId() == "Shortcut")
+ {
+ window = itemShortcutWindow;
+ }
else if (event.getId() == "Setup")
{
window = setupWindow;
}
-
if (window) {
window->setVisible(!window->isVisible());
if (window->isVisible()) {