summaryrefslogtreecommitdiff
path: root/src/gui/char_select.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-25 21:31:57 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2006-08-25 21:31:57 +0000
commitb08056a18524d65924e2eb3e3ea4b7843e492cca (patch)
tree5e7186eb1dcf59f51f52370ab179a15bfd3be8f5 /src/gui/char_select.cpp
parent833abc3732c87ed4822fa31065f84d857e9018cc (diff)
downloadmana-b08056a18524d65924e2eb3e3ea4b7843e492cca.tar.gz
mana-b08056a18524d65924e2eb3e3ea4b7843e492cca.tar.bz2
mana-b08056a18524d65924e2eb3e3ea4b7843e492cca.tar.xz
mana-b08056a18524d65924e2eb3e3ea4b7843e492cca.zip
Applied patch by Matthias, adding --playername command line option.
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r--src/gui/char_select.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp
index e6a6a381..c52f73a9 100644
--- a/src/gui/char_select.cpp
+++ b/src/gui/char_select.cpp
@@ -228,6 +228,11 @@ void CharSelectDialog::logic()
updatePlayerInfo();
}
+std::string CharSelectDialog::getName()
+{
+ return mNameLabel->getCaption();
+}
+
CharCreateDialog::CharCreateDialog(Window *parent, int slot, Network *network,
unsigned char sex):
Window("Create Character", true, parent), mNetwork(network), mSlot(slot)