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:
@@ -42,6 +42,10 @@
|
|||||||
<item name="types" >
|
<item name="types" >
|
||||||
<position x="22" y="49"/>
|
<position x="22" y="49"/>
|
||||||
</item>
|
</item>
|
||||||
|
<item name="cardid" >
|
||||||
|
<position x="22" y="237"/>
|
||||||
|
<formattedtext>mtgid</formattedtext>
|
||||||
|
</item>
|
||||||
<item name="expansionrarity" >
|
<item name="expansionrarity" >
|
||||||
<position x="22" y="255"/>
|
<position x="22" y="255"/>
|
||||||
<formattedtext>expansion rarity</formattedtext>
|
<formattedtext>expansion rarity</formattedtext>
|
||||||
|
|||||||
@@ -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
|
found = Carditem->mName.find("power"); // Write the strength
|
||||||
if (found != string::npos)
|
if (found != string::npos)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user