diff options
author | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-07-23 17:24:18 +0000 |
---|---|---|
committer | Lloyd Bryant <lloyd_bryant@netzero.net> | 2008-07-23 17:24:18 +0000 |
commit | c9b01f907d3720ad96b2435d00a47d31e1955f53 (patch) | |
tree | 102a19400d9e3beb3e555c6521ee359b0bc52a47 /src/gui/menuwindow.cpp | |
parent | a73a655f398ae9fae01253dec1cc1f9bb1d44ea7 (diff) | |
download | mana-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.cpp | 8 |
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; } |