diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-05-14 18:57:32 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-05-14 18:57:32 +0000 |
commit | 2d648c5dc29a1ceae154194c23c799c7076894b4 (patch) | |
tree | f6c31a30260b80713257be211b139263b3291098 /src/gui/setup.cpp | |
parent | 41906acb990895831e3b2c39102f41c9b580ae10 (diff) | |
download | mana-client-2d648c5dc29a1ceae154194c23c799c7076894b4.tar.gz mana-client-2d648c5dc29a1ceae154194c23c799c7076894b4.tar.bz2 mana-client-2d648c5dc29a1ceae154194c23c799c7076894b4.tar.xz mana-client-2d648c5dc29a1ceae154194c23c799c7076894b4.zip |
Added ability to define friends, players you want to ignore or disregard and
configure whether trading is allowed. Based on new popup code, configuration
improvements to store hierarchical data and a table model.
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r-- | src/gui/setup.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp index 3089e54a..54bf01f4 100644 --- a/src/gui/setup.cpp +++ b/src/gui/setup.cpp @@ -30,9 +30,11 @@ #include "setup_joystick.h" #include "setup_video.h" #include "setup_keyboard.h" +#include "setup_players.h" #include "tabbedcontainer.h" #include "../utils/dtor.h" +#include <iostream> extern Window *statusWindow; extern Window *minimap; @@ -46,7 +48,7 @@ Setup::Setup(): Window("Setup") { setCloseButton(true); - int width = 250; + int width = 310; int height = 245; setContentSize(width, height); @@ -62,7 +64,7 @@ Setup::Setup(): } TabbedContainer *panel = new TabbedContainer(); - panel->setDimension(gcn::Rectangle(5, 5, 250, 205)); + panel->setDimension(gcn::Rectangle(5, 5, width, 205)); panel->setOpaque(false); SetupTab *tab; @@ -83,6 +85,10 @@ Setup::Setup(): panel->addTab(tab, "Keyboard"); mTabs.push_back(tab); + tab = new Setup_Players(); + panel->addTab(tab, "Players"); + mTabs.push_back(tab); + add(panel); setLocationRelativeTo(getParent()); |