- Fix for issue 762 (render tinyCrops broken)
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
</renderbig>
|
||||
<rendertinycrop>
|
||||
<item name="title" posx="22" posy="25" formattedtext="" type=""/>
|
||||
<item name="description" posx="22" posy="80" formattedtext="" type=""/>
|
||||
<item name="description" posx="22" posy="0" formattedtext="" type=""/>
|
||||
<item name="powerlife" posx="158" posy="106" formattedtext="power/life" type="creature"/>
|
||||
<item name="mana" posx="75" posy="-112" formattedtext="" type=""/>
|
||||
<item name="types" posx="22" posy="49" formattedtext="" type=""/>
|
||||
|
||||
@@ -762,7 +762,7 @@ void CardGui::TinyCropRender(MTGCard * card, const Pos& pos, JQuad * quad)
|
||||
unsigned i = 0;
|
||||
unsigned h = neofont ? 14 : 11;
|
||||
for (std::vector<string>::const_iterator it = txt.begin(); it != txt.end(); ++it, ++i)
|
||||
font->DrawString(it->c_str(), x + (Carditem->mPosX - BigWidth / 2) * pos.actZ, imgBottom + (-BigHeight / 2 + Carditem->mPosY + h * i) * pos.actZ);
|
||||
font->DrawString(it->c_str(), x + (Carditem->mPosX - BigWidth / 2) * pos.actZ, imgBottom + (Carditem->mPosY + h * i) * pos.actZ);
|
||||
}
|
||||
else if (Carditem->mName == "power")
|
||||
{
|
||||
|
||||
@@ -338,7 +338,7 @@ void ModRulesCardGui::parse(TiXmlElement* element)
|
||||
{
|
||||
TiXmlElement* element = node->ToElement();
|
||||
{
|
||||
renderbig.push_back(NEW ModRulesRenderCardGuiItem(
|
||||
rendertinycrop.push_back(NEW ModRulesRenderCardGuiItem(
|
||||
element->Attribute("name"),
|
||||
element->Attribute("posx"),
|
||||
element->Attribute("posy"),
|
||||
|
||||
Reference in New Issue
Block a user