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 receiveEventPlus(WEvent*);
|
||||||
int receiveEventMinus(WEvent*);
|
int receiveEventMinus(WEvent*);
|
||||||
bool CheckUserInput(u32 key);
|
bool CheckUserInput(u32 key);
|
||||||
|
float LeftBoundarySelf();
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // _GUIAVATARS_H_
|
#endif // _GUIAVATARS_H_
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -169,5 +169,5 @@ int DuelLayers::receiveEvent(WEvent * e){
|
|||||||
|
|
||||||
float DuelLayers::RightBoundary()
|
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;
|
selfGraveyard->alpha = selfLibrary->alpha = opponentGraveyard->alpha = opponentLibrary->alpha = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float GuiAvatars::LeftBoundarySelf(){
|
||||||
|
return SCREEN_WIDTH - 10;
|
||||||
|
}
|
||||||
|
|
||||||
GuiAvatars::~GuiAvatars()
|
GuiAvatars::~GuiAvatars()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user