Erwan
- fix issue 36 (Life points hidden by big card)
This commit is contained in:
@@ -27,6 +27,7 @@ class GuiAvatars : public GuiLayer
|
||||
int receiveEventPlus(WEvent*);
|
||||
int receiveEventMinus(WEvent*);
|
||||
bool CheckUserInput(u32 key);
|
||||
float LeftBoundarySelf();
|
||||
};
|
||||
|
||||
#endif // _GUIAVATARS_H_
|
||||
|
||||
@@ -269,7 +269,6 @@ void CardGui::RenderBig(const Pos& pos){
|
||||
}
|
||||
|
||||
// If we come here, we do not have the picture.
|
||||
//MTGCard * mtgcard = card->model;
|
||||
alternateRender(card,pos);
|
||||
}
|
||||
|
||||
|
||||
@@ -169,5 +169,5 @@ int DuelLayers::receiveEvent(WEvent * e){
|
||||
|
||||
float DuelLayers::RightBoundary()
|
||||
{
|
||||
return hand->LeftBoundary();
|
||||
return MIN (hand->LeftBoundary(), avatars->LeftBoundarySelf());
|
||||
}
|
||||
|
||||
@@ -22,6 +22,10 @@ GuiAvatars::GuiAvatars(CardSelector* cs) : cs(cs), active(NULL)
|
||||
selfGraveyard->alpha = selfLibrary->alpha = opponentGraveyard->alpha = opponentLibrary->alpha = 0;
|
||||
}
|
||||
|
||||
float GuiAvatars::LeftBoundarySelf(){
|
||||
return SCREEN_WIDTH - 10;
|
||||
}
|
||||
|
||||
GuiAvatars::~GuiAvatars()
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user