diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-10-28 18:36:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-10-28 18:36:52 +0300 |
commit | 887a4d50d0c966af5f19e5ed2fe8b5556a6f818d (patch) | |
tree | 16ac03d6c9d8182ef39913501985d45bd33e7a5a /src/resources | |
parent | 8cd16a9a9ca605137276379361b0328af736c2cc (diff) | |
download | ManaVerse-887a4d50d0c966af5f19e5ed2fe8b5556a6f818d.tar.gz ManaVerse-887a4d50d0c966af5f19e5ed2fe8b5556a6f818d.tar.bz2 ManaVerse-887a4d50d0c966af5f19e5ed2fe8b5556a6f818d.tar.xz ManaVerse-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.cpp | 2 | ||||
-rw-r--r-- | src/resources/npcdialoginfo.h | 4 |
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 |