summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-03 23:58:08 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-03 23:58:08 +0300
commit7ef779a51bc4c3774d8a811b86b1ecb29decbda5 (patch)
treedae021c158f43b9e1f047ee2b784a32ba27d9fad /src/gui
parent0b8f87cd8cf8020c97e10a979b6aba8d7cafa704 (diff)
downloadmanaverse-7ef779a51bc4c3774d8a811b86b1ecb29decbda5.tar.gz
manaverse-7ef779a51bc4c3774d8a811b86b1ecb29decbda5.tar.bz2
manaverse-7ef779a51bc4c3774d8a811b86b1ecb29decbda5.tar.xz
manaverse-7ef779a51bc4c3774d8a811b86b1ecb29decbda5.zip
Add support for readable links in quests.xml
Text like [old book] will be showed as link to item old book.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/windows/questswindow.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/windows/questswindow.cpp b/src/gui/windows/questswindow.cpp
index 9e46c1793..8ca5276f0 100644
--- a/src/gui/windows/questswindow.cpp
+++ b/src/gui/windows/questswindow.cpp
@@ -232,6 +232,7 @@ void QuestsWindow::loadQuest(const int var, const XmlNodePtr node)
if (!data)
continue;
std::string str = translator->getStr(data);
+ replaceItemLinks(str);
if (xmlNameEqual(dataNode, "text"))
quest->texts.push_back(QuestItemText(str, QuestType::TEXT));