summaryrefslogtreecommitdiff
path: root/src/gui/windows
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows')
-rw-r--r--src/gui/windows/npcdialog.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index 53f64f41c..f375e9509 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -43,6 +43,7 @@
#include "gui/widgets/browserbox.h"
#include "gui/widgets/button.h"
#include "gui/widgets/createwidget.h"
+#include "gui/widgets/icon.h"
#include "gui/widgets/inttextfield.h"
#include "gui/widgets/itemcontainer.h"
#include "gui/widgets/itemlinkhandler.h"
@@ -1166,6 +1167,18 @@ void NpcDialog::createSkinControls()
}
mHideText = dialog->hideText;
+ FOR_EACH (std::vector<NpcImageInfo*>::const_iterator, it, dialog->images)
+ {
+ const NpcImageInfo *const info = *it;
+ Image *const image = Theme::getImageFromTheme(info->name);
+ if (image)
+ {
+ Icon *const icon = new Icon(this, image, AutoRelease_true);
+ icon->setPosition(info->x, info->y);
+ mSkinContainer->add(icon);
+ }
+ }
+
FOR_EACH (std::vector<NpcButtonInfo*>::const_iterator, it, dialog->buttons)
{
const NpcButtonInfo *const info = *it;