diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/char_select.cpp | 5 | ||||
-rw-r--r-- | src/gui/char_select.h | 5 |
2 files changed, 10 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) diff --git a/src/gui/char_select.h b/src/gui/char_select.h index 20105516..6784c073 100644 --- a/src/gui/char_select.h +++ b/src/gui/char_select.h @@ -57,6 +57,11 @@ class CharSelectDialog : public Window, public gcn::ActionListener void logic(); + /** + * Returns name of selected player + */ + std::string getName(); + private: Network *mNetwork; LockedArray<LocalPlayer*> *mCharInfo; |