summaryrefslogtreecommitdiff
path: root/src/gui/char_select.cpp
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-30 02:04:39 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2006-01-30 02:04:39 +0000
commit093d95683bfcbbff6e0ddd87414e2cd723f17dc9 (patch)
treec6d07ce0bb312c7e4d7e165ee5c1cb348a6e44fa /src/gui/char_select.cpp
parent69ccb03b44f324f17d02b9e27e71c34850f71139 (diff)
downloadmana-093d95683bfcbbff6e0ddd87414e2cd723f17dc9.tar.gz
mana-093d95683bfcbbff6e0ddd87414e2cd723f17dc9.tar.bz2
mana-093d95683bfcbbff6e0ddd87414e2cd723f17dc9.tar.xz
mana-093d95683bfcbbff6e0ddd87414e2cd723f17dc9.zip
A few cleanups and simplifications.
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r--src/gui/char_select.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp
index b86a01e3..e3f4766e 100644
--- a/src/gui/char_select.cpp
+++ b/src/gui/char_select.cpp
@@ -33,7 +33,6 @@
#include "ok_dialog.h"
#include "playerbox.h"
#include "textfield.h"
-#include "windowcontainer.h"
#include "../game.h"
#include "../localplayer.h"
@@ -54,8 +53,8 @@ class CharDeleteConfirm : public ConfirmDialog
};
CharDeleteConfirm::CharDeleteConfirm(CharSelectDialog *m):
- ConfirmDialog(m,
- "Confirm", "Are you sure you want to delete this character?"),
+ ConfirmDialog("Confirm", "Are you sure you want to delete this character?",
+ NULL, m),
master(m)
{
}
@@ -316,15 +315,15 @@ void CharCreateDialog::action(const std::string& eventId)
// Attempt to create the character
createButton->setEnabled(false);
attemptCharCreate();
- windowContainer->scheduleDelete(this);
+ scheduleDelete();
}
else {
- new OkDialog(this, "Error",
- "Your name needs to be at least 4 characters.");
+ new OkDialog("Error",
+ "Your name needs to be at least 4 characters.", NULL, this);
}
}
else if (eventId == "cancel") {
- windowContainer->scheduleDelete(this);
+ scheduleDelete();
}
else if (eventId == "nextcolor") {
playerBox->hairColor++;