diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-08 01:33:53 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-01-08 01:33:53 +0000 |
commit | ee416a5f3de03a689247a290077e7fdf451e1a23 (patch) | |
tree | f456df99f954919ac7a425606df51f010aa4ef2d /src/gui/char_select.h | |
parent | 4070dda1560bc729c3e272f0a5c03d77391e2661 (diff) | |
download | mana-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.gz mana-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.bz2 mana-ee416a5f3de03a689247a290077e7fdf451e1a23.tar.xz mana-ee416a5f3de03a689247a290077e7fdf451e1a23.zip |
Well improved window container and window widgets a bit, and made a start
on support for modal dialogs. Still some issues to work out. Tell me if you
experience something unsettling.
Diffstat (limited to 'src/gui/char_select.h')
-rw-r--r-- | src/gui/char_select.h | 46 |
1 files changed, 33 insertions, 13 deletions
diff --git a/src/gui/char_select.h b/src/gui/char_select.h index ef643725..475deab0 100644 --- a/src/gui/char_select.h +++ b/src/gui/char_select.h @@ -29,7 +29,6 @@ #include "../main.h" #include "../net/network.h" #include "gui.h" -#include "button.h" #include <guichan/allegro.hpp> /** @@ -39,10 +38,10 @@ */ class CharSelectDialog : public Window, public gcn::ActionListener { private: - Button *selectButton; - Button *cancelButton; - Button *newCharButton; - Button *delCharButton; + gcn::Button *selectButton; + gcn::Button *cancelButton; + gcn::Button *newCharButton; + gcn::Button *delCharButton; gcn::Label *nameLabel; gcn::Label *levelLabel; @@ -50,22 +49,33 @@ class CharSelectDialog : public Window, public gcn::ActionListener { gcn::Label *moneyLabel; public: - CharSelectDialog(gcn::Container *parent); + /** + * Constructor. + */ + CharSelectDialog(); + + /** + * Destructor. + */ ~CharSelectDialog(); void action(const std::string& eventId); + void setName(const std::string name) { nameLabel->setCaption(name); } + void setLevel(const std::string level) { levelLabel->setCaption(level); } + void setJobLevel(const std::string level) { jobLevelLabel->setCaption(level); } + void setMoney(const std::string money) { moneyLabel->setCaption(money); @@ -81,21 +91,31 @@ class CharCreateDialog : public Window, public gcn::ActionListener { private: gcn::TextField *nameField; gcn::Label *nameLabel; - Button *nextHairColorButton; - Button *prevHairColorButton; + gcn::Button *nextHairColorButton; + gcn::Button *prevHairColorButton; gcn::Label *hairColorLabel; - Button *nextHairStyleButton; - Button *prevHairStyleButton; + gcn::Button *nextHairStyleButton; + gcn::Button *prevHairStyleButton; gcn::Label *hairStyleLabel; - Button *createButton; + gcn::Button *createButton; public: - CharCreateDialog(gcn::Container *parent); + /** + * Constructor. + */ + CharCreateDialog(); + + /** + * Destructor. + */ ~CharCreateDialog(); void action(const std::string& eventId); - std::string getName() { return nameField->getText(); } + + std::string getName() { + return nameField->getText(); + } }; void charSelect(); |