summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
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