- fix issue 36 (Life points hidden by big card)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-09-26 11:08:20 +00:00
parent 33c081858e
commit 48c57a4fed
4 changed files with 6 additions and 2 deletions

View File

@@ -27,6 +27,7 @@ class GuiAvatars : public GuiLayer
int receiveEventPlus(WEvent*); int receiveEventPlus(WEvent*);
int receiveEventMinus(WEvent*); int receiveEventMinus(WEvent*);
bool CheckUserInput(u32 key); bool CheckUserInput(u32 key);
float LeftBoundarySelf();
}; };
#endif // _GUIAVATARS_H_ #endif // _GUIAVATARS_H_

View File

@@ -269,7 +269,6 @@ void CardGui::RenderBig(const Pos& pos){
} }
// If we come here, we do not have the picture. // If we come here, we do not have the picture.
//MTGCard * mtgcard = card->model;
alternateRender(card,pos); alternateRender(card,pos);
} }

View File

@@ -169,5 +169,5 @@ int DuelLayers::receiveEvent(WEvent * e){
float DuelLayers::RightBoundary() float DuelLayers::RightBoundary()
{ {
return hand->LeftBoundary(); return MIN (hand->LeftBoundary(), avatars->LeftBoundarySelf());
} }

View File

@@ -22,6 +22,10 @@ GuiAvatars::GuiAvatars(CardSelector* cs) : cs(cs), active(NULL)
selfGraveyard->alpha = selfLibrary->alpha = opponentGraveyard->alpha = opponentLibrary->alpha = 0; selfGraveyard->alpha = selfLibrary->alpha = opponentGraveyard->alpha = opponentLibrary->alpha = 0;
} }
float GuiAvatars::LeftBoundarySelf(){
return SCREEN_WIDTH - 10;
}
GuiAvatars::~GuiAvatars() GuiAvatars::~GuiAvatars()
{ {
} }