* New menu style - step one.
  More improvements are to come, but this should be stable and have a good
  portion of what is to be done.
This commit is contained in:
jean.chalard
2008-12-30 05:24:38 +00:00
parent 3e9ff2b580
commit a82d4b51bb
19 changed files with 367 additions and 192 deletions
+6 -7
View File
@@ -356,13 +356,6 @@ void MTGGuiPlay::Render(){
RenderPlayerInfo(0);
RenderPlayerInfo(1);
if (mCount && mObjects[mCurr] != NULL){
mObjects[mCurr]->Render();
if (hasFocus && mCurr >= offset && showBigCards){
((CardGui *)mObjects[mCurr])->RenderBig(-1,-1,showBigCards-1);
}
}
if (mGlitterAlpha < 0){
mGlitterAlpha = 510;
int position = rand() % 2;
@@ -378,6 +371,12 @@ void MTGGuiPlay::Render(){
renderer->RenderQuad(mGlitter,mGlitterX,mGlitterY, (float)(mGlitterAlpha)/(float)255, 1.2*float(mGlitterAlpha)/float(255),1.2*float(mGlitterAlpha)/float(255));
mGlitterAlpha-=10;
if (mCount && mObjects[mCurr] != NULL){
mObjects[mCurr]->Render();
if (hasFocus && mCurr >= offset && showBigCards){
((CardGui *)mObjects[mCurr])->RenderBig(-1,-1,showBigCards-1);
}
}
}
MTGGuiPlay::~MTGGuiPlay(){