refine display
This commit is contained in:
@@ -118,7 +118,7 @@ void Interruptible::Render(MTGCardInstance * source, JQuad * targetQuad, string
|
|||||||
{
|
{
|
||||||
if(k > 10)
|
if(k > 10)
|
||||||
break;
|
break;
|
||||||
xnadj+=3;
|
xnadj+=4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -126,13 +126,13 @@ void Interruptible::Render(MTGCardInstance * source, JQuad * targetQuad, string
|
|||||||
aa << action << " " << "(" << count << ")";
|
aa << action << " " << "(" << count << ")";
|
||||||
|
|
||||||
if(count > 1)
|
if(count > 1)
|
||||||
xnadj -= 3;
|
xnadj -= 4;
|
||||||
|
|
||||||
renderer->FillRect(x-1.8f,y-16 + GetVerticalTextOffset(), 73 + xnadj, 43, ARGB(235,10,10,10));//box
|
//renderer->FillRect(x-1.8f,y-16 + GetVerticalTextOffset(), 73 + xnadj, 43, ARGB(235,10,10,10));//box
|
||||||
|
|
||||||
mFont->SetColor(ARGB(255,128,255,0));//recolor
|
//mFont->SetColor(ARGB(255,128,255,128));//recolor
|
||||||
mFont->DrawString(">", x + 32, y + GetVerticalTextOffset(), JGETEXT_LEFT);
|
mFont->DrawString(">", x + 32, y + GetVerticalTextOffset(), JGETEXT_LEFT);
|
||||||
mFont->SetColor(ARGB(255,255,255,255));//reset color
|
//mFont->SetColor(ARGB(255,255,255,255));//reset color
|
||||||
|
|
||||||
if(count > 1)
|
if(count > 1)
|
||||||
{
|
{
|
||||||
@@ -143,12 +143,19 @@ void Interruptible::Render(MTGCardInstance * source, JQuad * targetQuad, string
|
|||||||
}
|
}
|
||||||
|
|
||||||
JQuadPtr quad = observer->getResourceManager()->RetrieveCard(source, CACHE_THUMB);
|
JQuadPtr quad = observer->getResourceManager()->RetrieveCard(source, CACHE_THUMB);
|
||||||
|
JQuadPtr fakeborder = observer->getResourceManager()->GetQuad("white");
|
||||||
if (!quad.get())
|
if (!quad.get())
|
||||||
quad = CardGui::AlternateThumbQuad(source);
|
quad = CardGui::AlternateThumbQuad(source);
|
||||||
if (quad.get())
|
if (quad.get())
|
||||||
{
|
{
|
||||||
quad->SetColor(ARGB(255,255,255,255));
|
quad->SetColor(ARGB(255,255,255,255));
|
||||||
float scale = mHeight / quad->mHeight;
|
float scale = mHeight / quad->mHeight;
|
||||||
|
if (fakeborder.get())
|
||||||
|
{
|
||||||
|
fakeborder->SetColor(ARGB(255,15,15,15));
|
||||||
|
renderer->RenderQuad(fakeborder.get(), x + (quad->mWidth * scale / 2), y + (quad->mHeight * scale / 2), 0, (29 * actZ + 1) / 16, 42 * actZ / 16);
|
||||||
|
}
|
||||||
|
|
||||||
renderer->RenderQuad(quad.get(), x + (quad->mWidth * scale / 2), y + (quad->mHeight * scale / 2), 0, scale, scale);
|
renderer->RenderQuad(quad.get(), x + (quad->mWidth * scale / 2), y + (quad->mHeight * scale / 2), 0, scale, scale);
|
||||||
}
|
}
|
||||||
else if (alt1.size())
|
else if (alt1.size())
|
||||||
@@ -191,9 +198,14 @@ void Interruptible::Render(MTGCardInstance * source, JQuad * targetQuad, string
|
|||||||
multiQ->SetColor(ARGB(255,255,255,255));
|
multiQ->SetColor(ARGB(255,255,255,255));
|
||||||
multiQ->SetHotSpot(multiQ->mWidth / 2, multiQ->mHeight / 2);
|
multiQ->SetHotSpot(multiQ->mWidth / 2, multiQ->mHeight / 2);
|
||||||
float scale = mHeight / multiQ->mHeight;
|
float scale = mHeight / multiQ->mHeight;
|
||||||
|
if (fakeborder.get())
|
||||||
|
{
|
||||||
|
fakeborder->SetColor(ARGB(255,15,15,15));
|
||||||
|
renderer->RenderQuad(fakeborder.get(), x + 55 + xadj, y + ((mHeight - multiQ->mHeight) / 2) + multiQ->mHotSpotY, 0, (29 * actZ + 1) / 16, 42 * actZ / 16);
|
||||||
|
}
|
||||||
renderer->RenderQuad(multiQ.get(), x + 55 + xadj, y + ((mHeight - multiQ->mHeight) / 2) + multiQ->mHotSpotY, 0, scale, scale);
|
renderer->RenderQuad(multiQ.get(), x + 55 + xadj, y + ((mHeight - multiQ->mHeight) / 2) + multiQ->mHotSpotY, 0, scale, scale);
|
||||||
multiQ->SetHotSpot(backupX, backupY);
|
multiQ->SetHotSpot(backupX, backupY);
|
||||||
xadj+=3;
|
xadj+=4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4402,7 +4402,7 @@ AAMover::AAMover(GameObserver* observer, int _id, MTGCardInstance * _source, MTG
|
|||||||
else if(destination.find("graveyard") != string::npos)
|
else if(destination.find("graveyard") != string::npos)
|
||||||
named = "Put in Graveyard";
|
named = "Put in Graveyard";
|
||||||
else if(destination.find("previous") != string::npos)
|
else if(destination.find("previous") != string::npos)
|
||||||
named = "Put in Battlefield";
|
named = "Previous Zone";
|
||||||
else if(destination.find("inplay") != string::npos)
|
else if(destination.find("inplay") != string::npos)
|
||||||
named = "Put in Play";
|
named = "Put in Play";
|
||||||
else if(destination.find("battlefield") != string::npos)
|
else if(destination.find("battlefield") != string::npos)
|
||||||
|
|||||||
Reference in New Issue
Block a user