summaryrefslogtreecommitdiff
path: root/src/gui/menuwindow.cpp
diff options
context:
space:
mode:
authorLloyd Bryant <lloyd_bryant@netzero.net>2008-07-23 17:24:18 +0000
committerLloyd Bryant <lloyd_bryant@netzero.net>2008-07-23 17:24:18 +0000
commitc9b01f907d3720ad96b2435d00a47d31e1955f53 (patch)
tree102a19400d9e3beb3e555c6521ee359b0bc52a47 /src/gui/menuwindow.cpp
parenta73a655f398ae9fae01253dec1cc1f9bb1d44ea7 (diff)
downloadmana-c9b01f907d3720ad96b2435d00a47d31e1955f53.tar.gz
mana-c9b01f907d3720ad96b2435d00a47d31e1955f53.tar.bz2
mana-c9b01f907d3720ad96b2435d00a47d31e1955f53.tar.xz
mana-c9b01f907d3720ad96b2435d00a47d31e1955f53.zip
Added viewable cape/misc1/misc2, Chat button in GUI
Diffstat (limited to 'src/gui/menuwindow.cpp')
-rw-r--r--src/gui/menuwindow.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/menuwindow.cpp b/src/gui/menuwindow.cpp
index c3af6896..2d07e632 100644
--- a/src/gui/menuwindow.cpp
+++ b/src/gui/menuwindow.cpp
@@ -36,6 +36,7 @@ extern Window *equipmentWindow;
extern Window *skillDialog;
extern Window *statusWindow;
extern Window *itemShortcutWindow;
+extern Window *chatWindow;
namespace {
struct MenuWindowListener : public gcn::ActionListener
@@ -58,6 +59,7 @@ MenuWindow::MenuWindow():
// Buttons
const char *buttonNames[] =
{
+ "Chat",
"Status",
"Equipment",
"Inventory",
@@ -91,7 +93,11 @@ void MenuWindowListener::action(const gcn::ActionEvent &event)
{
Window *window = NULL;
- if (event.getId() == "Status")
+ if (event.getId() == "Chat")
+ {
+ window = chatWindow;
+ }
+ else if (event.getId() == "Status")
{
window = statusWindow;
}