summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-07 23:53:20 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-07 23:53:20 +0300
commitdcc18eba1769a46aeaee2ff441706cf14f3ada4c (patch)
tree70a8eba874484f3764f8d0d8991b920afba318c9 /src/gui
parent281644be03765c7fdb038fe0480d974f3526766f (diff)
downloadmanaverse-dcc18eba1769a46aeaee2ff441706cf14f3ada4c.tar.gz
manaverse-dcc18eba1769a46aeaee2ff441706cf14f3ada4c.tar.bz2
manaverse-dcc18eba1769a46aeaee2ff441706cf14f3ada4c.tar.xz
manaverse-dcc18eba1769a46aeaee2ff441706cf14f3ada4c.zip
Add support for default equipment in char creation dialog.v1.2.7.8
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/charcreatedialog.cpp8
-rw-r--r--src/gui/inventorywindow.cpp1
2 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/charcreatedialog.cpp b/src/gui/charcreatedialog.cpp
index 6a2ad0bf3..5611efa4c 100644
--- a/src/gui/charcreatedialog.cpp
+++ b/src/gui/charcreatedialog.cpp
@@ -82,6 +82,14 @@ CharCreateDialog::CharCreateDialog(CharSelectDialog *parent, int slot):
mPlayer = new Being(0, ActorSprite::PLAYER, mRace, nullptr);
mPlayer->setGender(GENDER_MALE);
+ const std::vector<int> &items = CharDB::getDefaultItems();
+ int i = 1;
+ for (std::vector<int>::const_iterator it = items.begin(),
+ it_end = items.end();
+ it != it_end; ++ it, i ++)
+ {
+ mPlayer->setSprite(i, *it);
+ }
maxHairColor = CharDB::getMaxHairColor();
minHairColor = CharDB::getMinHairColor();
diff --git a/src/gui/inventorywindow.cpp b/src/gui/inventorywindow.cpp
index 0db48cbb8..de2e0e1a4 100644
--- a/src/gui/inventorywindow.cpp
+++ b/src/gui/inventorywindow.cpp
@@ -48,7 +48,6 @@
#include "gui/widgets/label.h"
#include "gui/widgets/layout.h"
#include "gui/widgets/progressbar.h"
-#include "gui/widgets/radiobutton.h"
#include "gui/widgets/scrollarea.h"
#include "gui/widgets/tabstrip.h"
#include "gui/widgets/textfield.h"