- Added extra rendering for "text" mode
This commit is contained in:
wagic.the.homebrew
2009-01-26 13:04:58 +00:00
parent 973b155460
commit f5693e0b6f
3 changed files with 22 additions and 17 deletions
+3 -2
View File
@@ -60,14 +60,15 @@ void Damage::Render(){
float scale = 30 / quad->mHeight;
renderer->RenderQuad(quad, x , y , 0,scale,scale);
}else{
//TODO
mFont->DrawString(source->getName(),x,y-15);
}
quad = target->getIcon();
if (quad){
float scale = 30 / quad->mHeight;
renderer->RenderQuad(quad, x + 150 , y , 0,scale,scale);
}else{
//TODO
if (target->type_as_damageable == DAMAGEABLE_MTGCARDINSTANCE)
mFont->DrawString(((MTGCardInstance *)target)->getName(),x+120,y);
}
}