summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-31 01:55:31 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-31 01:55:31 +0300
commitc01b3f215a9ec7e5ebceac8550c1e18c0a2b7435 (patch)
tree5c4c3a4b228a589c1effd98afcde5d3799801aaa /src
parent0fd7a7f6b322fcf98297dbc64632e009afb6d4ac (diff)
downloadplus-c01b3f215a9ec7e5ebceac8550c1e18c0a2b7435.tar.gz
plus-c01b3f215a9ec7e5ebceac8550c1e18c0a2b7435.tar.bz2
plus-c01b3f215a9ec7e5ebceac8550c1e18c0a2b7435.tar.xz
plus-c01b3f215a9ec7e5ebceac8550c1e18c0a2b7435.zip
Add size limit to nick in char creation dialog.
Diffstat (limited to 'src')
-rw-r--r--src/gui/charcreatedialog.cpp1
-rw-r--r--src/gui/charcreatedialog.h3
2 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp
index 641e07db6..74a5a1f1f 100644
--- a/src/gui/charcreatedialog.cpp
+++ b/src/gui/charcreatedialog.cpp
@@ -83,6 +83,7 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *parent, int slot):
updateHair();
mNameField = new TextField("");
+ mNameField->setMaximum(24);
mNameLabel = new Label(_("Name:"));
// TRANSLATORS: This is a narrow symbol used to denote 'next'.
// You may change this symbol if your language uses another.
diff --git a/src/gui/charcreatedialog.h b/src/gui/charcreatedialog.h
index 065b532c4..7bb7b7fed 100644
--- a/src/gui/charcreatedialog.h
+++ b/src/gui/charcreatedialog.h
@@ -37,6 +37,7 @@
class LocalPlayer;
class PlayerBox;
+class TextField;
/**
* Character creation dialog.
@@ -90,7 +91,7 @@ class CharCreateDialog : public Window, public gcn::ActionListener
CharSelectDialog *mCharSelectDialog;
- gcn::TextField *mNameField;
+ TextField *mNameField;
gcn::Label *mNameLabel;
gcn::Button *mNextHairColorButton;
gcn::Button *mPrevHairColorButton;