diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-18 19:04:02 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-18 19:04:02 -0700 |
commit | d2b804c1a817ccdd85b4b1220bf929e9d370d774 (patch) | |
tree | 35f82a41b5107802fab3bbca7b2a59f7a3271e18 /src/gui/npcstringdialog.cpp | |
parent | d975741a095ae0dee82ff1dfdaa8e03439d7cf2b (diff) | |
download | mana-client-d2b804c1a817ccdd85b4b1220bf929e9d370d774.tar.gz mana-client-d2b804c1a817ccdd85b4b1220bf929e9d370d774.tar.bz2 mana-client-d2b804c1a817ccdd85b4b1220bf929e9d370d774.tar.xz mana-client-d2b804c1a817ccdd85b4b1220bf929e9d370d774.zip |
Fixed the NPC Integer input field, as well as cut some bull from the
NPC String class. The Integer input field was rather horribly broken to
the point where it could send invalid data, the increment and decrement
buttons didn't work, and overall it was tripping over itself. As for the
NPC String, "The Mana World" as a string is not needed to set the field
to that length, but instead fills the text field with that text for
starting. This is completely inappropriate for a text entry field, and a
more sensible default would be to leave it empty, so that people can
type in what they want without having to delete it.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/npcstringdialog.cpp')
-rw-r--r-- | src/gui/npcstringdialog.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/npcstringdialog.cpp b/src/gui/npcstringdialog.cpp index 6bca961c..53f200b0 100644 --- a/src/gui/npcstringdialog.cpp +++ b/src/gui/npcstringdialog.cpp @@ -37,7 +37,7 @@ NpcStringDialog::NpcStringDialog(): Window(_("NPC Text Request")) { - mValueField = new TextField("The Mana World"); // Just a sizing value :) + mValueField = new TextField(""); okButton = new Button(_("OK"), "ok", this); cancelButton = new Button(_("Cancel"), "cancel", this); |