summaryrefslogtreecommitdiff
path: root/src/resources/db/npcdialogdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-10-28 18:36:52 +0300
committerAndrei Karas <akaras@inbox.ru>2015-10-28 18:36:52 +0300
commit887a4d50d0c966af5f19e5ed2fe8b5556a6f818d (patch)
tree16ac03d6c9d8182ef39913501985d45bd33e7a5a /src/resources/db/npcdialogdb.cpp
parent8cd16a9a9ca605137276379361b0328af736c2cc (diff)
downloadmanaplus-887a4d50d0c966af5f19e5ed2fe8b5556a6f818d.tar.gz
manaplus-887a4d50d0c966af5f19e5ed2fe8b5556a6f818d.tar.bz2
manaplus-887a4d50d0c966af5f19e5ed2fe8b5556a6f818d.tar.xz
manaplus-887a4d50d0c966af5f19e5ed2fe8b5556a6f818d.zip
In npc skinned dialogs add support for hide text part from npc window.
Diffstat (limited to 'src/resources/db/npcdialogdb.cpp')
-rw-r--r--src/resources/db/npcdialogdb.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/db/npcdialogdb.cpp b/src/resources/db/npcdialogdb.cpp
index cf334a601..cdb96a2ee 100644
--- a/src/resources/db/npcdialogdb.cpp
+++ b/src/resources/db/npcdialogdb.cpp
@@ -107,6 +107,8 @@ void NpcDialogDB::loadXmlFile(const std::string &fileName)
deleteDialog(name);
NpcDialogInfo *const dialog = new NpcDialogInfo;
dialog->name = name;
+ dialog->hideText = XML::getBoolProperty(
+ node, "hideText", false);
mDialogs[name] = dialog;
loadNpcDialog(dialog, node);
}