diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-04-07 00:10:54 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-04-07 00:10:54 +0000 |
commit | 4d68f2a2c9eaf01092ad94399372ea979b7a0076 (patch) | |
tree | 5a9580cca6c010e0964d4220cb1c0a668c216a8f /src/gui/char_select.cpp | |
parent | 361daccb9d2bed324dee09ba308b8c12ef43f06c (diff) | |
download | mana-4d68f2a2c9eaf01092ad94399372ea979b7a0076.tar.gz mana-4d68f2a2c9eaf01092ad94399372ea979b7a0076.tar.bz2 mana-4d68f2a2c9eaf01092ad94399372ea979b7a0076.tar.xz mana-4d68f2a2c9eaf01092ad94399372ea979b7a0076.zip |
Use new Guichan widget disableing feature to disable buttons as appropriate in
character select dialog.
Diffstat (limited to 'src/gui/char_select.cpp')
-rw-r--r-- | src/gui/char_select.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/char_select.cpp b/src/gui/char_select.cpp index d8071ac2..c2ad9eee 100644 --- a/src/gui/char_select.cpp +++ b/src/gui/char_select.cpp @@ -104,6 +104,7 @@ CharSelectDialog::CharSelectDialog(): selectButton->requestFocus(); setLocationRelativeTo(getParent()); + setPlayerInfo(NULL); } CharSelectDialog::~CharSelectDialog() @@ -156,6 +157,9 @@ void CharSelectDialog::setPlayerInfo(PLAYER_INFO *pi) levelLabel->setCaption(levelCaption.str()); jobLevelLabel->setCaption(jobCaption.str()); moneyLabel->setCaption(moneyCaption.str()); + newCharButton->setEnabled(false); + delCharButton->setEnabled(true); + selectButton->setEnabled(true); playerBox->hairStyle = pi->hair_style - 1; playerBox->hairColor = pi->hair_color - 1; @@ -166,6 +170,9 @@ void CharSelectDialog::setPlayerInfo(PLAYER_INFO *pi) levelLabel->setCaption("Level"); jobLevelLabel->setCaption("Job Level"); moneyLabel->setCaption("Money"); + newCharButton->setEnabled(true); + delCharButton->setEnabled(false); + selectButton->setEnabled(false); playerBox->hairStyle = 0; playerBox->hairColor = 0; |