mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-20 09:22:15 -07:00
Add BannerCard to .cod format, use it in the visual deck storage widget.
This commit is contained in:
parent
48bcd0a6ec
commit
0d24e5d081
5 changed files with 106 additions and 61 deletions
|
|
@ -423,7 +423,9 @@ bool DeckList::readElement(QXmlStreamReader *xml)
|
|||
name = xml->readElementText();
|
||||
else if (childName == "comments")
|
||||
comments = xml->readElementText();
|
||||
else if (childName == "zone") {
|
||||
else if (childName == "bannerCard") {
|
||||
bannerCard = xml->readElementText();
|
||||
} else if (childName == "zone") {
|
||||
InnerDecklistNode *newZone = getZoneObjFromName(xml->attributes().value("name").toString());
|
||||
newZone->readElement(xml);
|
||||
} else if (childName == "sideboard_plan") {
|
||||
|
|
@ -444,6 +446,7 @@ void DeckList::write(QXmlStreamWriter *xml)
|
|||
xml->writeAttribute("version", "1");
|
||||
xml->writeTextElement("deckname", name);
|
||||
xml->writeTextElement("comments", comments);
|
||||
xml->writeTextElement("bannerCard", bannerCard);
|
||||
|
||||
for (int i = 0; i < root->size(); i++)
|
||||
root->at(i)->writeElement(xml);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue