summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-12-24 12:48:40 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-12-24 12:48:40 +0000
commitad916910b34d91db78c5eb6dc966745117bd0d6f (patch)
tree7cbc1f41d49a5715b723c325fdbf6f3aa7e5ebd9 /src/gui
parent657f2b37b3b0b349cc7094541c6ade7d3d8e329d (diff)
downloadmana-ad916910b34d91db78c5eb6dc966745117bd0d6f.tar.gz
mana-ad916910b34d91db78c5eb6dc966745117bd0d6f.tar.bz2
mana-ad916910b34d91db78c5eb6dc966745117bd0d6f.tar.xz
mana-ad916910b34d91db78c5eb6dc966745117bd0d6f.zip
Disabled non-functional item shortcut window.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/itemcontainer.cpp12
-rw-r--r--src/gui/menuwindow.cpp12
2 files changed, 12 insertions, 12 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index 0e203905..74d1abd1 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -30,7 +30,7 @@
#include "../graphics.h"
#include "../inventory.h"
#include "../item.h"
-#include "../itemshortcut.h"
+//#include "../itemshortcut.h"
#include "../log.h"
#include "../resources/image.h"
@@ -198,7 +198,7 @@ ItemContainer::mousePressed(gcn::MouseEvent &event)
int my = event.getY();
int index = mx / gridWidth + ((my / gridHeight) * columns) + 2;
- itemShortcut->setItemSelected(NULL);
+ //itemShortcut->setItemSelected(NULL);
// Fix for old server, it should be: if (index >= mMaxItems)
if (index > mMaxItems + 1)
{
@@ -207,9 +207,9 @@ ItemContainer::mousePressed(gcn::MouseEvent &event)
}
Item *item = mInventory->getItem(index);
setSelectedItem(item);
- if (!item->isEquipment())
- {
- itemShortcut->setItemSelected(item);
- }
+ //if (!item->isEquipment())
+ //{
+ // itemShortcut->setItemSelected(item);
+ //}
}
}
diff --git a/src/gui/menuwindow.cpp b/src/gui/menuwindow.cpp
index 2043b7d1..e4d101c8 100644
--- a/src/gui/menuwindow.cpp
+++ b/src/gui/menuwindow.cpp
@@ -35,7 +35,7 @@ extern Window *inventoryWindow;
extern Window *equipmentWindow;
extern Window *skillDialog;
extern Window *statusWindow;
-extern Window *itemShortcutWindow;
+//extern Window *itemShortcutWindow;
namespace {
struct MenuWindowListener : public gcn::ActionListener
@@ -62,7 +62,7 @@ MenuWindow::MenuWindow():
"Equipment",
"Inventory",
"Skills",
- "Shortcut",
+// "Shortcut",
"Setup",
0
};
@@ -107,10 +107,10 @@ void MenuWindowListener::action(const gcn::ActionEvent &event)
{
window = skillDialog;
}
- else if (event.getId() == "Shortcut")
- {
- window = itemShortcutWindow;
- }
+ //else if (event.getId() == "Shortcut")
+ //{
+ // window = itemShortcutWindow;
+ //}
else if (event.getId() == "Setup")
{
window = setupWindow;