-Fix for Issue 72. I'm not sure anything's actually necessary for the 3Verticla" hand, what do you guys think?
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-10-04 09:24:46 +00:00
parent 87ca35f752
commit 763a148547

View File

@@ -173,6 +173,22 @@ void GuiHandSelf::Update(float dt)
void GuiHandSelf::Render()
{
//Empty hand
if (state == Open && cards.size() == 0){
JLBFont * mFont = resources.GetJLBFont(Constants::MAIN_FONT);
mFont->SetColor(ARGB(255,255,0,0));
if (OptionHandDirection::HORIZONTAL == options[Options::HANDDIRECTION].number){
back->SetColor(ARGB(255,255,0,0));
JRenderer::GetInstance()->RenderQuad(back,backpos.actX, backpos.actY, backpos.actT, backpos.actZ, backpos.actZ);
back->SetColor(ARGB(255,255,255,255));
mFont->DrawString("0",SCREEN_WIDTH - 10,backpos.actY);
}else{
backpos.Render(back);
mFont->DrawString("Empty",backpos.actX,backpos.actY);
}
return;
}
backpos.Render(back);
if (OptionClosedHand::VISIBLE == options[Options::CLOSEDHAND].number || state == Open)
for (vector<CardView*>::iterator it = cards.begin(); it != cards.end(); ++it)