From a6a5cf87551bd29344181591c48dc0178e533a33 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Sun, 26 Jun 2016 07:56:07 +0800 Subject: [PATCH] Card Id Indicator Indicates Card Id, Useful for cards/tokens to determine their correct Id in the primitives. Its much easier to fix missing images. Update your modrules.xml --- projects/mtg/bin/Res/rules/modrules.xml | 4 ++++ projects/mtg/src/CardGui.cpp | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/projects/mtg/bin/Res/rules/modrules.xml b/projects/mtg/bin/Res/rules/modrules.xml index 67f09a49f..e4931f59a 100644 --- a/projects/mtg/bin/Res/rules/modrules.xml +++ b/projects/mtg/bin/Res/rules/modrules.xml @@ -42,6 +42,10 @@ + + + mtgid + expansion rarity diff --git a/projects/mtg/src/CardGui.cpp b/projects/mtg/src/CardGui.cpp index aec348638..7080ab882 100644 --- a/projects/mtg/src/CardGui.cpp +++ b/projects/mtg/src/CardGui.cpp @@ -659,6 +659,14 @@ void CardGui::AlternateRender(MTGCard * card, const Pos& pos) } + found = Carditem->mName.find("cardid"); // Write the cardid + if (found != string::npos) + { + stringstream st; + st << card->getMTGId(); + formattedfield = FormattedData(formattedfield, "mtgid", st.str()); + } + found = Carditem->mName.find("power"); // Write the strength if (found != string::npos) {