diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-28 23:59:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-28 23:59:44 +0300 |
commit | 5973d759a2473425e52efd066892c35ab7502ed1 (patch) | |
tree | 5ce6add127f3d3cffbb89fa7a66045cb9e0e67ae /src/gui/windows/npcdialog.cpp | |
parent | ed17aa400a745a81940020e024a3944671a47281 (diff) | |
download | manaverse-5973d759a2473425e52efd066892c35ab7502ed1.tar.gz manaverse-5973d759a2473425e52efd066892c35ab7502ed1.tar.bz2 manaverse-5973d759a2473425e52efd066892c35ab7502ed1.tar.xz manaverse-5973d759a2473425e52efd066892c35ab7502ed1.zip |
Move all npc dialog menu related skin elements into menu tag.
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-rw-r--r-- | src/gui/windows/npcdialog.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp index f5639acd8..21c8fd577 100644 --- a/src/gui/windows/npcdialog.cpp +++ b/src/gui/windows/npcdialog.cpp @@ -1162,7 +1162,9 @@ void NpcDialog::createSkinControls() } mHideText = dialog->hideText; - FOR_EACH (std::vector<NpcImageInfo*>::const_iterator, it, dialog->images) + FOR_EACH (std::vector<NpcImageInfo*>::const_iterator, + it, + dialog->menu.images) { const NpcImageInfo *const info = *it; Image *const image = Theme::getImageFromTheme(info->name); @@ -1173,7 +1175,9 @@ void NpcDialog::createSkinControls() mSkinContainer->add(icon); } } - FOR_EACH (std::vector<NpcTextInfo*>::const_iterator, it, dialog->texts) + FOR_EACH (std::vector<NpcTextInfo*>::const_iterator, + it, + dialog->menu.texts) { const NpcTextInfo *const info = *it; BrowserBox *box = new BrowserBox(this, @@ -1198,7 +1202,9 @@ void NpcDialog::createSkinControls() box->addRow(*it2); } } - FOR_EACH (std::vector<NpcButtonInfo*>::const_iterator, it, dialog->buttons) + FOR_EACH (std::vector<NpcButtonInfo*>::const_iterator, + it, + dialog->menu.buttons) { const NpcButtonInfo *const info = *it; Button *const button = new Button(this); |