Don't draw counter text when the draw mode is kHidden; removed two unused member functions.

This commit is contained in:
wrenczes
2010-11-19 01:30:00 +00:00
parent 2a8f8074e6
commit c3f99786fc
2 changed files with 4 additions and 19 deletions
-6
View File
@@ -29,14 +29,8 @@ struct CardGui : public PlayGuiObject {
/* /*
** Tries to render the Big version of a card picture, backups to text version in case of failure ** Tries to render the Big version of a card picture, backups to text version in case of failure
*/ */
void RenderBig(const Pos&);
static void RenderBig(MTGCard * card, const Pos& pos); static void RenderBig(MTGCard * card, const Pos& pos);
/*
** Renders Text Version of a card
*/
void AlternateRenderBig(const Pos&);
void RenderCountersBig(const Pos& pos); void RenderCountersBig(const Pos& pos);
static void AlternateRender(MTGCard * card, const Pos& pos); static void AlternateRender(MTGCard * card, const Pos& pos);
static void TinyCropRender(MTGCard * card, const Pos& pos, JQuad * quad); static void TinyCropRender(MTGCard * card, const Pos& pos, JQuad * quad);
+3 -12
View File
@@ -76,7 +76,10 @@ void CardGui::Update(float dt)
void CardGui::DrawCard(const Pos& inPosition, int inMode) void CardGui::DrawCard(const Pos& inPosition, int inMode)
{ {
DrawCard(card, inPosition, inMode); DrawCard(card, inPosition, inMode);
if (inMode != DrawMode::kHidden)
{
RenderCountersBig(inPosition); RenderCountersBig(inPosition);
}
} }
void CardGui::DrawCard(MTGCard* inCard, const Pos& inPosition, int inMode) void CardGui::DrawCard(MTGCard* inCard, const Pos& inPosition, int inMode)
@@ -706,12 +709,6 @@ font->SetColor(ARGB((int)pos.actA, 0, 0, 0));
font->SetScale(backup_scale); font->SetScale(backup_scale);
} }
void CardGui::AlternateRenderBig(const Pos& pos)
{
AlternateRender(card, pos);
RenderCountersBig(pos);
}
//Renders a big card on screen. Defaults to the "alternate" rendering if no image is found //Renders a big card on screen. Defaults to the "alternate" rendering if no image is found
void CardGui::RenderBig(MTGCard* card, const Pos& pos) void CardGui::RenderBig(MTGCard* card, const Pos& pos)
{ {
@@ -787,12 +784,6 @@ void CardGui::RenderCountersBig(const Pos& pos)
} }
} }
void CardGui::RenderBig(const Pos& pos)
{
RenderBig(card, pos);
RenderCountersBig(pos);
}
MTGCardInstance* CardView::getCard() MTGCardInstance* CardView::getCard()
{ {
return card; return card;