diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-03-10 12:43:56 -0600 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-03-10 12:59:03 -0600 |
commit | 4676d0fe6ee938031ce13a65927718f9b53810cf (patch) | |
tree | e0cbcf26a8814d69826627528b7eb813ae789ed2 /src/gui/setup.cpp | |
parent | cabb9735f2e31b9f1f64b2496e1775d54861da36 (diff) | |
download | mana-4676d0fe6ee938031ce13a65927718f9b53810cf.tar.gz mana-4676d0fe6ee938031ce13a65927718f9b53810cf.tar.bz2 mana-4676d0fe6ee938031ce13a65927718f9b53810cf.tar.xz mana-4676d0fe6ee938031ce13a65927718f9b53810cf.zip |
Remove some SetupWindow weirdness
Diffstat (limited to 'src/gui/setup.cpp')
-rw-r--r-- | src/gui/setup.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/gui/setup.cpp b/src/gui/setup.cpp index 4798f598..f1e7a6d9 100644 --- a/src/gui/setup.cpp +++ b/src/gui/setup.cpp @@ -65,12 +65,12 @@ Setup::Setup(): btn->setPosition(x, height - btn->getHeight() - 5); add(btn); - // Disable this button when the windows aren't created yet + // Store this button, as it needs to be enabled/disabled if (!strcmp(*curBtn, "Reset Windows")) - btn->setEnabled(statusWindow != NULL); + mResetWindows = btn; } - TabbedArea *panel = new TabbedArea(); + TabbedArea *panel = new TabbedArea; panel->setDimension(gcn::Rectangle(5, 5, width - 10, height - 40)); SetupTab *tab; @@ -141,3 +141,10 @@ void Setup::action(const gcn::ActionEvent &event) tradeWindow->resetToDefaultSize(); } } + +void Setup::setInGame(bool inGame) +{ + mResetWindows->setEnabled(inGame); +} + +Setup* setupWindow; |