summaryrefslogtreecommitdiff
path: root/src/gui/char_select.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-24 12:32:19 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-24 12:32:19 +0000
commit2debd445c71e65265359b6471795cab2cb2c7086 (patch)
tree695f276a3ae343f2a182dd2d3bb75afa6254f899 /src/gui/char_select.h
parent15c9ca70fa37dc8bae6b9ebd63209f5d0f7b0756 (diff)
downloadmana-client-2debd445c71e65265359b6471795cab2cb2c7086.tar.gz
mana-client-2debd445c71e65265359b6471795cab2cb2c7086.tar.bz2
mana-client-2debd445c71e65265359b6471795cab2cb2c7086.tar.xz
mana-client-2debd445c71e65265359b6471795cab2cb2c7086.zip
Added trimming of name for new character creation and of chat messages
appearing above players. Also improved resize mouse cursor indication, removing duplicated code and fixing indicator above resize grip.
Diffstat (limited to 'src/gui/char_select.h')
-rw-r--r--src/gui/char_select.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/gui/char_select.h b/src/gui/char_select.h
index 754362c3..00b1c51d 100644
--- a/src/gui/char_select.h
+++ b/src/gui/char_select.h
@@ -60,11 +60,6 @@ class CharSelectDialog : public Window, public gcn::ActionListener
bool selectByName(const std::string &name);
- /**
- * Returns name of selected player
- */
- std::string getName();
-
private:
Network *mNetwork;
LockedArray<LocalPlayer*> *mCharInfo;
@@ -119,9 +114,6 @@ class CharCreateDialog : public Window, public gcn::ActionListener
void
action(const gcn::ActionEvent &event);
- const std::string&
- getName();
-
/**
* Unlocks the dialog, enabling the create character button again.
*/
@@ -129,6 +121,16 @@ class CharCreateDialog : public Window, public gcn::ActionListener
unlock();
private:
+ /**
+ * Returns the name of the character to create.
+ */
+ std::string getName();
+
+ /**
+ * Communicate character creation to the server.
+ */
+ void attemptCharCreate();
+
Network *mNetwork;
gcn::TextField *mNameField;
gcn::Label *mNameLabel;
@@ -145,11 +147,6 @@ class CharCreateDialog : public Window, public gcn::ActionListener
PlayerBox *mPlayerBox;
int mSlot;
-
- /**
- * Communicate character creation to the server.
- */
- void attemptCharCreate();
};
#endif