summaryrefslogtreecommitdiff
path: root/src/resources
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
parent8cd16a9a9ca605137276379361b0328af736c2cc (diff)
downloadplus-887a4d50d0c966af5f19e5ed2fe8b5556a6f818d.tar.gz
plus-887a4d50d0c966af5f19e5ed2fe8b5556a6f818d.tar.bz2
plus-887a4d50d0c966af5f19e5ed2fe8b5556a6f818d.tar.xz
plus-887a4d50d0c966af5f19e5ed2fe8b5556a6f818d.zip
In npc skinned dialogs add support for hide text part from npc window.
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/db/npcdialogdb.cpp2
-rw-r--r--src/resources/npcdialoginfo.h4
2 files changed, 5 insertions, 1 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);
}
diff --git a/src/resources/npcdialoginfo.h b/src/resources/npcdialoginfo.h
index c1c7b8c1a..ce3e8e92a 100644
--- a/src/resources/npcdialoginfo.h
+++ b/src/resources/npcdialoginfo.h
@@ -31,12 +31,14 @@ struct NpcDialogInfo final
{
NpcDialogInfo() :
buttons(),
- name()
+ name(),
+ hideText(false)
{
}
std::vector<NpcButtonInfo*> buttons;
std::string name;
+ bool hideText;
};
#endif // RESOURCES_NPCDIALOGINFO_H