From 9a93f235386bcb47887a33527478700df77dce94 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 27 Aug 2013 23:30:27 +0300 Subject: show npc name in npc dialog caption. --- src/gui/npcdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gui') diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index bddbbaf46..27a5dbf43 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -190,7 +190,10 @@ NpcDialog::NpcDialog(const int npcId) : { const Being *const being = actorSpriteManager->findBeing(mNpcId); if (being) + { showAvatar(NPCDB::getAvatarFor(being->getSubType())); + setCaption(being->getName()); + } } config.addListener("logNpcInGui", this); -- cgit v1.2.3-70-g09d2