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
This commit is contained in:
Anthony Calosa
2016-06-26 07:56:07 +08:00
parent 83f7ed56fa
commit a6a5cf8755
2 changed files with 12 additions and 0 deletions

View File

@@ -42,6 +42,10 @@
<item name="types" >
<position x="22" y="49"/>
</item>
<item name="cardid" >
<position x="22" y="237"/>
<formattedtext>mtgid</formattedtext>
</item>
<item name="expansionrarity" >
<position x="22" y="255"/>
<formattedtext>expansion rarity</formattedtext>

View File

@@ -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)
{