diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-14 13:01:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-14 13:01:57 +0300 |
commit | ceafa0afeeb8f47f91896cda18c2ae4d084a6fa5 (patch) | |
tree | f6148ed2853afd41b844c77916bb35e650c78753 /src/gui/windows/charcreatedialog.cpp | |
parent | c5a0ab5deef736b2a7493546bd96d0fec2a2c4ac (diff) | |
download | ManaVerse-ceafa0afeeb8f47f91896cda18c2ae4d084a6fa5.tar.gz ManaVerse-ceafa0afeeb8f47f91896cda18c2ae4d084a6fa5.tar.bz2 ManaVerse-ceafa0afeeb8f47f91896cda18c2ae4d084a6fa5.tar.xz ManaVerse-ceafa0afeeb8f47f91896cda18c2ae4d084a6fa5.zip |
Use smaller char create window size if stats not present.
Diffstat (limited to 'src/gui/windows/charcreatedialog.cpp')
-rw-r--r-- | src/gui/windows/charcreatedialog.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/windows/charcreatedialog.cpp b/src/gui/windows/charcreatedialog.cpp index 890abfe22..49eacd93e 100644 --- a/src/gui/windows/charcreatedialog.cpp +++ b/src/gui/windows/charcreatedialog.cpp @@ -527,7 +527,7 @@ void CharCreateDialog::setAttributes(const StringVect &labels, mAttributeValue.resize(labels.size()); const int w = 480; - const int h = 350; + int h = 350; const int y = 118 + 29; for (unsigned i = 0, sz = static_cast<unsigned>(labels.size()); @@ -551,6 +551,12 @@ void CharCreateDialog::setAttributes(const StringVect &labels, } updateSliders(); + if (!available) + { + mAttributesLeft->setVisible(false); + h = y; + setContentSize(w, h); + } setButtonsPosition(w, h); } |